wallet doors: nothing gives either verifier its trust list on a real gateway — the space-ID door's credential path rests (challenge 404) and the sign-in app door trusts no issuer, because the community AID is minted at founding and was only ever an e… #1653

Closed
opened 2026-09-20 04:56:54 +00:00 by ben · 2 comments
Owner

What the live gateway does (debug IDIP fire 11, ce479c6a, founded community, probed from outside with no session)

  • POST <api_url>/spaces with no proof → the door's own 401 (the #1645 allow-list works).
  • GET <api_url>/spaces/challenge → 404 no such endpoint, before AND after founded. The wallet's presented-credential path is resting.
  • The descriptor is 1.1 and names the community AID, so the community identity IS known on the box (#1638).

Why

Both wallet-facing verifiers take ADR 0236's trust list from the environment, and nothing renders it:

  • control-plane/cmd/control-plane/main.go spacesProofOptions rests the proof path unless IDSS_IDP_KEYSTATE_URL and IDSS_IDP_TRUST_ISSUER are in the control-plane unit. Its own comment calls rendering them "the follow-on that activates it" — never ticketed. The control-plane unit carries neither.
  • internal/idp/config.go TrustRows() returns nil when IDSS_IDP_TRUST_ISSUER is empty. internal/clan/idssidp.go renders IDSS_IDP_KEYSTATE_URL into the idss-idp unit but never IDSS_IDP_TRUST_ISSUER / _OOBI / IDSS_IDP_TRUST_WITNESS — grep -rn IDSS_IDP_TRUST_ISSUER internal/clan is empty. So the sign-in page's app door (#1523) is mounted with an empty trust list and must refuse every presented credential.

The trap: the trust issuer is the COMMUNITY AID, which does not exist when the gateway is first rendered — it is minted at founding. A static env var in the unit can never carry it on a first founding. #1638 (fdb590e2) now records that identity on the gateway (idss/org-identity.json: AID, registry, OOBI) — the natural source.

What to build

  1. Both verifiers read the community issuer late-bound from the recorded community identity (the record #1638 writes), not from a unit env var: absent → the path rests exactly as today (fail closed, logged once at Info); present → the trust row is {issuer: community AID, schemas: [Membership, Committee], oobi: community OOBI, witness: the gateway's witness}. No restart needed when founding lands the record (read at request time or on a short watch — same late-bind the brand source uses, ADR 0024/#910).
  2. The control plane gets the loopback KEL door it needs (http://127.0.0.1:<keriaCESRPort>/oobi/{aid}) — rendered into its unit on the IDIP path, or derived from the same constant idssidp.go uses.
  3. The env vars stay as an explicit override for tests/spikes; the recorded identity is the production source.

Trust is NOT widened: this seeds the one row ADR 0236 §3 already rules (the gateway trusts its OWN community issuer for the two kinds it issues). No new issuer, no new schema.

Acceptance

  • Seam: with a recorded community identity and no trust env, GET /api/v1/idip/spaces/challenge answers the golden challenge shape and a valid operator presentation records the spaces; with no recorded identity both paths rest and the browser session still works.
  • Seam: the bridge's app door accepts a Membership credential issued by the recorded community AID and refuses one from any other issuer.
  • Render test: the control-plane unit on the IDIP path carries the KEL door.
  • GOTCHAS entry: a value minted at founding cannot be a render-time env var.
  • Live (next IDIP drive, from outside, no session): the challenge route answers 200 after founded.

Blocks the live wallet proofs (#1522 pairing, #1531 sign-in). Found by Ben's session on the hand debug drive.

## What the live gateway does (debug IDIP fire 11, `ce479c6a`, founded community, probed from outside with no session) - `POST <api_url>/spaces` with no proof → the door's own **401** (the #1645 allow-list works). - `GET <api_url>/spaces/challenge` → **404 `no such endpoint`**, before AND after `founded`. The wallet's presented-credential path is resting. - The descriptor is 1.1 and names the community AID, so the community identity IS known on the box (#1638). ## Why Both wallet-facing verifiers take ADR 0236's trust list from the environment, and **nothing renders it**: - `control-plane/cmd/control-plane/main.go` `spacesProofOptions` rests the proof path unless `IDSS_IDP_KEYSTATE_URL` and `IDSS_IDP_TRUST_ISSUER` are in the control-plane unit. Its own comment calls rendering them "the follow-on that activates it" — never ticketed. The control-plane unit carries neither. - `internal/idp/config.go` `TrustRows()` returns nil when `IDSS_IDP_TRUST_ISSUER` is empty. `internal/clan/idssidp.go` renders `IDSS_IDP_KEYSTATE_URL` into the `idss-idp` unit but **never** `IDSS_IDP_TRUST_ISSUER` / `_OOBI` / `IDSS_IDP_TRUST_WITNESS` — `grep -rn IDSS_IDP_TRUST_ISSUER internal/clan` is empty. So the sign-in page's **app door** (#1523) is mounted with an empty trust list and must refuse every presented credential. The trap: the trust issuer is the COMMUNITY AID, which does not exist when the gateway is first rendered — it is minted at founding. A static env var in the unit can never carry it on a first founding. #1638 (`fdb590e2`) now records that identity on the gateway (`idss/org-identity.json`: AID, registry, OOBI) — the natural source. ## What to build 1. Both verifiers read the community issuer **late-bound from the recorded community identity** (the record #1638 writes), not from a unit env var: absent → the path rests exactly as today (fail closed, logged once at Info); present → the trust row is `{issuer: community AID, schemas: [Membership, Committee], oobi: community OOBI, witness: the gateway's witness}`. No restart needed when founding lands the record (read at request time or on a short watch — same late-bind the brand source uses, ADR 0024/#910). 2. The control plane gets the loopback KEL door it needs (`http://127.0.0.1:<keriaCESRPort>/oobi/{aid}`) — rendered into its unit on the IDIP path, or derived from the same constant `idssidp.go` uses. 3. The env vars stay as an explicit override for tests/spikes; the recorded identity is the production source. Trust is NOT widened: this seeds the one row ADR 0236 §3 already rules (the gateway trusts its OWN community issuer for the two kinds it issues). No new issuer, no new schema. ## Acceptance - Seam: with a recorded community identity and no trust env, `GET /api/v1/idip/spaces/challenge` answers the golden challenge shape and a valid operator presentation records the spaces; with no recorded identity both paths rest and the browser session still works. - Seam: the bridge's app door accepts a Membership credential issued by the recorded community AID and refuses one from any other issuer. - Render test: the control-plane unit on the IDIP path carries the KEL door. - GOTCHAS entry: a value minted at founding cannot be a render-time env var. - Live (next IDIP drive, from outside, no session): the challenge route answers 200 after `founded`. Blocks the live wallet proofs (#1522 pairing, #1531 sign-in). Found by Ben's session on the hand debug drive.

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

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

close-report for #1653 — status success

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

envelope
{
  "issue": 1653,
  "status": "success",
  "commits": [
    "3bdaf3859158bedda0d195c65b7f0cbdbbba3511"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/spaces_proof_wiring_test.go",
    "docs/GOTCHAS.md",
    "internal/clan/community.go",
    "internal/clan/descriptor_writer_env_test.go",
    "internal/clan/idssidp.go",
    "internal/clan/idssidp_test.go",
    "internal/clan/vmguest.go",
    "internal/controlapi/spaces.go",
    "internal/controlapi/spaces_latebind_test.go",
    "internal/idp/bind.go",
    "internal/idp/config.go",
    "internal/idp/ledger_verifier.go",
    "internal/idp/trust.go",
    "internal/idp/trust_seam_test.go",
    "internal/keriauth/verifier.go",
    "internal/keriauth/verifier_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/keriauth/ ./internal/idp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/keriauth/ ./internal/idp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l (all changed .go files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Seam: with a recorded community identity and no trust env, GET /api/v1/idip/spaces/challenge answers the golden challenge shape and a valid operator presentation records the spaces; with no recorded identity both paths rest and the browser session still works": "internal/controlapi/spaces_latebind_test.go TestSpacesProof_ArmsWhenIdentityLands (challenge 200 golden shape + operator presentation records once armed) and TestSpacesProof_RestsUntilIdentityRecorded (challenge 404 'proof_path_resting' + proof ignored while resting, yet the browser SSO session records); the real-crypto late-bind is proven in internal/keriauth/verifier_test.go TestTrustProvider_LateBindsTheCommunityRow; the store-read wiring in control-plane/.../spaces_proof_wiring_test.go TestSpacesProofOptions_LateBindsFromRecordedIdentity",
    "Seam: the bridge's app door accepts a Membership credential issued by the recorded community AID and refuses one from any other issuer": "internal/idp/trust_seam_test.go TestAppDoorTrust_AcceptsRecordedIssuer (verifies once org-identity.json records the issuer, rests ErrNoMembership before) + TestAppDoorTrust_RefusesOtherIssuer (record naming another AID → refused)",
    "Render test: the control-plane unit on the IDIP path carries the KEL door": "internal/clan/descriptor_writer_env_test.go TestControlPlane_IDIPCarriesTheLoopbackKELDoor (both VM + own-VPS IDIP renders export IDSS_IDP_KEYSTATE_URL=http://127.0.0.1:3902/oobi/{aid}, and NOT IDSS_IDP_TRUST_ISSUER) + TestControlPlane_KanidmPathCarriesNoKELDoor; the bridge unit renders IDSS_IDP_ORG_IDENTITY_FILE — internal/clan/idssidp_test.go TestRenderIdssIdp_OrgIdentityFileForLateBoundTrust",
    "GOTCHAS entry: a value minted at founding cannot be a render-time env var": "docs/GOTCHAS.md #283",
    "Live (next IDIP drive, from outside, no session): the challenge route answers 200 after founded": "Cannot be self-proven offline; the challenge route now rests (404) until the identity is recorded and answers 200 once founding records it — proven at the seam (TestSpacesProof_ArmsWhenIdentityLands). Live proof rides the next IDIP drive, noted in STATUS."
  },
  "summary": "Both wallet-facing ADR 0236 verifiers late-bind their trust list from the recorded community identity (idss/org-identity.json) instead of an empty boot-time env var, so a founded gateway's space-ID and sign-in app doors arm the moment founding records the identity.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1653 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1653, "status": "success", "commits": [ "3bdaf3859158bedda0d195c65b7f0cbdbbba3511" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/spaces_proof_wiring_test.go", "docs/GOTCHAS.md", "internal/clan/community.go", "internal/clan/descriptor_writer_env_test.go", "internal/clan/idssidp.go", "internal/clan/idssidp_test.go", "internal/clan/vmguest.go", "internal/controlapi/spaces.go", "internal/controlapi/spaces_latebind_test.go", "internal/idp/bind.go", "internal/idp/config.go", "internal/idp/ledger_verifier.go", "internal/idp/trust.go", "internal/idp/trust_seam_test.go", "internal/keriauth/verifier.go", "internal/keriauth/verifier_test.go" ], "tests": [ { "command": "go test ./internal/keriauth/ ./internal/idp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "go vet ./internal/keriauth/ ./internal/idp/ ./internal/controlapi/ ./internal/clan/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "gofmt -l (all changed .go files)", "exit_code": 0 } ], "criteria": { "Seam: with a recorded community identity and no trust env, GET /api/v1/idip/spaces/challenge answers the golden challenge shape and a valid operator presentation records the spaces; with no recorded identity both paths rest and the browser session still works": "internal/controlapi/spaces_latebind_test.go TestSpacesProof_ArmsWhenIdentityLands (challenge 200 golden shape + operator presentation records once armed) and TestSpacesProof_RestsUntilIdentityRecorded (challenge 404 'proof_path_resting' + proof ignored while resting, yet the browser SSO session records); the real-crypto late-bind is proven in internal/keriauth/verifier_test.go TestTrustProvider_LateBindsTheCommunityRow; the store-read wiring in control-plane/.../spaces_proof_wiring_test.go TestSpacesProofOptions_LateBindsFromRecordedIdentity", "Seam: the bridge's app door accepts a Membership credential issued by the recorded community AID and refuses one from any other issuer": "internal/idp/trust_seam_test.go TestAppDoorTrust_AcceptsRecordedIssuer (verifies once org-identity.json records the issuer, rests ErrNoMembership before) + TestAppDoorTrust_RefusesOtherIssuer (record naming another AID → refused)", "Render test: the control-plane unit on the IDIP path carries the KEL door": "internal/clan/descriptor_writer_env_test.go TestControlPlane_IDIPCarriesTheLoopbackKELDoor (both VM + own-VPS IDIP renders export IDSS_IDP_KEYSTATE_URL=http://127.0.0.1:3902/oobi/{aid}, and NOT IDSS_IDP_TRUST_ISSUER) + TestControlPlane_KanidmPathCarriesNoKELDoor; the bridge unit renders IDSS_IDP_ORG_IDENTITY_FILE — internal/clan/idssidp_test.go TestRenderIdssIdp_OrgIdentityFileForLateBoundTrust", "GOTCHAS entry: a value minted at founding cannot be a render-time env var": "docs/GOTCHAS.md #283", "Live (next IDIP drive, from outside, no session): the challenge route answers 200 after founded": "Cannot be self-proven offline; the challenge route now rests (404) until the identity is recorded and answers 200 once founding records it — proven at the seam (TestSpacesProof_ArmsWhenIdentityLands). Live proof rides the next IDIP drive, noted in STATUS." }, "summary": "Both wallet-facing ADR 0236 verifiers late-bind their trust list from the recorded community identity (idss/org-identity.json) instead of an empty boot-time env var, so a founded gateway's space-ID and sign-in app doors arm the moment founding records the identity.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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#1653
No description provided.