keycloak: turn off full scope on the master-realm opentofu client #800
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#800
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
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?
The master-realm
opentofuclient (opentofu/keycloak/master.tofu) still has the defaultfull_scope_allowed = true. Keycloak logs a deprecation warning on every token request from it, and the switch will be removed in a future release.#785 turned it off for the three service-account clients in the
bitborgrealm and left this one out on purpose: OpenTofu manages the realm with this client, so a wrong scope mapping on the masteradmincomposite role would lock OpenTofu out of the realm.full_scope_allowed = falseon theopentofuclient and map the roles its token needs (keycloak_openid_client_service_account_realm_role.opentofu_admingrants masteradmin).-targeton the mapping first, then the flag, and keep a recovery path ready (the Keycloak admin bootstrap or the host-local admin) before applying.Done when a full
tofu planinopentofu/keycloakstill works after the change and Keycloak logs no "Full scope allowed" warning foropentofu.