First-Time Setup: Keycloak Realm, Admin User & Role Assignment¶
Once the containers are running, you must configure Keycloak to establish enterprise identity and create the first administrator account.
sequenceDiagram
autonumber
actor Admin as Platform Admin
participant KC as Keycloak (port 8081)
participant VDA as VDA Web UI (port 8080)
Admin->>KC: Log in to Admin Console (admin / KEYCLOAK_ADMIN_PASSWORD)
Admin->>KC: Create realm 'vda'
Admin->>KC: Create client 'vda-client' (Redirect URI: http://localhost:8080/*)
Admin->>KC: Create realm roles (SUPERADMIN, DATA_CONSUMER)
Admin->>KC: Create user 'vda-admin' & set permanent password
Admin->>KC: Assign role 'SUPERADMIN' to 'vda-admin'
Admin->>VDA: Open http://localhost:8080 & Log in
VDA->>KC: Authenticate via OIDC
KC-->>VDA: JWT Token with SUPERADMIN role
VDA-->>Admin: Grant full access to VDA Dashboard
Step 1: Access Keycloak Administration Console¶
- Open your web browser and navigate to
http://localhost:8081(or your configured Keycloak URL). - Log in using the master administrator credentials defined in your
.envfile: - Username:
admin(or${KEYCLOAK_ADMIN}) - Password:
${KEYCLOAK_ADMIN_PASSWORD}
Step 2: Create the vda Realm¶
- In the top-left dropdown (currently displaying
master), click Create Realm. - Set the Realm name to
vda. - Ensure Enabled is toggled ON.
- Click Create.
Step 3: Create the OpenID Connect Client¶
- In the left navigation sidebar under
vdarealm, click Clients. - Click Create client.
- Set Client type:
OpenID Connect. - Set Client ID:
vda-client. - Click Next.
- Ensure Standard flow and Direct access grants are enabled.
- Click Next.
- Configure redirect URIs:
- Root URL:
http://localhost:8080 - Home URL:
http://localhost:8080 - Valid redirect URIs:
http://localhost:8080/* - Valid post logout redirect URIs:
http://localhost:8080/* - Web origins:
*(orhttp://localhost:8080) - Click Save.
Step 4: Define Realm Roles¶
- In the left sidebar, click Realm roles.
- Click Create role and add the following roles:
SUPERADMIN: Full administrative privileges across all datasources, policies, and system settings.DATA_CONSUMER: Standard business user role with read access to non-restricted catalog assets and text-to-SQL.DATA_STEWARD: Governance role authorized to curate descriptions, approve metadata, and define glossary terms.
Step 5: Create the Initial Admin User¶
- In the left sidebar, click Users > Add user.
- Set Username:
vda-admin. - Enter an email address and full name.
- Toggle Email verified to ON.
- Click Create.
- Switch to the Credentials tab:
- Click Set password.
- Enter a secure password.
- Toggle Temporary to OFF (so password change is not required on first login).
- Click Save > Save password.
- Switch to the Role mapping tab:
- Click Assign role.
- Filter by
SUPERADMIN. - Select
SUPERADMINand click Assign.
Step 6: Perform First Login¶
- Open your browser and navigate to the VDA Web UI:
http://localhost:8080. - Click Sign in with Enterprise SSO.
- You will be redirected to the Keycloak login screen.
- Enter the credentials for
vda-admin. - Upon successful authentication, Keycloak redirects back to the VDA portal, granting full administrative access to all modules.