-
Bug
-
Resolution: Done
-
Major
-
RHDG Operator CSV 8.3.7 GA, RHDG Operator CSV 8.4.0 GA
-
None
If a user configures the Infinispan CR to use Authorization and Client Cert authentication, then i'ts no longer possible for Operator REST requests to be accepted by the Server. This is because the common-name-role-mapper is configured for client cert authorization, however the Operator client connects without a certificate and relies on it's principal name for authorization.
A ISPN000287 exception is thrown for any REST operation perfomed by the Operator that requires Authorization. For example, the following is thrown when the user attempts to gracefully shutdown the cluster.
unexpected HTTP status code (403): unexpected error during graceful shutdown, response: ISPN000287: Unauthorized access: subject 'Subject with principal(s): [operator, RolePrincipal{name='admin'}]' lacks 'LIFECYCLE' permission
A test exists for the Authorization with Client Certs, however it passes as it only establishes that the Infinispan cluster is WellFormed. The WellFormed check continues to function without a 403 as it utilises the rest/v2/cache-managers/default/health endpoint, which does not require authentication/authorization for local calls.
- links to