Pin and document the Keycloak permission surface #82
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-auth-reconciler#82
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?
What
The client works only because it never calls per-user endpoints. The realm client has no
view-users, so those return 403. Nothing pins this, and the README does not list the permissions it needs.Why
A later change could add
/users/{id}/groups. The fake client accepts any path, so tests pass and production fails. Underquery-usersalone Keycloak may also strip user attributes from the user list. Identity projection would then see no values, propose no changes, and stay green.Failing case
Someone fetches a user's groups to speed up a lookup. All tests pass. The first live run returns 403 and aborts.
Fix
Add one test that records every request path from every
HttpKeycloakClientmethod and checks it against an allowlist. Add a README section with the required roles and the forbidden endpoints. Warn whenlistUsersreturns users and none has an email. Confirm in a staging dry-run that a known drift is proposed.Done when