feat(keycloak): declare the bitborg realm in opentofu #622
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!622
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/keycloak-realm"
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?
Declares the whole
bitborgKeycloak realm in a new OpenTofu root,opentofu/keycloak/, with its own encrypted state (ADR 0044). It reaches the admin API over the SSH forward from #598. Prod is locked (env/prod.tfvarslocked = true), so only staging can be planned.What
svdefault anden, registration off, reset on, usernames immutable, verified email, 24 h SSO session, brute-force detection, 30-day login events, admin events. The user profile hasusername,emailand onedisplayNameattribute emitted asname. firstName and lastName are removed, because accounts created without them cannot sign in.accessrole:forgejo_usersfor Forgejo and the portal,grafana_adminsfor Grafana.direct_grant_flowis a deny flow), so the defaultadmin-cliclient cannot issue a token for a password alone.ent_*realm roles.tier_proandtier_trialmap toent_runners_sharedandent_runners_priority, as the current nesting does. Tokens carry agroupsclaim (bare names) and anentitlementsclaim (effective roles).bitborg-web-admin: creates people, writestier_participant,tier_trialandforgejo_users, mapsent_renovate.bitborg-billing: writestier_pro, maps the paid roles.bitborg-reconciler: read only.opentofuclient. The runbook covers deleting the bootstrap client.scripts/keycloak-tofu-env.pyexportsTF_VAR_*from the vault, with a self-test.tier_pro.Verified locally
These ran against
bitborg-keycloak:26.8.0-1with a fresh Postgres:admin-clireturns 401.lefthook run pre-pushpasses.Not verified
Known gap
keycloak/keycloak5.9.0 reads a client's secret when it looks the client up, and Keycloak refuses that forrealm-managementunder v2 permissions. The root therefore useshashicorp/httpto look up that client's id. State is encrypted.Refs #571