Configuring security

To manage access to AIDA, you can optionally use Keycloak.

Before you begin

During AIDA deployment, you can also deploy a Keycloak container. In this case, you can manage access to AIDA through Keycloak.

In Keycloak, each application has its own Realm with different users and authorization settings. AIDA authorization settings are stored in a Realm named AIDA.

With Keycloak deployment, the following users are automatically generated :
  1. userid: aidaadmin, password: admin, role: aida-admin.

    With this role, a user can directly login to AIDA UI, from where, besides analyzing anomalies and alerts, he can work with all KPIs, manage special days, customize prediction tuning parameters, retrain KPIs prediction, pause alerts. This user is tipically an AIDA Administrator.

  2. userid: admin, password: admin, role: keycloak-admin.

    With this role, a user can access Keycloak administration console to define additional users, or change default passwords.

Defining users from Keycloak administration console

About this task

Use Keycloak administration console to define new users, new roles, or change user passwords.

For example, to create a new AIDA user with administrator role, run the following steps:
  1. Access Keycloak administration console https://<IP:PORT>/keycloak/auth/admin by using the following credentials:
    • userid=admin
    • password=password
  2. If you want, you can change Keycloak default password:
    1. From Keycloak administration console, in the upper right corner, click Admin.
    2. Select Manage account -> password
  3. Under Clients -> nginx -> roles tab, click the Add role button.
  4. Provide the role name admin and click save.
  5. Under users, click the add user button.
  6. Provide a user name and click save.
  7. Under Credentials, provide a password for the user, turn the temporary field to off, click the Reset Password button and confirm.
  8. Under Role Mappings, in the Client Roles dropdown, select nginx. Some boxes appear on the right.
  9. Under Available Roles, select admin and click the Add Selected button. The admin role appears in the Assigned Roles box.
  10. On the left navigation bar, select the Realm Settings page and go to the Themes tab.
  11. In the Login Theme parameter, select the Keycloak theme, then click save.

For details about Keycloak, see Keycloak documentation.