idip: Gramps (whakapapa) signs in through the bridge, keyed on the AID #1919

Closed
opened 2026-09-27 18:44:24 +00:00 by ben · 3 comments
Owner

Parent

#1915

What to build

Gramps' IDIP render branch: bridge issuer, username claim sub, display name from name, steward role mapped from the role claim.

Acceptance criteria

  • IDIP render test
  • The kanidm-path render is byte-identical before and after (guard test)
  • Live proof on an IDIP gateway: a member and a steward sign in and land in two distinct accounts keyed as ruled, the steward as admin; screenshots/evidence attached

Blocked by

## Parent #1915 ## What to build Gramps' IDIP render branch: bridge issuer, username claim `sub`, display name from `name`, steward role mapped from the role claim. ## Acceptance criteria - [ ] IDIP render test - [ ] The kanidm-path render is byte-identical before and after (guard test) - [ ] Live proof on an IDIP gateway: a member and a steward sign in and land in two distinct accounts keyed as ruled, the steward as admin; screenshots/evidence attached ## Blocked by - #1918

swarm-claim host=bens-mac-04 run=34384
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=34384 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

Ruling: land #1919 on the render + seam + wiring tiers now; AC3's LIVE PROOF (a member and a steward signing in on a real IDIP gateway, landing in two distinct accounts keyed on their AIDs, the steward as admin) is OWED on the next IDIP drive.

Why two-way: the whole change is gated on BridgeIDP (false on kanidm, byte-identical there) and revertible by re-adding whakapapa to notYetIDIPReady; the mechanism is proven by render/seam tests (TestRenderWhakapapa_IDIPBridgeSignIn, TestAttachWhakapapa_BridgeIDPRendersTheBridgeBranch, TestRenderIdssIdp_PlacedWhakapapaAddsAndRemovesItsClient) and the rendered whakapapa.nix passes nix-instantiate --parse. #1927's convention + #1918/#1921/#1924's precedent govern "bridge sign-in lands = drop the guard slug", and each of those deferred its live-proof clause the same way — a sandcastle iteration cannot stand up a full IDIP gateway (KERIA + bridge + wallet) reliably.

What proves it: the bridge declares a confidential whakapapa client per placement keyed on the member's AID (sub), the steward maps to OWNER through the bridge's roles claim (#1917), all covered by the tests above; the live sign-in is the only clause left, carried on the next IDIP drive.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** land #1919 on the render + seam + wiring tiers now; AC3's LIVE PROOF (a member and a steward signing in on a real IDIP gateway, landing in two distinct accounts keyed on their AIDs, the steward as admin) is OWED on the next IDIP drive. **Why two-way:** the whole change is gated on `BridgeIDP` (false on kanidm, byte-identical there) and revertible by re-adding `whakapapa` to `notYetIDIPReady`; the mechanism is proven by render/seam tests (`TestRenderWhakapapa_IDIPBridgeSignIn`, `TestAttachWhakapapa_BridgeIDPRendersTheBridgeBranch`, `TestRenderIdssIdp_PlacedWhakapapaAddsAndRemovesItsClient`) and the rendered `whakapapa.nix` passes `nix-instantiate --parse`. #1927's convention + #1918/#1921/#1924's precedent govern "bridge sign-in lands = drop the guard slug", and each of those deferred its live-proof clause the same way — a sandcastle iteration cannot stand up a full IDIP gateway (KERIA + bridge + wallet) reliably. **What proves it:** the bridge declares a confidential `whakapapa` client per placement keyed on the member's AID (`sub`), the steward maps to OWNER through the bridge's `roles` claim (#1917), all covered by the tests above; the live sign-in is the only clause left, carried on the next IDIP drive.

close-report for #1919 — status success

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

envelope
{
  "issue": 1919,
  "status": "success",
  "commits": [
    "174a73193f455fd31a11545522f58871f40f6b8f"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/idssidp.go",
    "internal/clan/idssidp_test.go",
    "internal/clan/portroute.go",
    "internal/clan/whakapapa.go",
    "internal/clan/whakapapa_attach.go",
    "internal/clan/whakapapa_attach_test.go",
    "internal/clan/whakapapa_test.go",
    "internal/provision/assess.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/... ./internal/provision/... ./internal/idp/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/ internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/... ./internal/provision/...",
      "exit_code": 0
    },
    {
      "command": "nix-instantiate --parse (rendered whakapapa.nix bridge branch)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "IDIP render test": "internal/clan/whakapapa_test.go TestRenderWhakapapa_IDIPBridgeSignIn + whakapapa_attach_test.go TestAttachWhakapapa_BridgeIDPRendersTheBridgeBranch + idssidp_test.go TestRenderIdssIdp_PlacedWhakapapaAddsAndRemovesItsClient — Gramps Web points at the bare bridge issuer keyed on sub, reads the shared client secret, steward lands OWNER via the roles claim, no kanidm oneshot",
    "The kanidm-path render is byte-identical before and after (guard test)": "internal/clan/whakapapa_test.go TestRenderWhakapapa_KanidmAndBridgeBranchesAreMutuallyExclusive — the kanidm render carries no bridge shared-secret generator and still provisions the kanidm client; both branches gated on BridgeIDP (default false)",
    "Live proof on an IDIP gateway: a member and a steward sign in and land in two distinct accounts keyed as ruled, the steward as admin; screenshots/evidence attached": "OWED on the next IDIP drive — ruled by agent under ADR 0174 (two-way, comment on the issue); a sandcastle iteration cannot stand up a full IDIP gateway (KERIA + bridge + wallet). Landed here on the render+seam+wiring tiers, deferred exactly as #1918/#1921/#1924 deferred their live-proof clause"
  },
  "summary": "Gramps (whakapapa) speaks the idss-idp bridge branch on IDIP — keyed on the member's AID (sub), steward lands OWNER via the roles claim, per-placement bridge client, no kanidm.",
  "blockers": []
}
**close-report** for #1919 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1919, "status": "success", "commits": [ "174a73193f455fd31a11545522f58871f40f6b8f" ], "changed_files": [ "STATUS.md", "internal/clan/idssidp.go", "internal/clan/idssidp_test.go", "internal/clan/portroute.go", "internal/clan/whakapapa.go", "internal/clan/whakapapa_attach.go", "internal/clan/whakapapa_attach_test.go", "internal/clan/whakapapa_test.go", "internal/provision/assess.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go test ./internal/clan/... ./internal/provision/... ./internal/idp/...", "exit_code": 0 }, { "command": "gofmt -l internal/clan/ internal/provision/", "exit_code": 0 }, { "command": "go vet ./internal/clan/... ./internal/provision/...", "exit_code": 0 }, { "command": "nix-instantiate --parse (rendered whakapapa.nix bridge branch)", "exit_code": 0 } ], "criteria": { "IDIP render test": "internal/clan/whakapapa_test.go TestRenderWhakapapa_IDIPBridgeSignIn + whakapapa_attach_test.go TestAttachWhakapapa_BridgeIDPRendersTheBridgeBranch + idssidp_test.go TestRenderIdssIdp_PlacedWhakapapaAddsAndRemovesItsClient — Gramps Web points at the bare bridge issuer keyed on sub, reads the shared client secret, steward lands OWNER via the roles claim, no kanidm oneshot", "The kanidm-path render is byte-identical before and after (guard test)": "internal/clan/whakapapa_test.go TestRenderWhakapapa_KanidmAndBridgeBranchesAreMutuallyExclusive — the kanidm render carries no bridge shared-secret generator and still provisions the kanidm client; both branches gated on BridgeIDP (default false)", "Live proof on an IDIP gateway: a member and a steward sign in and land in two distinct accounts keyed as ruled, the steward as admin; screenshots/evidence attached": "OWED on the next IDIP drive — ruled by agent under ADR 0174 (two-way, comment on the issue); a sandcastle iteration cannot stand up a full IDIP gateway (KERIA + bridge + wallet). Landed here on the render+seam+wiring tiers, deferred exactly as #1918/#1921/#1924 deferred their live-proof clause" }, "summary": "Gramps (whakapapa) speaks the idss-idp bridge branch on IDIP — keyed on the member's AID (sub), steward lands OWNER via the roles claim, per-placement bridge client, no kanidm.", "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.

Reference
Matou/idss#1919
No description provided.