Keycloak service accounts (unreleased)
A Keycloak client is now a service account only for an org listed in keycloak.serviceAccountOrgs, and only when it holds both PROVIDER_ADMIN and TENANT_ADMIN there. Previously, every client credentials token was a service account in every org, so a Tenantβs own client became its own Provider when it called GET /v2/org/{org}/nico/service-account/current.
Before upgrading
Service account orgs are required
With keycloak.serviceAccount: true, list the service account orgs in keycloak.serviceAccountOrgs, otherwise nico-rest-api fails to start. Disconnected mode allows exactly one org, such as ncx for the bundled ncx-service client. The helm-prereqs values already list it. Refer to Upgrading NICo for the values change.
Changed behavior
- A client credentials token from a client that is not a service account is authorized by its roles in the requested org, like a user token. This includes
keycloak.serviceAccount: false, where such a token previously got401. - In disconnected mode, a config with more than one
isServiceAccount: trueclaim mapping across custom issuers fails to start. - In connected mode,
keycloak.serviceAccountOrgscan list more than one org, and custom issuerisServiceAccountmappings are accepted with no limit on their number.