members: every port declares its sign-in + role posture, and ONE roles reconciler fans operator/member out to kanidm groups and every deployed app on member add, operator grant/revoke, and service deploy (fixes GrantOperator never touching kanidm) #1537
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.
Blocks
Reference
Matou/idss#1537
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?
Spec
#1535 — 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.
The gap
GrantOperator/RevokeOperator(internal/member/roles.go:80-135) change the ledger role and the rescue key and nothing else: the promoted person is not added to kanidm'soperatorsorfiles-admingroups, so they are an operator to the gate (komiti.go:640 isOperatorreads the ledger) and a plain member to every app — Nextcloud included. Only the founding render (clan/vmguest.go:1610,persons.operator.groups = ["operators" "files-admin"]) ever puts anyone in those groups.Build
SignIn: oidc|header|ownand a role mapping: what an operator becomes and what a member becomes (nextcloud: operator→files-admin group, member→default;grist: operator→org owner, member→editor;forgejo: operator→admin, member→default;mattermost: operator→system_admin;meetings/mail/docs-editing/static-sites: front door only). The service card renders the honest line from it (ADR 0076: "says so honestly per service").ReconcileRoles(ctx, personID)on the members orchestrator: reads the ledger role, then (a) kanidm: ensure membership inoperators(+files-admin,clan.NextcloudAdminGroup) for operators and absence for members — via the existingkanidmadapter's group verbs (internal/kanidm/kanidm.go:484-502is the claim-map precedent); (b) for every DEPLOYED port with a per-app mapping, call the port'sReconcileRole(person, role)over its admin API — the same session its health check drives (ADR 0062 part 2). Per-app implementations land in the per-port tickets; this ticket ships the fan-out, the kanidm half, and the Nextcloud mapping (which is the kanidm half by construction, ADR 0150).GrantOperator/RevokeOperator; member add/approve (CreatePerson/EnableAccountpaths); P4 deploy after a port's health check passes (provision/deploy.go) — for EVERY current operator, so a new service already knows them. Audit line names the apps touched. Failures on one app never roll back the ledger (best-effort, reported on the member detail as "not yet applied on ", retried by the next reconcile).Acceptance
roles_test.go: grant → kanidmoperators+files-adminmembership asserted through the fake IDP; revoke → removed; idempotent.Files
internal/member/roles.go,internal/member/idp.go,internal/kanidm/kanidm.go,internal/catalogue/catalogue.go(or the port descriptor),internal/provision/deploy.go,dashboard/service cards + member detail, tests.mmctl --local roles system-admin <user>for operators androles memberon revoke (sign-in already OIDC; Team Edition has no claim-to-role mapping) #1543mmctl --local roles system-admin <user>for operators androles memberon revoke (sign-in already OIDC; Team Edition has no claim-to-role mapping)swarm-claim host=elitebook-distributed-server-03 run=25415
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1537 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope