dashboard auth: the control panel is operators-only, gated by kanidm — and Sign out completes #388

Closed
opened 2026-08-10 03:27:41 +00:00 by ben · 2 comments
Owner

Ruling (Ben, 2026-08-10, during the DDR 0155 QA-polish batch). "Implement auth with kanidm. Non-admin users should not be able to access the control panel."

Today. The web dashboard carries no session at all: the operator label is a static prop (served.ts, the issue #199 note — "the platform carries no auth yet"), the private path serves the dashboard ungated, and on the public path only the service routes sit behind the front door's forward_auth (internal/clan/frontdoor.go). DDR 0155 added the chrome's Sign out affordance, which routes to https://id.<apex> (the kanidm session is the only one that exists) and honestly states the gap when no apex is served — the affordance's real journey lands with this slice.

Wanted.

  • Opening the control panel demands a kanidm OIDC sign-in on the dashboard's own host (both paths — the private front door too; a LAN neighbour on the private path can reach the guest today).
  • Operators only: a signed-in plain member is refused the control panel (the two-role model, members grill — member/operator), with an honest refused state, never a blank.
  • The brand bar's signed-in-operator label carries the real signed-in identity, not a prop.
  • Sign out ends the session: the chrome's sign-out intent (DDR 0155) terminates the dashboard session and kanidm's cookie — a signed-out browser lands back at sign-in.
  • Suspension discipline holds: a suspended operator's session dies with the suspend (the ADR 0078 §5 rederive posture applies to this gate too).

Pointers. OAuth2 client provisioning is founding's seed (ADR 0074 — the auth gate + dashboard clients are declared there, renderKanidmLoopback's comment); the gateway's auth gate is ADR 0076; kanidm is the IdP (ADR 0038/0105). The sign-in surface is kanidm's own branded UI (DDR 0145/0147) — this slice should not invent a second login screen.

needs-design: the access flow (which host gates where, session mechanics on the private path, the refused-member state) has no flow/wireframe yet — route through the design tier before implementation.

**Ruling (Ben, 2026-08-10, during the DDR 0155 QA-polish batch).** "Implement auth with kanidm. Non-admin users should not be able to access the control panel." **Today.** The web dashboard carries no session at all: the operator label is a static prop (`served.ts`, the issue #199 note — "the platform carries no auth yet"), the private path serves the dashboard ungated, and on the public path only the *service* routes sit behind the front door's forward_auth (`internal/clan/frontdoor.go`). DDR 0155 added the chrome's **Sign out** affordance, which routes to `https://id.<apex>` (the kanidm session is the only one that exists) and honestly states the gap when no apex is served — the affordance's real journey lands with this slice. **Wanted.** - Opening the control panel demands a kanidm OIDC sign-in on the dashboard's own host (both paths — the private front door too; a LAN neighbour on the private path can reach the guest today). - **Operators only**: a signed-in plain member is refused the control panel (the two-role model, members grill — member/operator), with an honest refused state, never a blank. - The brand bar's `signed-in-operator` label carries the real signed-in identity, not a prop. - **Sign out ends the session**: the chrome's `sign-out` intent (DDR 0155) terminates the dashboard session and kanidm's cookie — a signed-out browser lands back at sign-in. - Suspension discipline holds: a suspended operator's session dies with the suspend (the ADR 0078 §5 rederive posture applies to this gate too). **Pointers.** OAuth2 client provisioning is founding's seed (ADR 0074 — the auth gate + dashboard clients are declared there, `renderKanidmLoopback`'s comment); the gateway's auth gate is ADR 0076; kanidm is the IdP (ADR 0038/0105). The sign-in surface is kanidm's own branded UI (DDR 0145/0147) — this slice should not invent a second login screen. **needs-design**: the access flow (which host gates where, session mechanics on the private path, the refused-member state) has no flow/wireframe yet — route through the design tier before implementation.
Author
Owner

Backlog walk (Ben, 2026-08-12): this is FIRST in the design queue — the next grill-ux-with-docs sitting starts here (the access flow: which host gates where, private-path session mechanics, the refused-member state). The what is already ruled in-body; only the design tier is missing. #366 (member sign-in journey) belongs to the same access-flow family and should ride the same sitting.

Backlog walk (Ben, 2026-08-12): this is FIRST in the design queue — the next `grill-ux-with-docs` sitting starts here (the access flow: which host gates where, private-path session mechanics, the refused-member state). The *what* is already ruled in-body; only the design tier is missing. #366 (member sign-in journey) belongs to the same access-flow family and should ride the same sitting.
Author
Owner

Design tier complete (Ben's gates 2026-08-13/14): DDR 0172 — the control panel sits behind the community door — plus docs/ux/flows/dashboard-auth.mermaid, the five-frame wireframe set docs/ux/wireframes/dashboard-auth/, and the DA door states in CONTEXT.md. Implementation is tracked by child spec #511 (ready-for-agent). Closing this issue in its favour — one swarm-able ticket per feature.

Design tier complete (Ben's gates 2026-08-13/14): **DDR 0172** — the control panel sits behind the community door — plus `docs/ux/flows/dashboard-auth.mermaid`, the five-frame wireframe set `docs/ux/wireframes/dashboard-auth/`, and the DA door states in CONTEXT.md. Implementation is tracked by child spec **#511** (`ready-for-agent`). Closing this issue in its favour — one swarm-able ticket per feature.
ben 2026-08-14 05:30:46 +00:00
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#388
No description provided.