One community sign-in, seven doors: the operator account works for Nextcloud ONLY (it is the one OIDC client) — the other six services ask for their own admin credential, which the panel never surfaces; and Members shows "Ben Tairea" while the sign-i… #1509
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1509
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?
Symptom (Ben, 2026-09-16, on the Whakatōhea Demo)
Signing in as the founding operator works for Nextcloud only. Every other service on the gateway — Community archive (Omeka S), Document archive (Paperless), Genealogy (Gramps Web), Surveys (LimeSurvey), Data collections (Grist), Newsletters (Listmonk) — lets the operator through the community sign-in and then shows the app's own login, where no
operatoraccount exists. And the name does not match what the panel shows: the Members tab lists Ben Tairea, while the thing you type at the sign-in isoperator.What is actually true on the box
kanidm system oauth2 create nextcloud …is rendered byinternal/clan/files.go:893and nothing else creates one — the gateway's kanidm carriesnextcloudplusgate-oidc(the front-door auth gate). So Nextcloud is ADR 0076's Tier 1 claim-native port, and the other six are "front door only".adminpass/OMEKA_ADMIN_PASSWORD/GRAMPSWEB_OWNER_PASSWORD/LISTMONK_ADMIN_PASSWORDoutside the render):/run/secrets/vars/archive-secrets/env→OMEKA_ADMIN_PASSWORD/run/secrets/vars/document-archive-secrets/adminpass(useradmin)/run/secrets/vars/whakapapa-secrets/env→GRAMPSWEB_OWNER_PASSWORD(userowner)/run/secrets/vars/surveys-secrets/adminpass(useradmin)/run/secrets/vars/newsletters-secrets/env→LISTMONK_ADMIN_PASSWORD(useridss-apifor the API token)GRIST_SESSION_SECRETonly.GET /api/v1/membersreturns{"person_id":"operator","name":"Ben Tairea","role":"operator"}— the Members tab paintsname, the sign-in wantsperson_id.So the product is behaving as ADR 0076 describes, but the OPERATOR EXPERIENCE is a dead end: the community sign-in implies one identity across the community, and six of seven doors then ask for a credential the operator has never been given and cannot find.
What needs ruling (this is a design ticket, not a mechanical fix)
files.godoes for Nextcloud. This is the posture an operator expects from "one community sign-in" and is the bigger arc.operator.Ben's own words: "the login account operator username is only working for nextcloud… it also doesn't align with what I'm seeing on the members tab, there is a user ben tairea".
Acceptance (once ruled)
Evidence
Whakatōhea Demo (
whakatohea-demo.idss.nz, kept; read-only inspection via the phase-9 run's rent-operator key on matou-workstation): kanidm oauth2 client list, the six secrets dirs above,GET /api/v1/membersoutput, ADR 0076's Tier 1/Tier 2/front-door-only ruling.Ruled by agent under ADR 0174 — veto anytime
This is a design ticket offering three parts (a/b/c). Rulings and what shipped:
Part (c) — the display-name/account-id mismatch — LANDED (
997635c3, onmain). Members painted the display name ("Ben Tairea") while the sign-in wants the account id (operator), and nothing in the UI ever told the operator their username. Fixed: each P6-S1 member row (MembersScreen.vue) and the P6-S4 hand-off card (MemberDetailScreen.vue) now show the account id under the display name (data-field="member-username", mono/soft), rendered only when the id differs from the name (no redundant "@operator" beside "operator"). Wireframes p6-s1/p6-s4 amended to carry the same field (design-tier accept under ADR 0174). Proof (offline):membersList.test.ts+2,memberDetail.test.ts+2, related member/overview suites green,vue-tscclean. This satisfies acceptance clause 2 ("the Members tab and the sign-in agree on what to call a person").Why (c) is a two-way door: revertible UI + test change, proven offline; the account id was already on the wire (
GET /api/v1/membersreturnsperson_id), so this is pure surfacing.Part (a) — "say it honestly per service", with the audited credential reveal — SPLIT to #1532 (
needs-design). This is the substantive remainder (acceptance clause 1: "reach every running service's admin without ssh"). It cannot be a swarm slice as-is: it has no wireframe (the UI contract) and needs a per-service DDR — the six front-door-only services carry heterogeneous secret shapes (env vs bare file), Listmonk's secret is a machine API token not a human login, and Grist has no local admin at all (it rides the front door's forwarded-header auth). So "reveal the admin credential" is not one thing; the design must rule the exceptions and the audit semantics before it is implementable. The reader mechanism already exists (the control plane reads these per-call for health checks), so once designed it is buildable. See #1532 for the full breakdown.Part (b) — extend Tier-1 OIDC to Paperless/Gramps/Grist/Omeka — NOT opened here. This is the bigger arc AND a security-posture widening (new deliberately-authenticating clients) — an ADR 0174 one-way door, not an agent's to open unilaterally. It belongs in its own future ticket, weighed against (a).
Acceptance clause 3 (the drive leg on a non-Nextcloud service) is phase-9 — it needs a live founding drive, which a swarm worker cannot run; it rides #1532's completion.
Hand-off
Clause 2 is met and landed; clauses 1 and 3 need the design-tier reveal (#1532) plus a phase-9 drive. So #1509 moves to
needs-design— blocked on the missing reveal wireframe/DDR now tracked in #1532. A human/design session re-arms by ruling #1532's design and (optionally) a separate (b) ticket.Correction + the mechanisms that already exist (session findings, 2026-09-16)
The premise "Nextcloud only" is not quite right — TWO of the seven already sign in with the community identity, by TWO different mechanisms:
internal/clan/files.go:822-946renderskanidm system oauth2 create nextcloud …+add-redirect-url … /apps/user_oidc/code+update-scope-map … idm_all_persons openid email profile groups+update-claim-map … ocgroups(komiti → Nextcloud groups, the operator →admin), then configures the app'suser_oidcthroughocc. ADR 0076 Tier 1. ~120 lines of render.internal/clan/datacollections.go:178-180, 360setsGRIST_FORWARD_AUTH_HEADER = "X-Idss-Identity", and the demo box confirms it live (podman inspect grist→GRIST_FORWARD_AUTH_HEADER=X-Idss-Identity). No OIDC client, no secret, no redirect URL: the auth gate already forwards the resolved member identity to every service route (internal/controlapi/authgate.go:23-24— the gate answers 204 and echoesX-Idss-Identity;frontdoor.go:466copies it onto the backend). An app that trusts that header is signed in for free.So the header is already arriving at all seven backends. Five of them simply ignore it.
What that means for the fix
The cheap path is (2), not (1): the plumbing is done, the cost per service is "does the upstream accept a trusted header, and what config turns it on". The expensive path is (1), one kanidm client + claim map + per-app plugin config per service.
Security invariant either way (already honoured for Grist, #1167): a header-trusting service REQUIRES the front door to STRIP inbound
X-Idss-Identityon that service's client-protocol exempt paths — the gated handler overwrites it viacopy_headers, the exempt handler does not. Verified on the demo box: thedata-collectionsexempt block carriesheader_up -X-Idss-Identity. Any new header-trusting port must land the same strip in the same commit, or the service's/api/*becomes "assert any identity you like".Per-service upstream capability
An upstream-capability survey (Omeka S, Paperless-ngx 2.20.15, Gramps Web, LimeSurvey CE, Grist, Listmonk 6.1.0) is attached in the next comment. One in-tree signal already: the Paperless build ships
django-allauth 65.16.1, the library Paperless uses for OIDC/social login, so its OIDC path is present in the binary we deploy.The name mismatch (part c) is independent and cheap
GET /api/v1/membersreturns{"person_id":"operator","name":"Ben Tairea"}; the Members tab paintsname, the sign-in wantsperson_id, and nothing in the UI ever says so. Fixable on its own ahead of any SSO work.Upstream capability survey (2026-09-16) — what each of the five can actually do
PAPERLESS_APPS=allauth.socialaccount.providers.openid_connect+PAPERLESS_SOCIALACCOUNT_PROVIDERSJSON; callback/accounts/oidc/<id>/login/callback/PAPERLESS_SOCIAL_ACCOUNT_SYNC_GROUPS(v2.15.0, present in our build) syncs IdP groups → Django groups each login; groups must pre-exist by nameGRAMPSWEB_OIDC_ENABLED,OIDC_ISSUER,OIDC_CLIENT_ID/_SECRET,OIDC_USERNAME_CLAIM,OIDC_DISABLE_LOCAL_AUTHOIDC_ROLE_CLAIM+OIDC_GROUP_ADMIN/_OWNER/_EDITOR/_CONTRIBUTOR/_MEMBER/_GUESTLISTMONK_security__oidc__*env override. Callback/auth/oidcAuthDB/AuthLDAP/AuthWebServeronly; the one LS6-targeted OIDC plugin is a ~3-star community project. The header path works:AuthWebServerwithserverkey=REMOTE_USER+auth_webserver_autocreate_userDaniel-KM/Omeka-S-module-SingleSignOn, which is SAML 2.0 onlyPlus the two already done: Nextcloud (OIDC client, group claims → app groups) and Grist (trusted header).
Auto-provisioning on first sign-in
Paperless yes (
PAPERLESS_SOCIAL_AUTO_SIGNUP, links by email). Gramps Web yes, but the account lands with no usable role unlessOIDC_GROUP_*grants one — the first user must be in the OWNER group before anyone signs in. Listmonk yes since v5.1.0 (present in our 6.1.0). LimeSurvey only viaauth_webserver_autocreate_user, static permissions. Omeka S: JIT exists, but on the SAML path only.Two findings worth a ruling of their own
GRIST_ACTIVATION— compiled in, refuses to run without an activation key. The key is free below USD $1M org income, but it is a phone-home registration step. For a sovereignty stack that is a posture question, and it is an argument for keeping data-collections on the forwarded-header path we already ship (which needs no key, and already works).Suggested shape (for Ben's ruling)
files.go): document-archive (Paperless) and whakapapa (Gramps Web). Both do group mapping, both auto-provision, both configure by env. Highest value, lowest risk.datacollections.go): surveys (LimeSurveyAuthWebServer). Cheap; accept static in-app permissions. Must land theheader_up -X-Idss-Identitystrip on its exempt paths in the same commit (#1167's invariant).Sources: Paperless-ngx docs + PR #5190; grampsweb.org/install_setup/oidc + gramps-web-api v3.4.0 release; listmonk.app/docs/oidc + v4.1.0/v5.1.0 releases; LimeSurvey authentication-plugins manual; Grist support/install/oidc + free-activation-key FAQ; Daniel-KM/Omeka-S-module-SingleSignOn.
Part (b) RULED by Ben (2026-09-16) — spec #1535
Ben's ruling: adding a member grants access to every deployed member service; adding an operator gives admin on all services. Spec #1535 carries the per-port posture + roles reconciler design and the per-service tranches. Tickets: #1536 (Grist owner/org access — priority, first), #1537 (port posture + roles reconciler; also fixes
GrantOperatornever touching kanidm groups), #1538 Paperless OIDC, #1539 Gramps Web OIDC, #1540 LimeSurvey header, #1541 Listmonk OIDC seed, #1542 Forgejo admin-group, #1543 Mattermost system-admin, #1544 PeerTube OIDC, #1545 Omeka S ruling (human), #1546 drive leg (session). #1532 stays the fallback forsignin: ownports.