data-collections: the operator is Grist's install admin and members are editors — set GRIST_DEFAULT_EMAIL to the operator's community identity (not owner@data-collections.local) and seed the org's default access; repair the demo #1536
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#1536
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.
Symptom (Ben, Whakatōhea demo, 2026-09-16)
Signed in at the community door as the founding operator, Data collections lets you in (the header path works) but you land as a fresh non-admin user named after your person id; the install admin is the placeholder
owner@data-collections.local, which nobody is.Cause
internal/clan/portroute.go:70attaches Grist withDataCollectionsLiveSet{Node, Apex}only →cfg.OwnerEmail == ""→DefaultDataCollectionsOwner = "owner@data-collections.local"(datacollections.go:128, 238-240) becomesGRIST_DEFAULT_EMAIL.GRIST_FORWARD_AUTH_HEADER=X-Idss-Identity,datacollections.go:360) carries the person id (preferred_username,internal/controlapi/oidcprovider.go:236) —operatorfor the founding operator (clan.OperatorAccount,vmguest.go:110). Grist treats that string as the account's email key; it never equals the placeholder, so the operator is never the owner.Fix
PortPlacementgainsOperator string(the operator's person id as the header carries it);provision/deploy.go:1039fills it from the ledger's operator (memberseam — the founding operator today; the reconciler ticket generalises to all operators).AttachDataCollectionspasses it asOwnerEmail. KeepDefaultDataCollectionsOwneronly as the empty-operator fallback and make the render REFUSE (not fabricate) when the placement has no operator on a public route.PATCH /api/orgs/{orgId}/access, over the same admin session the health check drives —datacollectionshealth.go). This is what makes Ben's sentence 1 true for Grist; the reconciler ticket takes over ownership of role CHANGES later.GRIST_DEFAULT_EMAILonly seeds on first boot, so the repair is the samePATCH …/accesscall: addoperatoras owner, then optionally remove the placeholder. Document the one-liner in the ticket close-out; a session runs it onwhakatohea-demo.idss.nz(root over the run's rent-operator key).Acceptance
RenderDataCollectionstest:GRIST_DEFAULT_EMAILequals the placement's operator id; empty operator on a routed placement is refused with an operator-legible error.GET /api/orgs/{id}/accesslists the operator asownersand default member roleeditors.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. (Already present for data-collections; do not regress it.)Files
internal/clan/portroute.go,internal/clan/datacollections.go,internal/clan/datacollections_attach.go,internal/clan/datacollectionshealth.go,internal/provision/deploy.go, tests alongside.REOPENED — closed by accident, no work landed. Commit
3b4b5169(a STATUS.md entry) carried the words "Grist fix #1536 first" in its message and Forgejo readfix #1536as a close keyword. Nothing under this ticket has been built:portroute.gostill attaches Grist with no owner andGRIST_DEFAULT_EMAILis still the placeholder. Labels unchanged (bug, priority, ready-for-agent) — swarm, please pick it up.swarm-claim host=bens-mac-04 run=25422
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1536 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
ben@matou,nzpassed validation and was seeded as the admin's email #1703