feat(keycloak): add the keycloak role, database and caddy vhost behind keycloak_enabled #599
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!599
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/keycloak-role"
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?
Runs Keycloak (ADR 0044) on staging behind
keycloak_enabled. Prod is unchanged: the flag is false there, the role ends early and the Caddyfile renders byte-identical.What
keycloak: a rootless Quadlet unit onbitborg-keycloak:26.8.0-1.MemoryHigh=896M,MemoryMax=1G,-XX:MaxRAM=1G.DropCapability=ALL.Notify=healthyon/health/ready, through a bash/dev/tcpscript (the image has no curl).127.0.0.1:18080only, for the OpenTofu forward (#598). Port 9000 stays unpublished.keycloakrole and database and revokes PUBLIC, as billing does.KC_BOOTSTRAP_ADMIN_CLIENT_ID/SECRET. #571 replaces it with a permanent client. An assert stops a first start that has no bootstrap secret.keycloak_domain(kc.stg.bitborg.seon staging, whereauth.stgstays on Kanidm for now). It is an allowlist: only/realms/bitborg/*and/resources/*are proxied, and everything else returns 404, including/admin, the master realm,/metricsand/health. The new rate-limit zoneskeycloakandkeycloak_credentials(POST login-actions/*and the token endpoint) use the existing auth budgets.keycloakjoins the health gate where it is enabled.<keycloak version>-<n>tags. Minors wait for dashboard approval.Verified
client_credentialstoken over plain HTTP. The heap maximum is about 718 MiB.--syntax-checkagainst the staging inventory, the repo check scripts, the Renovate validator and shellcheck all pass.main. With it on, the vhost validates in stock Caddy without the rate-limit block.Not verified (staging)
sslRequired=externalaccepts the token request through it.caddy validatewith the module checks.bootstrap-admin user.Refs #570