spec: one community sign-in, every door — the operator role means admin everywhere: per-port sign-in + role posture, the roles reconciler, and the per-service tranches (#1509 part b, ruled by Ben 2026-09-16) #1535
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#1535
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?
Parent
Grows out of #1509 (one community sign-in, seven doors — parts (a)/(c) already ruled by the agent: (c) landed
997635c3, (a) split to #1532). This spec is part (b), the security-posture widening the agent correctly left to Ben as an ADR 0174 one-way door — ruled by Ben 2026-09-16: extend one sign-in to every catalogue port, and make the operator role mean admin everywhere. ADR 0074 (auth gate), ADR 0076 (komiti drive front-door access; per-app role mapping tiers), ADR 0150 (files consumes kanidm OIDC, operator is admin), DDR 0173 (the member lands in files by claim alone), ADR 0179 (komiti materialise as Nextcloud groups via runtime claim maps).Ben's ruling (2026-09-16): adding a member in the control panel grants them access to every member service the control panel deployed; adding a member as an operator gives them admin access to all services. One community sign-in, every door, no second login, no hidden per-app credential.
Problem Statement
The gate already answers the door half uniformly: every gated request to any
<svc>.<apex>is checked byGET /authz/gate(internal/controlapi/authgate.go) →member.Orchestrator.GateDecision(internal/member/komiti.go:576); a service with no matrix policy is open to all members; operators are never locked out. On allow the gate echoes the member's identity onX-Idss-Identity(the kanidmpreferred_username— the ledger's person id,operatorfor the founding operator; the roster AID on the IDIP path) and Caddy'scopy_headerscarries it to the backend (frontdoor.go:540). So every backend already receives who is asking on every gated request.What is NOT uniform is what each app does with that identity — the account half:
files.go:822-946)files-admin→ocgroups: admin(ADR 0150)GRIST_FORWARD_AUTH_HEADER=X-Idss-Identity(datacollections.go:360)owner@data-collections.local— provisioning attaches Grist with no owner (portroute.go:70)chat.go)mmctl roles system-adminis run for the SERVICE identity only (chat.go:309)code.go:253,add-oauth --provider openidConnect)--admin-groupon the sourcemeetings.go)mail.go)video.go)And one gap that breaks Ben's second sentence even for Nextcloud:
GrantOperator(internal/member/roles.go:80) flips the ledger role and mints the rescue key but never touches kanidm'soperators/files-admingroups — onlyvmguest.go:1610's founding render puts the operator there. A member promoted from the Members tab is an operator to the gate (isOperatorreads the ledger) and a plain member to every app.Solution
Follow ADR 0076's own shape — port-declared, never a uniform fiction — but make the declaration real and drive it from the two events Ben named:
signin: oidc | header | ownand what an operator / a member becomes inside the app (operator: nextcloud group admin,operator: forgejo admin,operator: grist org owner,member: default, orfront door only). The honest per-service line ADR 0076 already promises ("P6-S7 says so honestly per service") reads from this.ReconcileRoles(personID), fanned out over every DEPLOYED port's declared mapping — called from three events: member add/approve (P6), operator grant/revoke (P6,roles.go), and service deploy (P4/S11, so a newly placed service picks up every existing operator). The kanidm half (operators+files-admingroup membership) is the reconciler's first implementation and fixes theGrantOperatorgap; the per-app halves ride each port's admin API exactly as the health checks already do (ADR 0062 part 2, theforgejo-adminshape).files.gotemplate): Paperless-ngx (OIDC since 2.5.0;PAPERLESS_SOCIAL_ACCOUNT_SYNC_GROUPSpresent in 2.20.15), Gramps Web (OIDC since 3.4.0; the richest role mapping —OIDC_GROUP_OWNER/_EDITOR/_MEMBER…), PeerTube (peertube-plugin-auth-openid-connect), and Listmonk (OIDC since 4.1.0 but DB-configured — seed it throughPUT /api/settingsfrom the reconciler, not env).datacollections.gotemplate): LimeSurvey (AuthWebServer,serverkey,auth_webserver_autocreate_user; no core OIDC in CE), with the #1167 strip.GRIST_ACTIVATIONkey — kept OUT of a sovereignty stack); the fix is the owner identity + org access.journey.rented-services.spec.ts) gains a leg that signs the operator into one non-Nextcloud service and asserts the admin surface; the Whakatōhea demo is repaired by hand for Grist once the fix lands (session).Security invariant (every header-trusting port, #1167): a port that trusts
X-Idss-Identitylandsheader_up -X-Idss-Identityon its client-protocol exempt paths in the SAME commit (the gated handle overwrites the header from the gate's answer; the exempt handle has no such vouch —internal/clan/frontdoor.go:684is the strip,renderProxy(..., exempt=true)). A port that speaks real OIDC needs no strip but MUST keep its claim/scope maps on the patternfiles.go:822-946sets: audienceidm_all_persons(every person signs in), the admin bit keyed to ONE kanidm group via a collision-proof claim.User Stories
GrantOperator→ kanidmoperators+files-adminmembership + every declared per-app admin mapping;RevokeOperatorremoves exactly those; the audit line names which apps changed.owner@data-collections.local. AC: #1536 below.X-Idss-Identityon an exempt path. AC: the strip test infrontdoor_test.gocovers the port's exempt block.Out of scope
signin: ownports (Omeka until ruled).Dependencies
Tickets (filed with this spec): the Grist fix first (#1536), then the reconciler foundation (#1537), then per-port tranches blocked on it, the Omeka ruling, and the drive leg.
Tickets: #1536 → #1537 → #1538 #1539 #1540 #1541 #1542 #1543 #1544; ruling #1545; proof #1546.
mmctl --local roles system-admin <user>for operators androles memberon revoke (sign-in already OIDC; Team Edition has no claim-to-role mapping) #1543Proof ticket added by Ben's ruling: #1547 — the service-catalogue drive adds a member and grants an operator THROUGH THE PANEL, deploys + redeploys every catalogue service, and signs in as both roles at every door (operator = admin, member = user). Blocked on every build ticket + the Omeka ruling; #1546 stays the early one-service leg.
#1545 RULED by Ben: option 1 now + build the Omeka S header-auth module → #1548. #1547 now blocks on #1548 instead of the ruling.
Chain update 2026-09-16 ~20:00Z: #1537 LANDED (
1b34e278— posture declarations + the roles reconciler; GrantOperator now writes kanidmoperators/files-admin). #1536 was CLOSED BY ACCIDENT (my STATUS commit3b4b5169said "fix #1536" in its message — a Forgejo close keyword) and is REOPENED, untouched, still priority/ready-for-agent. #1548 is agent-blocked on a missing PHP lane + missing module repo → human input (Ben). #1547 now waits on #1536 + #1538–#1544 only; Omeka rides theownposture on the first fire.Three granted-operator gaps filed from reading the landed ports against the code (before the proof burns a droplet on them): #1551 Grist has NO member-orbit port (a later-granted operator stays an editor); #1552 LimeSurvey's reconcile is a no-op and its superadmin seed follows the founding seat; #1553 every OIDC port's "no account yet — applies at first sign-in" no-op never re-runs, so an operator granted before their first visit auto-provisions as a MEMBER (Listmonk/Mattermost now, Paperless/Gramps landing the same way). All three bug + priority + ready-for-agent; #1547 now blocks on them too. Landed meanwhile: #1536, #1540, #1541, #1542, #1543, #1544. Still open: #1538, #1539.
#1551 + #1552 landed (
732e7941,c3a272e7); #1539 landed (b4d0b51e— Gramps OWNER via the OIDC roles claim, no gap). One more gap off #1552's landing: #1554 — a grant never re-renders surveys (P4 attaches added services only) and the outstanding tail never clears. #1547 now blocks on #1538, #1553, #1554.restingIdentitySide.Pairfails loud, so the ledger flips tooperatorbut no key, no audit and no door fan-out land #1570lists:getis no permission,default_user_roleis no settings key) and limesurvey-auth fails with its stderr unharvested #1573response_mode=form_post, which kanidm only tolerates by a remap it says WILL BE REMOVED — a future kanidm bump breaks video sign-in #1626response_mode=form_post, which kanidm only tolerates by a remap it says WILL BE REMOVED — a future kanidm bump breaks video sign-in #1626