members: Add role has no seam — rule whether the closed v1 role set opens, and what a role now means given groups open services #1439

Closed
opened 2026-09-12 15:04:01 +00:00 by ben · 2 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Gap

The Manage groups dialog (dashboard/src/components/members/ManageGroupsDialog.vue, Ben 2026-09-12) has two tables: groups (real — KomitiClient → POST /komiti → kanidm groups) and roles (dashboard/src/lib/roles.ts RoleAdminClient — type only; mountRegistry.ts wires nothing; only dashboard/tests/fakes/roles.ts implements it, with a header saying every behaviour is PROPOSED). Live, the roles table shows the two built-ins read-only with the reason "the platform ships two roles and they cannot be changed here" (data-field="roles-closed").

Ben's 2026-09-12 definition, now the dialog's lede: a group decides which services its members can reach; a role decides what they can do inside those services. The two built-in descriptions (member / operator) were left as they were on Ben's word ("leave them") — they still describe control-panel access, which visibly contradicts the new definition until this is ruled.

Governing: ADR 0076 (two access roles, closed set; kaitiaki is a designation; per-app role mapping declared by each service's port), the members grill 2026-07-24, DDR 0073.

Why human — one-way door

Opening the role set changes the identity model every service consumes (kanidm groups → per-app roles via the ADR 0076 port declaration). It is not revertible by a config change once communities have minted roles.

Proposed default ruling: the platform role set stays closed at member / operator. "What a member can do inside a service" is the service's own per-app role, mapped from GROUPS per ADR 0076's port declaration — so Ben's definition is satisfied by groups + per-app mapping, not by a new platform role table. The Manage groups dialog's roles table becomes a read-only statement of the two platform roles plus, per group, the per-app roles it maps to (surfaced from the port declarations). RoleAdminClient and its fake are deleted.

Alternative: open the set — a POST/DELETE /roles seam on internal/member/roles.go, kanidm groups prefixed role:, refusal rules as the fake proposes (reserved, held, duplicate, kaitiaki), and a per-app mapping UI on P6-S7. That is a wayfinder-sized arc, not a ticket.

Acceptance criteria (default ruling)

  • roles.ts and tests/fakes/roles.ts deleted; the dialog's roles table paints the two platform roles from the ledger and, per group, the per-app roles its port declarations map (or "none declared").
  • BUILT_IN_ROLE_WORDS rewritten to the ruled meaning.
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Gap The Manage groups dialog (`dashboard/src/components/members/ManageGroupsDialog.vue`, Ben 2026-09-12) has two tables: **groups** (real — `KomitiClient` → `POST /komiti` → kanidm groups) and **roles** (`dashboard/src/lib/roles.ts RoleAdminClient` — type only; `mountRegistry.ts` wires nothing; only `dashboard/tests/fakes/roles.ts` implements it, with a header saying every behaviour is PROPOSED). Live, the roles table shows the two built-ins read-only with the reason "the platform ships two roles and they cannot be changed here" (`data-field="roles-closed"`). Ben's 2026-09-12 definition, now the dialog's lede: **a group decides which services its members can reach; a role decides what they can do inside those services.** The two built-in descriptions (member / operator) were left as they were on Ben's word ("leave them") — they still describe control-panel access, which visibly contradicts the new definition until this is ruled. Governing: ADR 0076 (two access roles, closed set; kaitiaki is a designation; per-app role mapping declared by each service's port), the members grill 2026-07-24, DDR 0073. ## Why human — one-way door Opening the role set changes the identity model every service consumes (kanidm groups → per-app roles via the ADR 0076 port declaration). It is not revertible by a config change once communities have minted roles. **Proposed default ruling:** the platform role set stays closed at member / operator. "What a member can do inside a service" is the service's own per-app role, mapped from GROUPS per ADR 0076's port declaration — so Ben's definition is satisfied by groups + per-app mapping, not by a new platform role table. The Manage groups dialog's roles table becomes a read-only statement of the two platform roles plus, per group, the per-app roles it maps to (surfaced from the port declarations). `RoleAdminClient` and its fake are deleted. Alternative: open the set — a `POST/DELETE /roles` seam on `internal/member/roles.go`, kanidm groups prefixed `role:`, refusal rules as the fake proposes (reserved, held, duplicate, kaitiaki), and a per-app mapping UI on P6-S7. That is a wayfinder-sized arc, not a ticket. ## Acceptance criteria (default ruling) - [ ] `roles.ts` and `tests/fakes/roles.ts` deleted; the dialog's roles table paints the two platform roles from the ledger and, per group, the per-app roles its port declarations map (or "none declared"). - [ ] `BUILT_IN_ROLE_WORDS` rewritten to the ruled meaning.
Author
Owner

Ruled by Ben, 2026-09-12: the platform role set stays CLOSED at member / operator (ADR 0076 stands). Ben's definition — a group decides which services its members reach; a role decides what they can do inside them — is met by ADR 0076's port-declared per-app role mapping: a GROUP maps onto each service's own roles (the P6-S7 access matrix already carries that per-service RoleMapping: claim-native / reconciler-mapped / front-door-only). No new platform role table. Landing now in this session: RoleAdminClient, tests/fakes/roles.ts and the harness wiring deleted; the Manage groups dialog's roles table becomes a read-only statement of the two platform roles with the ruled meaning, pointing at each group's S7 access matrix for what its members can do inside each service; BUILT_IN_ROLE_WORDS rewritten to the ruled meaning. The "open the set" alternative is parked — revisit only when a service needs more than the two inside it.

**Ruled by Ben, 2026-09-12: the platform role set stays CLOSED at member / operator (ADR 0076 stands).** Ben's definition — *a group decides which services its members reach; a role decides what they can do inside them* — is met by ADR 0076's port-declared per-app role mapping: a GROUP maps onto each service's own roles (the P6-S7 access matrix already carries that per-service `RoleMapping`: claim-native / reconciler-mapped / front-door-only). No new platform role table. Landing now in this session: `RoleAdminClient`, `tests/fakes/roles.ts` and the harness wiring deleted; the Manage groups dialog's roles table becomes a read-only statement of the two platform roles with the ruled meaning, pointing at each group's S7 access matrix for what its members can do inside each service; `BUILT_IN_ROLE_WORDS` rewritten to the ruled meaning. The "open the set" alternative is parked — revisit only when a service needs more than the two inside it.
Author
Owner

Landed on main 6c774b8b (2026-09-12): the ruling above is in the control panel — InviteScreen.vue has no role field, InviteSpec.role is gone, RoleAdminClient + its fake are deleted, the Manage groups dialog paints the two platform roles read-only with the ruled meaning and points at each group's S7 access matrix; inviteScreen 13/13, komitiDetail 26/26, vue-tsc + eslint clean, dashboard suite 1611 passing. Closing.

Landed on main `6c774b8b` (2026-09-12): the ruling above is in the control panel — `InviteScreen.vue` has no role field, `InviteSpec.role` is gone, `RoleAdminClient` + its fake are deleted, the Manage groups dialog paints the two platform roles read-only with the ruled meaning and points at each group's S7 access matrix; `inviteScreen` 13/13, `komitiDetail` 26/26, vue-tsc + eslint clean, dashboard suite 1611 passing. Closing.
ben closed this issue 2026-09-12 19:09:55 +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#1439
No description provided.