User management in Keycloak
In the ML platform, authorization in back-end applications and user management uses Keycloak.
Keycloak implements SSO (Single-Sign On) mechanism: after successful authorization in one application, login to other applications is automatic — login and password do not need to be entered again.
Credentials for logging into the ML platform
When ordering an ML platform, a user with the Admin login is created in the CMLP realm. A realm is an area for managing users, credentials, roles, and groups.
The Admin user belongs to the Security Administrator group — he/she has access to the Security Admin Console and can create users, password-protect and customize roles and groups.
Use a one-time password to log in to the Security Admin Console — it is provided after ordering the ML platform. The password must be changed the first time you log in to the platform.
Create a user
-
Open the ML platform at
https://<ml_platform_domain>
Specify
<ml_platform_domain>
— URL of the formhttp://yourdomain.mlops.selcloud.ru
that was issued after the ML platform was connected. -
Specify login and password security administrator.
-
Open the Security Admin Console application.
-
Go to the section Manage → Users.
-
Click Add user.
-
In the field Username enter a user name.
-
In the field Email enter your e-mail address — it is required to access some applications, such as Grafana.
-
Optional: add the user to a group. If you do not specify a group, it will be added to the Viewer group by default.
Keycloak has several user groups:
- Security Administrator — Has access to the Security Admin Console and can create users, configure user groups, and manage access. In the ML platform, a user is created by default
Admin
; - Administrator — can configure internal services (e.g. Grafana);
- Editor — can change individual parameters (e.g. dashboards in Grafana, pipelines in ClearML);
- Viewer — read-only access.
- Security Administrator — Has access to the Security Admin Console and can create users, configure user groups, and manage access. In the ML platform, a user is created by default
-
Click Save.
-
Optional: set a password for the user.
Set a password for the user
You can set a password for the created users.
-
Open the ML platform at
https://<ml_platform_domain>
Specify
<ml_platform_domain>
— URL of the formhttp://yourdomain.mlops.selcloud.ru
that was issued after the ML platform was connected. -
Specify login and password security administrator.
-
Open the Security Admin Console application.
-
Go to the section Manage → Users.
-
Click View all users.
-
Open the user page → tab Credentials.
-
In the field Password enter the password.
-
Optional: to set the user password to be changed at the first login, enable the toggle switch Temporary.
-
Click Set Password.