26.8.2-1 rejects master-realm admin tokens with 401 #33
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-keycloak#33
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?
Image
26.8.2-1breaks admin access for master-realm service accounts. Deployment was reverted to26.8.1-1(bitborg/bitborg-infra#914) after a staging test.Observed on staging, 2026-11-29
opentofuclient in themasterrealm gets a token withclient_credentials(200). Issuer:https://id.stg.bitborg.se/realms/master. Audience includesbitborg-realmandmaster-realm./admin/serverinfoincluded. 401, not 403, so authentication fails, not authorisation.Host,X-Forwarded-HostandX-Forwarded-Protofor the public hostname changes nothing.bitborgrealm still work against the admin API. The entitlement reconciler completes and sign-in works.26.8.1-1the same calls return 200, before and after the test.The container sets
KC_HOSTNAME=https://<id domain>andKC_HOSTNAME_ADMIN=http://127.0.0.1:<forward port>. Admin calls go to the forwarded port.Next steps
hostname-admin.scripts/smoke-test.shplus aclient_credentialsadmin call, on26.8.1-1and26.8.2-1.Cause: Keycloak 26.8.2 fixes CVE-2026-19688 (GHSA-5624-rq7x-6m4q, upstream keycloak/keycloak#54902). The admin API now returns 401 for any token without the new
kc-admin-apiclient scope. The migration assigns it only to built-in and bootstrap clients. That hitopentofuand the bitborg-realm service accounts alike: the reconciler also failed until the fix.Fixed in bitborg/bitborg-infra#915 (assign
kc-admin-apito the admin clients, bump to 26.8.2-1) and bitborg/bitborg-infra#917 (admin-permissionslookup over the API, runbook bootstrap fixes). Prod upgraded 2026-11-29. The health gate passes and a full realm plan is empty.