One community sign-in, six front doors: an audited operator reveal of each front-door-only service's admin credential (part a of #1509) #1532

Open
opened 2026-09-16 03:32:34 +00:00 by matou-build-agent · 0 comments

Split from #1509 (part a — the credential reveal)

#1509 found that the community sign-in carries the operator into Nextcloud only (the one OIDC/Tier-1 client, ADR 0076); the other six gateway services are "front door only" and then ask for their own local admin credential, which lives in /run/secrets/vars/<svc>-secrets/ and is surfaced NOWHERE in the panel or API. Part (c) of #1509 (the display-name/account-id mismatch) landed in 997635c3. This ticket carries the substantive remainder: part (a) — "say it honestly per service", with an audited operator-only credential reveal so an operator can reach every running service's admin without ssh into the box (#1509 acceptance clause 1).

Ruled under ADR 0174 on #1509: adopt the ticket's proposed default (a) over (b) (extend Tier-1 OIDC to Paperless/Gramps/Grist/Omeka — the bigger arc AND a security-posture widening, i.e. a one-way door; that is its own future ticket, not opened here).

Why this is needs-design, not ready-for-agent

The reveal has no wireframe (the UI contract) and needs a per-service DDR ruling, because the six services carry heterogeneous credential shapes and one has none at all:

Service Product Secret Account Shape
Community archive Omeka S OMEKA_ADMIN_PASSWORD (env) (admin email) env KEY=VALUE
Document archive Paperless-ngx adminpass (bare file) admin bare file
Genealogy Gramps Web GRAMPSWEB_OWNER_PASSWORD (env) owner env KEY=VALUE
Surveys LimeSurvey adminpass (bare file) admin bare file
Newsletters Listmonk LISTMONK_API_TOKEN (env) idss-api env — an API token, not a login password
Data collections Grist — — no local admin; rides the front door's forwarded-header auth (grist-core OIDC is paid)

So "reveal the admin credential" is not one thing: Grist has nothing to reveal (the honest card there is different — it rests on the community front door), Listmonk's secret is a machine API token (not a human login), and the rest split between env-file and bare-file readers. The control plane already reads these per-call for its health checks (control-plane/cmd/control-plane/{paperless,newsletters,whakapapa,surveys}health.go via admin.User/admin.Secret(), and internal/clan/portsecrets.go's portSecretsMaterialisedPath), so the reader mechanism exists — but where/how the operator sees it, the audit semantics, and the Grist/Listmonk exceptions all need a design ruling first.

What to design + build

  • A wireframe for the per-service sign-in truth on the Active service card (P4-S5 / Services tab): "with your community account" (Nextcloud, Tier 1) vs "this service keeps its own sign-in" with an audited reveal of the admin credential (the reset-links reveal, #1509's members surface, is prior art). Grist/Listmonk get honest, distinct copy (no login password to hand out).
  • A catalogue display fact on catalogue.Service (internal/catalogue/catalogue.go:99) naming each service's sign-in mode (claim-native vs front-door-only), surfaced through composeCatalogue/installableEntry → dashboard/src/lib/catalogue.ts → CatalogueSurface.vue.
  • The reveal endpoint: operator-only, audited, reading the materialised secret path per service (the health-check reader generalised); it never lists a credential that does not exist (Grist).

Acceptance (carried from #1509)

  • From the panel alone, an operator can reach every running service's admin without ssh into the box (or, where there is no admin to reach — Grist — the panel says so honestly).
  • A drive leg proves it on at least one non-Nextcloud service (phase-9 — the founding journey now founds seven).

Out of scope

  • Part (c) (display-name/account-id) — LANDED in #1509 (997635c3).
  • Part (b) (extend Tier-1 OIDC) — a separate bigger-arc ticket; a security-posture widening (one-way door, ADR 0174).

Filed while working #1509.

## Split from #1509 (part a — the credential reveal) #1509 found that the community sign-in carries the operator into **Nextcloud only** (the one OIDC/Tier-1 client, ADR 0076); the other six gateway services are "front door only" and then ask for their **own local admin credential**, which lives in `/run/secrets/vars/<svc>-secrets/` and is surfaced NOWHERE in the panel or API. Part (c) of #1509 (the display-name/account-id mismatch) landed in 997635c3. This ticket carries the substantive remainder: **part (a) — "say it honestly per service", with an audited operator-only credential reveal** so an operator can reach every running service's admin **without ssh into the box** (#1509 acceptance clause 1). Ruled under ADR 0174 on #1509: adopt the ticket's proposed default **(a)** over **(b)** (extend Tier-1 OIDC to Paperless/Gramps/Grist/Omeka — the bigger arc AND a security-posture widening, i.e. a one-way door; that is its own future ticket, not opened here). ## Why this is `needs-design`, not `ready-for-agent` The reveal has **no wireframe** (the UI contract) and needs a **per-service DDR ruling**, because the six services carry **heterogeneous credential shapes** and one has none at all: | Service | Product | Secret | Account | Shape | |---|---|---|---|---| | Community archive | Omeka S | `OMEKA_ADMIN_PASSWORD` (env) | (admin email) | env KEY=VALUE | | Document archive | Paperless-ngx | `adminpass` (bare file) | `admin` | bare file | | Genealogy | Gramps Web | `GRAMPSWEB_OWNER_PASSWORD` (env) | `owner` | env KEY=VALUE | | Surveys | LimeSurvey | `adminpass` (bare file) | `admin` | bare file | | Newsletters | Listmonk | `LISTMONK_API_TOKEN` (env) | `idss-api` | env — an **API token**, not a login password | | Data collections | Grist | — | — | **no local admin**; rides the front door's forwarded-header auth (grist-core OIDC is paid) | So "reveal the admin credential" is not one thing: Grist has nothing to reveal (the honest card there is different — it rests on the community front door), Listmonk's secret is a machine API token (not a human login), and the rest split between env-file and bare-file readers. The control plane already reads these per-call for its **health checks** (`control-plane/cmd/control-plane/{paperless,newsletters,whakapapa,surveys}health.go` via `admin.User`/`admin.Secret()`, and `internal/clan/portsecrets.go`'s `portSecretsMaterialisedPath`), so the reader mechanism exists — but where/how the operator sees it, the audit semantics, and the Grist/Listmonk exceptions all need a design ruling first. ## What to design + build - A **wireframe** for the per-service sign-in truth on the Active service card (P4-S5 / Services tab): "with your community account" (Nextcloud, Tier 1) vs "this service keeps its own sign-in" with an **audited reveal** of the admin credential (the reset-links reveal, #1509's members surface, is prior art). Grist/Listmonk get honest, distinct copy (no login password to hand out). - A **catalogue display fact** on `catalogue.Service` (`internal/catalogue/catalogue.go:99`) naming each service's sign-in mode (claim-native vs front-door-only), surfaced through `composeCatalogue`/`installableEntry` → `dashboard/src/lib/catalogue.ts` → `CatalogueSurface.vue`. - The **reveal endpoint**: operator-only, audited, reading the materialised secret path per service (the health-check reader generalised); it never lists a credential that does not exist (Grist). ## Acceptance (carried from #1509) - From the panel alone, an operator can reach every running service's admin without ssh into the box (or, where there is no admin to reach — Grist — the panel says so honestly). - A drive leg proves it on at least one non-Nextcloud service (phase-9 — the founding journey now founds seven). ## Out of scope - Part (c) (display-name/account-id) — LANDED in #1509 (997635c3). - Part (b) (extend Tier-1 OIDC) — a separate bigger-arc ticket; a security-posture widening (one-way door, ADR 0174). Filed while working #1509.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1532
No description provided.