catalogue port: Data collections (Grist) — the community register, OIDC decision leads #1166
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.
Depends on
Reference
Matou/idss#1166
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
Feature #1073; Ben's promotion ruling 2026-09-02 (follow-up — the eighth port),
recorded in
docs/research/2026-09-01-catalogue-candidate-seed-list.md(§E isthis service's research; per-claim citations).
What to build
Service: Data collections · runs Grist · category Build. An ADR 0062
catalogue port, shipped through the update channel, touching no provisioning
code: (1) the declarative NixOS unit + secrets via the clan seam's
AttachService — NO nixpkgs module exists (container-shaped port, like Gramps
Web); grist-core, Apache-2.0, Node + sandboxed Python formula engine +
SQLite-file-per-document (lightest of the Airtable class); (2) the
out-of-band reconciler where needed (org/site bootstrap); (3) the service's
OWN HealthCheck proving real function — plus the catalogue Service entry:
slug, name, MEASURED floor and steady-state memory, roles (helper), access
facts, Product + ProductURL, and the DDR 0220 display facts.
Identity is the port's one open decision (research open question 10):
every catalogue service rides the community IdP via OIDC (ADR 0016). Grist's
self-hosted OIDC sign-in requires an activation key — free for qualifying
small orgs. Resolve at port time: obtain/verify the key path for community
deployments and record the decision (and any terms) on this ticket. If the
key path is unobtainable or its terms are unacceptable for shipping to every
community, DO NOT ship a passwordless-or-local-accounts compromise — report
back on this ticket; Teable is the researched fallback (§E reserve).
Row-level access rules (rows/columns/tables, conditioned on user attributes)
are in the Apache-2.0 core and require working logins — one more reason the
OIDC decision leads the port.
Acceptance criteria
Blocked by
swarm-claim host=elitebook-distributed-server-03 run=16658
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
The decision (research open question 10 / AC2): identity for the Grist port
Ship Grist on the Apache-2.0 Community edition with front-door forwarded-header auth (ADR 0074), NOT the OIDC-with-activation-key path. Grist consumes the community identity via the front door's existing
X-Idss-Identityheader — which is set from the gate's OIDC session against the community IdP (ADR 0016 seam honoured: identity still originates from the community IdP; no local password store, no second identity). No activation key, no full-edition terms.What I verified upstream (the "obtain/verify the key path" the ticket asks for)
GRIST_FORWARD_AUTH_HEADER— "if set, trust the specified header (e.g. 'x-forwarded-user') to contain authorized user emails, and enable 'forward auth' logins." Grist's docs confirm "Sign in with getgrist.com and forwarded headers are available in all editions."user.*-conditioned row rules work — AC3 is satisfiable without the key.Why forward-auth, not the activation key
Baking a Grist-issued activation key into every community's deployment is a per-community external dependency + full-edition terms acceptance — exactly the "terms unacceptable for shipping to every community" case the ticket flags. Forward-auth sidesteps all of it and is the native IDSS pattern: ADR 0074's front door already runs
forward_authagainst the auth gate and copiesX-Idss-Identityonto every upstream route. Grist just reads that header. This is not the "passwordless-or-local-accounts compromise" the ticket forbids — the member has signed in via the community IdP at the gate (OIDC), there is no local password store, and identity is swappable behind the same 0016 seam.Why this is a two-way door (ADR 0174)
One security note carried to the front-door routing work (not this port)
Grist trusts
X-Idss-Identity. The front door already sets it authentically on gated routes (copy_headersoverwrites any client value) and strips it on ungated routes (#1094). When Grist's public route is wired (deferred — these ports are gated out of P4-S2 selection today, like whakapapa/surveys), the front door MUST also strip inboundX-Idss-Identityon Grist's client-protocol exempt paths, since a header-trusting service is the first to make that path matter. I am filing a follow-up issue for the front-door exempt-path strip so the routing work does not ship the gap; the deploy-time check reaches Grist's instance directly (the derived instance URL / mesh), not through a public exempt path.Teable (§E reserve) remains the documented fallback if this posture is ever vetoed.
close-report for #1166 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope