Epic: one identity, one place to edit it (ADR 0038) #64
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-docs#64
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?
Summary
Give every identity field exactly one place it can be changed, so no field is
visible in two systems holding different values.
A user currently faces three account surfaces — Gitborg Auth, the portal, and the
Git application — with nothing to say which is authoritative. That is an
integration gap rather than a presentation problem: Forgejo reads OIDC claims
once, when the account is created on first sign-in, and never again. Its copies
of the full name and email address are a local fork with no merge path back, in
either direction. So the email address is editable in the one place where
editing it has no effect.
What we're building
place it is edited — a verified email change needs to send mail, and the
identity provider cannot. The Git application keeps what only it has: SSH and
GPG keys, access tokens, notifications.
alongside the entitlement one, pushing the display name and email onto the Git
account and following operator-initiated renames. Accounts are joined on the
OIDC subject, never the username — which is exactly what a rename changes.
hook each already ships. Concealment and enforcement are separate mechanisms
and both are required: concealment alone leaves the API open, enforcement alone
means users edit a field and watch it silently revert.
address; nothing changes until it is opened, and the previous address is
notified afterwards.
repository URL an account holds, so renaming is an operator action.
Decision record
ADR 0038 — Identity field ownership and the single edit surface
(
decisions/0038-identity-field-ownership.md).Tasks
the pinned-image bump and rollout are bitborg-infra#323
Out of scope
owns and breaks links in workflows and documentation, so it stays an operator
action — the projection carries it across.
sender, so it cannot verify an address, and this one is also the
account-recovery address.
than identity and stay available deliberately; only the choice of primary
address is withdrawn.
Notes discovered during delivery
full_nameon JIT account creation, contrary to theopen upstream issue. There was no blank-name backlog, so a run correcting
nothing is the expected steady state — verify the projection with a positive
test, never by expecting a spike.
external identity, so they are correctly skipped and stay unmanaged until first
sign-in links them.
Build scope delivered. Every identity field now has exactly one place it can be changed, and no field is offered in two systems.
Live and verified in production:
Two things learned that are worth carrying forward, both recorded in the tasks:
Closing per the epic convention: what remains is operational rather than build work. Accounts created locally that have never completed an OIDC sign-in carry no external identity, so their names stay unmanaged until they sign in once — that resolves itself per user and needs no further building.