Skip to content

Retrieve the ServiceAdmin Password

Before you start

Goal

  • Retrieve the ServiceAdmin password
  • Log in to the Keycloak admin console

Prerequisites

Advanced topic

The ServiceAdmin account is for configuring Keycloak itself, not for managing Altair SLC Hub users and permissions. Most users should use the Altair SLC Hub admin user created in Create Admin User.

Retrieve the ServiceAdmin password

During bootstrap, a password for the ServiceAdmin account was automatically generated and stored on the machine.

cat /opt/altair/slchub/var/data/keycloak/admin.txt
type "C:\ProgramData\Altair\SLC Hub\data\keycloak\admin.txt"

The command will output a single password string. Copy this password.

Log in to the Keycloak admin console

Open your browser and navigate to: https://<hostname>/keycloak/admin/

Replace <hostname> with your machine's hostname or IP address.

Find your hostname

If you are not sure of your hostname, run:

hubctl config print ingress.url

The Keycloak login page should have a different design from the regular Altair SLC Hub login page.

Enter your credentials

  1. Username: HubServiceAdmin
  2. Enter your password.
  3. Click Sign In.

Login successful

You are now logged in to the Keycloak admin console as ServiceAdmin. You should see the Keycloak dashboard with the master realm selected.