design: set service access from the SERVICE side and at install time (today only from each credential's detail) #1780

Closed
opened 2026-09-23 16:59:24 +00:00 by ben · 1 comment
Owner

What (design question)

Service access can only be set from a credential's side — the credential detail's "who can reach it" editor (ADR 0222, #1156). There is:

  1. no view from a service's side listing who can reach it (which credentials open it, or "all members");
  2. nothing at install time: a newly installed service has no matrix row, so it is open to every live member (ADR 0076 default) until a steward goes to each credential and restricts it — e.g. a Finance komiti's accounting tool is open to all from the moment it runs.

Proposed default ruling

  • Service side: the service card (Services tab, and the credential cards' "opens" line) gains Who can reach it — the same open/restricted choice, opening credentials listed as pills, edited in the same full-width editor. One matrix, two doors onto it.
  • Install: on the IDIP path, installing a service asks one question in the install flow — "Who can reach ? · All members (default) · Only holders of … (pick credentials)" — writing the policy before the service first answers. Default stays open (ADR 0076), so skipping it changes nothing.
  • The kanidm path gets the same question over komiti only if Ben wants parity; otherwise IDIP-only.

Needs

A grill + wireframes (Services tab card, the install flow step) → DDR → spec. Design-tier, so a session, not the swarm.

## What (design question) Service access can only be set **from a credential's side** — the credential detail's "who can reach it" editor (ADR 0222, #1156). There is: 1. no view from a **service's** side listing who can reach it (which credentials open it, or "all members"); 2. nothing at **install** time: a newly installed service has no matrix row, so it is open to every live member (ADR 0076 default) until a steward goes to each credential and restricts it — e.g. a Finance komiti's accounting tool is open to all from the moment it runs. ## Proposed default ruling - **Service side:** the service card (Services tab, and the credential cards' "opens" line) gains **Who can reach it** — the same open/restricted choice, opening credentials listed as pills, edited in the same full-width editor. One matrix, two doors onto it. - **Install:** on the IDIP path, installing a service asks one question in the install flow — "Who can reach <service>? · All members (default) · Only holders of … (pick credentials)" — writing the policy before the service first answers. Default stays open (ADR 0076), so skipping it changes nothing. - The kanidm path gets the same question over komiti only if Ben wants parity; otherwise IDIP-only. ## Needs A grill + wireframes (Services tab card, the install flow step) → DDR → spec. Design-tier, so a session, not the swarm.

Close-report — design landed (DDR 0273)

Ruled by agent under ADR 0174 — veto anytime. This is a design-tier accept (DDR + wireframes + flows), revertible by reverting the commit; the ticket carried a proposed default ruling, which I adopted. No one-way door was touched: the default stays open to all members (ADR 0076) — writing "All members" at install equals today's implicit default, and the only new capability is restricting (tightening) from a second door and one step earlier. Enforcement is unchanged (GateDecision/the live front-door roster check, ADR 0222). Not a member-facing trust surface — steward/operator governance config.

What landed (commit 20976c94)

One matrix, two doors + install-time policy:

  • DDR 0273 docs/adr/0273-design-service-side-access-and-install-time.md — the ruling.
  • Service-keyed door: new P6-S13i p6-s13i-service-access.html ("Who can reach a service" — the same open/restrict control S7i carries, keyed on the service, restrict additive, stewards never locked out, writing the same matrix row). A SERVICE ACCESS card section added to p6-s1i-members.html (one card per running service, open/restricted with opening-credential pills → S13i). The credential cards + p6-s7i-credential-detail.html gain a reciprocal opens line linking each opened service into S13i.
  • Install-time question: new IDIP-only step P4-S2c p4-s2c-who-can-reach.html between Select (S2) and Review impact (S3) — one "Who can reach <service>? · All members (default) · Only holders of…" per new service, written before the service first answers; p4-s3-review-impact.html gains the ACCESS line. kanidm path skips it (komiti parity = deferred Ben option, DDR 0273 decision 5).
  • Flows: p6-members-idip.mermaid node S13i + edges; p4-provisioning.mermaid node S2c on the IDIP path. Glossary: CONTEXT.md (access set from either side + at install). README + STATUS.md updated.

Proof

The design contract cross-links cleanly: every new flow node names a screen in the wireframe set (S13i, S2c), each new surface carries data-field/data-action/data-status contract names, and the reciprocal doors reference the same matrix rows. Design-tier, so the proof is the contract itself (no code in this ticket).

Spec → build

The "→ spec" deliverable is filed as #1782 (ready-for-agent) — the engineering build against DDR 0273 with acceptance criteria (Given/When/Then), interface, seam, and out-of-scope (enforcement unchanged; komiti parity + the P5 monitoring drill deferred).

Deferred (async, not blocking)

  • kanidm/komiti parity for the install question + service-side editor — a clean extension if Ben wants it (DDR 0273 decision 5); the same S13i shape over komiti.
  • Monitoring Services tab (P5-S1) access line + drill — the DDR's noted "open" follow-up.

Closing as designed; build tracked in #1782.

## Close-report — design landed (DDR 0273) **Ruled by agent under ADR 0174 — veto anytime.** This is a design-tier accept (DDR + wireframes + flows), revertible by reverting the commit; the ticket carried a proposed default ruling, which I adopted. No one-way door was touched: the default stays **open to all members** (ADR 0076) — writing "All members" at install equals today's implicit default, and the only new capability is **restricting** (tightening) from a second door and one step earlier. Enforcement is unchanged (`GateDecision`/the live front-door roster check, ADR 0222). Not a member-facing trust surface — steward/operator governance config. ### What landed (commit `20976c94`) **One matrix, two doors** + install-time policy: - **DDR 0273** `docs/adr/0273-design-service-side-access-and-install-time.md` — the ruling. - **Service-keyed door:** new **P6-S13i** `p6-s13i-service-access.html` ("Who can reach a service" — the same open/restrict control S7i carries, keyed on the service, restrict additive, stewards never locked out, writing the same matrix row). A **SERVICE ACCESS** card section added to `p6-s1i-members.html` (one card per running service, open/restricted with opening-credential pills → S13i). The credential cards + `p6-s7i-credential-detail.html` gain a reciprocal **opens** line linking each opened service into S13i. - **Install-time question:** new IDIP-only step **P4-S2c** `p4-s2c-who-can-reach.html` between Select (S2) and Review impact (S3) — one *"Who can reach &lt;service&gt;? · All members (default) · Only holders of…"* per new service, written before the service first answers; `p4-s3-review-impact.html` gains the **ACCESS** line. kanidm path skips it (komiti parity = deferred Ben option, DDR 0273 decision 5). - **Flows:** `p6-members-idip.mermaid` node **S13i** + edges; `p4-provisioning.mermaid` node **S2c** on the IDIP path. **Glossary:** `CONTEXT.md` (access set from either side + at install). **README** + **STATUS.md** updated. ### Proof The design contract cross-links cleanly: every new flow node names a screen in the wireframe set (S13i, S2c), each new surface carries `data-field`/`data-action`/`data-status` contract names, and the reciprocal doors reference the same matrix rows. Design-tier, so the proof is the contract itself (no code in this ticket). ### Spec → build The "→ spec" deliverable is filed as **#1782** (`ready-for-agent`) — the engineering build against DDR 0273 with acceptance criteria (Given/When/Then), interface, seam, and out-of-scope (enforcement unchanged; komiti parity + the P5 monitoring drill deferred). ### Deferred (async, not blocking) - **kanidm/komiti parity** for the install question + service-side editor — a clean extension if Ben wants it (DDR 0273 decision 5); the same S13i shape over komiti. - **Monitoring Services tab (P5-S1)** access line + drill — the DDR's noted "open" follow-up. Closing as designed; build tracked in #1782.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1780
No description provided.