IDIP Members tab renders kanidm's "+ Create group" button — komiti vocabulary leaking onto the credentials surface (DDR 0217 ruling 1) #1130

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

The leak

On an IDIP community's Members tab, below the CREDENTIALS THIS COMMUNITY ISSUES cards, the dashboard renders a "+ Create group" button. Seen in drive 20260901T203216Z's own evidence (artifacts/idip-preset-approved.png, bottom of frame, rendered as + CREATE GROUP).

MembersSurface.vue:84 mounts it unconditionally on the presence of a komiti client:

<KomitiPanel v-if="komiti" :client="komiti" @route="onRoute" />

KomitiPanel.vue:46 always renders its create-komiti button ("leads with the rows (when any) and a + Create group button"), so on the IDIP path — where the komiti list is empty because the routes 404 — the rows vanish but the button stays.

Why it is wrong

DDR 0217's first ruling is the vocabulary: on the IDIP path a community issues credentials, and komiti/"group" is the kanidm-path word. The Members tab now offers both — "+ Create a credential" (correct, CredentialsSurface) and "+ Create group" (kanidm's, leaking) — inches apart, doing different things, one of which cannot work on this path.

An operator clicking it reaches the komiti create flow against routes that 404 on IDIP.

Fix

Rest KomitiPanel on the IDIP path the way every other kanidm-path surface already rests — the IDIP roster's presence is the existing tell (IdipRosterPanel renders when the roster read is non-null; CredentialsSurface rests when the definitions list 404s). Pin it: with an IDIP roster composed, the Members tab renders no create-komiti action and no komiti panel.

How it surfaced

Eyeballing the green drive's screenshots per the standing rule (a GREEN can be FALSE). The drive itself is blind to this — no leg asserts the ABSENCE of kanidm surfaces on the IDIP path, which is worth considering as a design-verify check rather than a drive leg.

## The leak On an IDIP community's Members tab, below the CREDENTIALS THIS COMMUNITY ISSUES cards, the dashboard renders a **"+ Create group"** button. Seen in drive `20260901T203216Z`'s own evidence (`artifacts/idip-preset-approved.png`, bottom of frame, rendered as `+ CREATE GROUP`). `MembersSurface.vue:84` mounts it unconditionally on the presence of a komiti client: ``` <KomitiPanel v-if="komiti" :client="komiti" @route="onRoute" /> ``` `KomitiPanel.vue:46` always renders its `create-komiti` button ("leads with the rows (when any) and a + Create group button"), so on the IDIP path — where the komiti list is empty because the routes 404 — the rows vanish but the button stays. ## Why it is wrong DDR 0217's first ruling is the vocabulary: on the IDIP path a community issues **credentials**, and komiti/"group" is the kanidm-path word. The Members tab now offers both — "+ Create a credential" (correct, `CredentialsSurface`) and "+ Create group" (kanidm's, leaking) — inches apart, doing different things, one of which cannot work on this path. An operator clicking it reaches the komiti create flow against routes that 404 on IDIP. ## Fix Rest `KomitiPanel` on the IDIP path the way every other kanidm-path surface already rests — the IDIP roster's presence is the existing tell (`IdipRosterPanel` renders when the roster read is non-null; `CredentialsSurface` rests when the definitions list 404s). Pin it: with an IDIP roster composed, the Members tab renders no `create-komiti` action and no komiti panel. ## How it surfaced Eyeballing the green drive's screenshots per the standing rule (a GREEN can be FALSE). The drive itself is blind to this — no leg asserts the ABSENCE of kanidm surfaces on the IDIP path, which is worth considering as a `design-verify` check rather than a drive leg.

swarm-claim host=matou-dev-server-01 run=16066
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16066 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1130 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1130,
  "status": "success",
  "commits": [
    "18d9c0fe"
  ],
  "changed_files": [
    "dashboard/src/components/members/MembersSurface.vue",
    "dashboard/tests/unit/membersIdipKomitiRest.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "CI=true pnpm vitest run tests/unit/membersIdipKomitiRest.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run (full dashboard unit suite, 1353 tests)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc --noEmit",
      "exit_code": 0
    },
    {
      "command": "eslint MembersSurface.vue + new test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "With an IDIP roster composed, the Members tab renders no create-komiti action and no komiti panel": "MembersSurface.vue gates `<KomitiPanel v-if=\"komiti && !onIdipPath\">` where onIdipPath = idip.roster() read is non-null; test membersIdipKomitiRest.test.ts asserts komiti-panel + create-komiti absent and komiti.reads==0 when the roster is composed",
    "The komiti/group surface rests the way every other kanidm-path surface rests (roster's non-null read is the tell)": "onIdipPath probe reads idip.roster() and mirrors IdipRosterPanel/CredentialsSurface rest-on-non-idip behaviour; kanidm-path tests (roster null / no idip) keep both komiti-panel and create-komiti"
  },
  "summary": "MembersSurface rests KomitiPanel entirely on the IDIP path so kanidm's '+ Create group' no longer leaks onto the credentials surface.",
  "blockers": []
}
**close-report** for #1130 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1130, "status": "success", "commits": [ "18d9c0fe" ], "changed_files": [ "dashboard/src/components/members/MembersSurface.vue", "dashboard/tests/unit/membersIdipKomitiRest.test.ts", "STATUS.md" ], "tests": [ { "command": "CI=true pnpm vitest run tests/unit/membersIdipKomitiRest.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm vitest run (full dashboard unit suite, 1353 tests)", "exit_code": 0 }, { "command": "vue-tsc --noEmit", "exit_code": 0 }, { "command": "eslint MembersSurface.vue + new test", "exit_code": 0 } ], "criteria": { "With an IDIP roster composed, the Members tab renders no create-komiti action and no komiti panel": "MembersSurface.vue gates `<KomitiPanel v-if=\"komiti && !onIdipPath\">` where onIdipPath = idip.roster() read is non-null; test membersIdipKomitiRest.test.ts asserts komiti-panel + create-komiti absent and komiti.reads==0 when the roster is composed", "The komiti/group surface rests the way every other kanidm-path surface rests (roster's non-null read is the tell)": "onIdipPath probe reads idip.roster() and mirrors IdipRosterPanel/CredentialsSurface rest-on-non-idip behaviour; kanidm-path tests (roster null / no idip) keep both komiti-panel and create-komiti" }, "summary": "MembersSurface rests KomitiPanel entirely on the IDIP path so kanidm's '+ Create group' no longer leaks onto the credentials surface.", "blockers": [] } ``` </details>
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#1130
No description provided.