keycloak: turn off full scope on the service-account clients #785

Stängd
öppnade 2026-10-18 12:58:01 +00:00 av supernaut · 0 kommentarer
Ägare

Keycloak logs a deprecation warning on every token request from the bitborg-reconciler service account:

Client 'bitborg-reconciler' in the realm 'bitborg' has 'Full scope allowed' switch enabled. This client switch is deprecated and will be removed in the future.

The service-account clients in opentofu/keycloak/service-accounts.tofu do not set full_scope_allowed, so they get the default true. The sign-in clients in clients.tofu already set it to false.

Set full_scope_allowed = false on the service-account clients and add the role scope mappings each one needs. The reconciler holds realm-management view-realm (reconciler_view_realm), so its token must still carry that role. Check whether the portal and billing clients need any role in their tokens under permissions v2.

Done when no client logs the warning, the reconciler run status stays 0, and the Keycloak portal and billing health gates pass after a tofu apply in opentofu/keycloak.

Keycloak logs a deprecation warning on every token request from the `bitborg-reconciler` service account: > Client 'bitborg-reconciler' in the realm 'bitborg' has 'Full scope allowed' switch enabled. This client switch is deprecated and will be removed in the future. The service-account clients in `opentofu/keycloak/service-accounts.tofu` do not set `full_scope_allowed`, so they get the default `true`. The sign-in clients in `clients.tofu` already set it to `false`. Set `full_scope_allowed = false` on the service-account clients and add the role scope mappings each one needs. The reconciler holds `realm-management` `view-realm` (`reconciler_view_realm`), so its token must still carry that role. Check whether the portal and billing clients need any role in their tokens under permissions v2. Done when no client logs the warning, the reconciler run status stays 0, and the Keycloak portal and billing health gates pass after a `tofu apply` in `opentofu/keycloak`.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#785
Ingen beskrivning angiven.