fix(keycloak): turn off full scope on the service-account clients #796
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!796
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/keycloak-service-account-full-scope"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Keycloak logs a deprecation warning on every token request from a client with "Full scope allowed". The portal, billing and reconciler admin clients had the default
true.full_scope_allowed = falseon the three service-account clients.view-realminto the reconciler client's scope. The admin API checks admin roles against the token, so without the mapping the reconciler losesview-realm.No permission is widened.
Apply in
opentofu/keycloak:-target=keycloak_generic_role_mapper.reconciler_view_realmfirst, then a full plan. The plan must show only the threefull_scope_allowedchanges. Verify with the health-check gates, a reconciler run with status 0, and no "Full scope allowed" lines for these clients in the Keycloak logs. Rollback: flip the flag back.The master-realm
opentofuclient is left as it is; it needs its own change.Closes #785
b3da4fbec3438ab85f85