feat(podman): add the bitborg-id user for keycloak #661
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!661
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/bitborg-id-user"
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?
Keycloak moves to its own rootless user (ADR 0042, amended in bitborg-docs#147 and #148). This PR lays the ground on every services host. It is inert: nothing runs in the new user until the keycloak role moves.
bitborg-iduser: uid 2001, nologin, linger.231072:65536, written beforeuseradd. Its Postgres files will be owned by these IDs, so a rebuilt host must hand out the same range. A read-only check stops the run if another range overlaps./srv/gitborg-data/bitborg-id/containersbind-mounted over~/.local/share/containers(ADR 0025 pattern).bitborg-id-address.serviceputs10.90.0.1/32onlo. Later PRs publish Keycloak there for the main service user's containers.user@2001drop-in: requires the address unit and the bind. The user manager does not start without both (fail closed).bitborg-id(10.89.10.0/24) andbitborg-id-data(internal).10.90.0.1that does not arrive onlo.Not in this PR: Keycloak itself, its Postgres, Caddy, monitoring, backups.
Verification:
--check, apply, re-apply withchanged=0, reboot. Address, bind, user manager and networks all come back. With the address unit failing,user@2001refuses to start.getsubids bitborg-id,findmntthe bind,ip addr show lo, the network units active as bitborg-id, then a reboot.98e4683ff071d4e27c28