Manage user roles through Keycloak
User roles management is available through the MOSK
management API and
console. User management for the m:os roles is not
yet available through API or management console. Therefore, continue managing
these roles using Keycloak.
Note
For details on new-style and old-style role names, see Mapping of Keycloak roles to IAM*RoleBinding objects.
MOSK creates the IAM roles in scopes. For each application
type, such as kaas, k8s, or sl, MOSK creates a
set of roles such as @admin, @cluster-admin, @reader, @writer,
@operator.
Depending on the role, you can perform specific operations in a cluster. For example:
With the
m:kaas@writerrole, you can create a project using the MOSK management console. The corresponding project-specific roles will be automatically created in Keycloak byiam-controller.With the
m:kaas*roles, you can download thekubeconfigof the management cluster.
The semantic structure of role naming in MOSK is as follows:
m:<appType>:<namespaceName>:<clusterName>@<roleName>
This section outlines the IAM roles and scopes structure in MOSK and role assignment to users using the Keycloak Admin Console.
See also