spec: on IDIP every service keys a member on their AID and shows a community-unique display name #1915
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1915
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
On an IDIP community (identity through the idss-idp bridge, no kanidm), a member's
accounts in the community's services are keyed inconsistently, and most services
cannot sign anyone in at all:
The front door renders kanidm only off the IDIP path, and
id.<apex>is the bridge,which declares three sign-in clients (the gate, Nextcloud, NetBird). Chat
(Mattermost), code (Forgejo), meetings (Jitsi), mail (Stalwart + Roundcube),
whakapapa (Gramps), video (PeerTube), newsletters (Listmonk) and document-archive
(Paperless) all render kanidm OIDC paths and kanidm provisioning oneshots. On IDIP no
one can sign in to them. #1903's "these services are safe" verdict string-matched
renders built with a kanidm-shaped host and never modelled IDIP (GOTCHAS #349 is
wrong on this point).
anchored roster, and which matou-app derives from the applicant's email local part
(so every
ben@…asks forben). Two people can land in one account.including Nextcloud.
key (Grist showed
m-<hash>until ADR 0283 amendment 2), and several people show as"ben".
Solution
On IDIP, every service keys a member's account on their AID and shows their
community-unique display name (Ben's rulings, 2026-09-27):
(length, case or charset limits), a stable form derived only from the AID: nobody
can claim it, and it never changes.
_Nsuffix: the first "Ben" stays "Ben", the next is "Ben_2", then "Ben_3".person gets a fresh AID-keyed account on their next sign-in, and an admin moves data
by hand if it matters.
The bridge becomes the IDIP sign-in provider for every OIDC service (a declared client
per service), carries the identity claims those services need, and carries role claims
so a steward is admin everywhere. Until a service's IDIP sign-in lands, an IDIP
community is refused that install in words, never given a service nobody can sign
into.
User Stories
Implementation Decisions
the same holder rules: a declined join (archived, never issued) holds nothing; a
removed member (archived after issue) keeps theirs; a name already handed to an AID
is sticky. Comparison is case-insensitive. The suffix is
_N(lowest free N ≥ 2).The resolved name is stored on the row and is what the bridge mints as
name.u+ the first 20lowercase hex characters of sha256(AID). That is 21 characters, lowercase, and starts
with a letter, so it fits Mattermost (≤22), Forgejo, PeerTube (no
-) and a mailboxlocal part. The bridge sends it as its own claim beside
sub.email. Grist keeps its existingm-<24 hex>@<apex>form (ADR 0283); no migration.read (a
groupsmembership, plus the per-service role claim names those renders map),derived from the roster's live operator standing.
secret from the service's clan-var generator), added when the service is placed.
Discovery is reachable where each service's OIDC library looks for it.
(as files already does): point at the bridge, not kanidm; key the account on
sub, thederived handle, or the derived email per the table below; take the display name from
name; no kanidm provisioning oneshots on IDIP.the same derived handle on IDIP.
has not landed is refused with a worded reason. The guard's list shrinks as each
service ticket lands.
sub(done, #1902)namenamenamem-<hash>@apex(done, ADR 0283)namenamesubnamenamenameTesting Decisions
(given a roster, the claims a member's token carries); (2) each service's render built
with an IDIP config (points at the bridge, keys on the ruled claim, no kanidm oneshots),
following the files render's IDIP test; (3) a live proof per service, where a
member and a steward sign in on a real IDIP gateway and land in distinct AID-keyed
accounts, the steward as admin. A render string-match alone is not proof: that is how
#1903 passed wrongly.
render).
Out of Scope
ticket is ready-for-human).
Further Notes
_N; AID-derived form where a raw AID is refused; no migration). ADR 0283 and itsamendments record the Grist half.
#351).
name#1916matou-build-agent referenced this issue2026-09-27 21:02:38 +00:00