mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2026-09-02 04:47:15 +02:00
- Auto-import the clustercockpit realm on Keycloak start - Rewrite the generated LDAP directory with cc-* role groups and dev users - Move config.json to the main/nats/auth schema; cc-backend now on :8088 - Add resetDev.sh to tear down containers, volumes and generated data - Bump cc-metric-store build image to golang 1.26.4 - Ignore all of data/ (generated by dataGenerationScript.sh) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
112 lines
3.5 KiB
JSON
112 lines
3.5 KiB
JSON
{
|
|
"realm": "clustercockpit",
|
|
"displayName": "ClusterCockpit",
|
|
"enabled": true,
|
|
"sslRequired": "none",
|
|
"registrationAllowed": false,
|
|
"loginWithEmailAllowed": true,
|
|
"roles": {
|
|
"realm": [
|
|
{ "name": "cc-admin", "description": "Grants the ClusterCockpit admin role" },
|
|
{ "name": "cc-support", "description": "Grants the ClusterCockpit support role" },
|
|
{ "name": "cc-manager", "description": "Grants the ClusterCockpit manager role" },
|
|
{ "name": "cc-api", "description": "Grants the ClusterCockpit api role" }
|
|
]
|
|
},
|
|
"clients": [
|
|
{
|
|
"clientId": "cc-backend",
|
|
"name": "ClusterCockpit Backend",
|
|
"description": "Confidential OIDC client used by cc-backend",
|
|
"enabled": true,
|
|
"protocol": "openid-connect",
|
|
"publicClient": false,
|
|
"secret": "cc-backend-dev-secret",
|
|
"standardFlowEnabled": true,
|
|
"directAccessGrantsEnabled": true,
|
|
"implicitFlowEnabled": false,
|
|
"serviceAccountsEnabled": false,
|
|
"redirectUris": [
|
|
"http://localhost:8088/oidc-callback",
|
|
"http://127.0.0.1:8088/oidc-callback"
|
|
],
|
|
"webOrigins": [
|
|
"http://localhost:8088",
|
|
"http://127.0.0.1:8088"
|
|
],
|
|
"attributes": {
|
|
"pkce.code.challenge.method": "S256",
|
|
"post.logout.redirect.uris": "http://localhost:8088/*"
|
|
},
|
|
"protocolMappers": [
|
|
{
|
|
"name": "realm roles in id token",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-realm-role-mapper",
|
|
"consentRequired": false,
|
|
"config": {
|
|
"multivalued": "true",
|
|
"claim.name": "realm_access.roles",
|
|
"jsonType.label": "String",
|
|
"id.token.claim": "true",
|
|
"access.token.claim": "true",
|
|
"userinfo.token.claim": "false"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"username": "kcadmin",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"firstName": "KC",
|
|
"lastName": "Admin",
|
|
"email": "kcadmin@example.com",
|
|
"credentials": [{ "type": "password", "value": "kcadmin", "temporary": false }],
|
|
"realmRoles": ["default-roles-clustercockpit", "cc-admin"]
|
|
},
|
|
{
|
|
"username": "kcsupport",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"firstName": "KC",
|
|
"lastName": "Support",
|
|
"email": "kcsupport@example.com",
|
|
"credentials": [{ "type": "password", "value": "kcsupport", "temporary": false }],
|
|
"realmRoles": ["default-roles-clustercockpit", "cc-support"]
|
|
},
|
|
{
|
|
"username": "kcmanager",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"firstName": "KC",
|
|
"lastName": "Manager",
|
|
"email": "kcmanager@example.com",
|
|
"credentials": [{ "type": "password", "value": "kcmanager", "temporary": false }],
|
|
"realmRoles": ["default-roles-clustercockpit", "cc-manager"]
|
|
},
|
|
{
|
|
"username": "kcapi",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"firstName": "KC",
|
|
"lastName": "Api",
|
|
"email": "kcapi@example.com",
|
|
"credentials": [{ "type": "password", "value": "kcapi", "temporary": false }],
|
|
"realmRoles": ["default-roles-clustercockpit", "cc-api"]
|
|
},
|
|
{
|
|
"username": "kcuser",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"firstName": "KC",
|
|
"lastName": "User",
|
|
"email": "kcuser@example.com",
|
|
"credentials": [{ "type": "password", "value": "kcuser", "temporary": false }],
|
|
"realmRoles": ["default-roles-clustercockpit"]
|
|
}
|
|
]
|
|
}
|