Configure RBAC on OCP
Learn how to enable and configure Role Based Access Control (RBAC) in IBM Application Modernization Accelerator on OpenShift Container Platform, including identity provider setup and role mapping.
Before you begin
Note: RBAC is available in Application Modernization Accelerator version 5.0.0 and later. This feature is not available in earlier versions.
Before you begin, ensure you have:
- Administrator access to the OpenShift Container Platform cluster
- IBM Application Modernization Accelerator (AMA) operator installed
- Access to the OpenShift web console
About this task
Note: By default, RBAC is disabled after an install.
Procedure
What to do next
Mapping the initial Admin role
Once RBAC has been enabled, the next user to access the UI will be redirected to the RBAC access screen.
This user will be presented with a list of OAuth2 groups that they belong to and MUST select one of those groups to be mapped to the AMA admin role.
Important: This mapping cannot be deleted.
Mapping roles in AMA
The Admin user can map roles and workspaces in Application Modernization Accelerator:
- Choose the Roles and permissions option in the left hand menu.
- When creating a mapping, enter the OAuth2 group you want to map and select the AMA role you want to map to.
Note: The OAuth2 group text is not validated by AMA.
Tip: The OAuth2 group can be defined using regex syntax. For example, an OAuth2 group defined as
Dev* will match any OAuth2 group starting with Dev.