Skip to main content

Keycloak

Keycloak is the Identity and Access Management (IAM) system for AgentStack. It handles user authentication, OAuth2/OIDC flows, and token issuance.

Details

FieldValue
Admin URLhttps://keycloak.icydesert-76825898.southindia.azurecontainerapps.io/admin
OIDC Discovery<base-url>/realms/<realm>/.well-known/openid-configuration
Azure namekeycloak
Resource grouptesting
Environmentcerebro-auth-env (South India)
Imageca45076245feacr.azurecr.io/keycloak:26.0-agentstack-1b7240f
Port8080
Version26.0 (custom AgentStack build)

Database

Keycloak stores all user and realm data in PostgreSQL:

  • Server: cerebro-authstack-pg
  • Database: keycloak

How to Access the Admin Console

  1. Go to: https://keycloak.icydesert-76825898.southindia.azurecontainerapps.io/admin
  2. Log in with the admin credentials stored in Key Vaultcerebro-auth-kv-62be6d5f
    • Secret name: keycloak-admin-password (or similar — check Key Vault)

Common Admin Tasks

Create a new realm

Admin Console → left menu → dropdown → Create Realm

Create a client (OAuth2 app)

Admin Console → Realm → ClientsCreate client

  • Client type: OpenID Connect
  • Client ID: name of your app
  • Authentication: Standard flow + Client credentials

Add a user

Admin Console → Realm → UsersAdd user

Get realm OIDC config

curl https://keycloak.icydesert-76825898.southindia.azurecontainerapps.io/realms/master/.well-known/openid-configuration

How to Update the Image

The image is a custom build. To update:

# From the Keycloak source directory
az acr build \
--registry ca45076245feacr \
--resource-group testing \
--image keycloak:26.0-agentstack-<new-tag> \
.

az containerapp update \
--name keycloak \
--resource-group testing \
--image ca45076245feacr.azurecr.io/keycloak:26.0-agentstack-<new-tag>

View Logs

az containerapp logs show \
--name keycloak \
--resource-group testing \
--tail 100
warning

Never delete the master realm or admin user in production. This will lock you out permanently.