feat(kanidm): rename the provision account and entry-manager group #407
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
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!407
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/rename-1b-sa-and-manager-group"
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?
ADR 0039 §1b, identifiers ② and ③ — the coupled half, completing the tranche. Applied and verified on prod 2026-08-10.
gitborg-web-provision→bitborg-web-provision, andidm_gitborg_ent_managers→idm_bitborg_ent_managers.Four sites, two of which the plan did not list
group_vars/all/vars.ymlkanidm_web_entry_manager_grouproles/kanidm/defaults/main.ymlkanidm_web_provision_accountroles/kanidm/defaults/main.ymlkanidm_web_provision_groups[]scripts/signup-drill.shMANAGER_HINTThe last two are the dangerous ones.
MANAGER_HINTonly feeds a remediation hint, but a stale value would make the completion gate report a broken delegation while the delegation was fine.Zero sign-up downtime
entry_managed_byis single-valued, so moving the delegation would normally revoke the old account's access instantly. Instead both service accounts were put in the new manager group first, so the portal's existing token kept working while the new one was swapped in. The old account stays a working fallback until it is deleted.Three stale comments corrected — all actively misleading
kanidm_provision_image_tag: v1.3.0-gitborg1) madekanidm-state.json.j2emitentryManagedBy— whose own comment says it "retires the manualkanidm group set-entry-managerstep". Three places repeated the old claim.tier_basicandent_renovate" as the delegated pair. Verified live: four groups carried the delegation (tier_participant,tier_trial,forgejo_users,ent_renovate), andtier_basicis not among them — it is the group ADR 0029 moved, whose stale duplicate broke sign-up for 13 days. Acting on that comment would have left trial sign-ups andforgejo_usersbroken.entry_managed_by. That one is user-facing during an incident.What genuinely is not declarative is now stated precisely: the manager group and the service account are never created by Ansible — the group appears nowhere in
kanidm_groups, and kanidm-provision's serde silently discards theservice-accountsblock (upstream PR #29). A rebuild must create both by hand first.Verification
Baseline before:
changed=0on both hosts, and a passingsignup:drillas a known-good reference.Apply:
changed=3,failed=0— state file, provision-token podman secret, container restart.Provision entitlement groupsreported no change, confirming the manual Kanidm prep had already reached the declared state.signup:drillPASSES end to end (person →tier_participant→tier_trial→forgejo_users→ reset intent → cleanup 200)08:19:46.23Z, container started08:19:56.53Z— 10s later — and reportsrunning healthy./200,/account302; allhealth-checkgates passedVault re-committed encrypted; the diff contains no non-hex lines.
Follow-up
The rename plan (bitborg-internal #92) repeats the "not declarative" claim, which I took from these comments before verifying it. Correcting that separately.