wallet-signs-in: idss-idp binds the ADR 0212 unbound verifier — IDSS_IDP_SIGNIN_URL unset #1667
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
wallet-signs-inis the only red of 40 legs (verdict.json:"green": 39, "red": 1, "skip": 0,"firstRedLeg": "wallet-signs-in"). This is not the drive's KNOWN frontier —pairis green (4057 ms) andlegs.jsoncarries no skip reasons at all. It is a fresh red on the leg commit43d856feadded.The headless wallet presented at the app door and was refused for a bad signature:
artifacts/wallet-signs-in.jsonshows the ask it signed and the verdict it got:The key, the KEL and the credential are all fine. Seconds earlier the same AID with the same signing key was verified by the control plane's space-ID door (
logs/droplet-journal.txt):(
wallet-records-spacesgreen, 4257 ms.) So only the idp door refuses it.Why — the two halves sign different bytes
The live box names the bound verifier in its own startup line (
journalctl -u idss-idp, anddroplet-journal.txt:986):That is
internal/idp/bind.go:66— the ADR 0212KeriVerifier, not the ADR 0236 ledger verifier.KeriVerifierchecks the unbound message (internal/idp/keri_verifier.go:89):But the app door minted an ask naming a door, and the wallet signed the ADR 0236 §5 door-bound form (
app/tests/e2e/fixtures/headlessWallet.ts:69):Ed25519 over
idss-idp:https://id.rehearsal-f.idss.nz/login:EBNff6…:SrZONd…against a verifier expectingidss-idp:EBNff6…:SrZONd…→ false →ErrChallengeFailed→refusalKindreturns"signature"(internal/idp/appdoor.go:375). HTTP 200, exactly the recorded body.The specific defect
BindVerifiergates the ADR 0236 path on three inputs (internal/idp/bind.go:41):On the live box two of the three are satisfied and the third is absent.
systemctl cat idss-idprenders:…and there is no
IDSS_IDP_SIGNIN_URL— confirmed in the unit and in/proc/10980/environ. The trust half is genuinely armed:/srv/idss/config/idss/org-identity.jsonlanded at founding (16:59, 447 bytes,"aid": "EEpszSOEMSaxyUV07Vuoq6iwxznpD8mYPiJFTwVgkA9w"+ oobi + registry), and idss-idp restarted at 17:01:56 after it. Onlycfg.SignInURL == ""sends it down the 0212 branch.The module is the source:
internal/clan/idssidp.gorendersIDSS_IDP_ISSUER,IDSS_IDP_KEYSTATE_URL,IDSS_IDP_CONTROL_PLANE_URL,IDSS_IDP_ORG_IDENTITY_FILE(lines 254–297) — and neverIDSS_IDP_SIGNIN_URL.grep -rn IDSS_IDP_SIGNIN_URLacross the repo hits onlyinternal/idp/config.go:259(the reader) andSTATUS.md:174, which states the contract plainly: "BindVerifierbinds the ledger verifier wheneverIDSS_IDP_TRUST_ISSUER+IDSS_IDP_SIGNIN_URL+ the KEL door are seeded (else today's roster/DeniedVerifier)". #1653 late-bound the trust half onto the org-identity file and the module was updated for that; the sign-in-address half was never added.The empty value is silently papered over on the ask side, which is what turns a config gap into a crypto mismatch instead of an honest refusal —
internal/idp/provider.go:154:So the door asks for bytes bound to an address it will not check. The ask's
doorfield andbind.go's gate read from the same config field but disagree about what empty means.Suspected layer
Product — the gateway's own NixOS module plus the bind/ask split. Not harness: the leg's expectation (
verified) is correct per ADR 0236 §5 and DDR 0246, and the wallet fixture signs the form the ask asks for. Not infra: the droplet is healthy,idss-idpis up and listening on127.0.0.1:8465,systemctl --failedis empty, and the KEL door answers 200 for the AID (curl http://127.0.0.1:3902/oobi/EBNff6…returns theicpwithk:["DGG9-vu0v9syomc9sRgjTCpSL4AnbDdnaDxWFJkjDVJh"]).What plugging it needs
internal/clan/idssidp.go, besideIDSS_IDP_ORG_IDENTITY_FILE(~line 285), emitIDSS_IDP_SIGNIN_URL = "https://<IdLabel>.<apex>/login"— the same addressprovider.gofalls back to, so the ask and the verifier name one door. That alone flipsBindVerifiertoNewLateBoundLedgerVerifierand makes the verified bytes match the signed bytes. Pin it with a module test ininternal/clan/idssidp_test.go(which today asserts the signing-key generator but not this).provider.go:155's derive-from-issuer fallback andbind.go:41'scfg.SignInURL != ""gate must read one resolved value. Either resolve the door address once at boot and hand it to both (so an unseeded door still arms bound), or, if it cannot be resolved, have the app door refuse honestly rather than mint an ask naming a door nothing checks.member-sign-in,oidc-admin,suspend-readmit,credential-claim-goneandrestricted-*are green today on the ADR 0212 path and will exercise the 0236 path after the fix — that is ADR 0236's intended destination, not a new decision, but it is a real behaviour change and must be re-driven, not assumed.Notes on evidence
The live box was reachable and answered every read-only probe; it is the primary source above. One absence worth recording: idss-idp logs nothing per request —
journalctl -u idss-idp --since "17:02:00"is-- No entries --even though the challenge mint and the refusal both happened at ~17:05:17. The refusal reason is discarded at the port boundary (refusalKindcollapses it to"signature"by design, DDR 0246 decision 7), butKeriVerifieralso never logs the verify failure — only key-state and undecodable-signature faults get alog.Warn. A one-line Debug/Warn on a failedVerifySignaturenaming the door it bound over would have made this diagnosable from the harvested logs alone, without the live box.drive
20260920T164135Zred atwallet-signs-in:the door verifies the wallet's presentation — it said {"status":"refused","refusal":"signature"} expect(received).toBe(expected) // Object.is equality Expected: "verified" Received: "refused"evidence:
/home/swarm/session-runner/idss/test-results/drive-idip/20260920T164135Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=28537
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1667 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
signature; and the door it names is not the descriptor's sign-in site #1666Follow-up from Ben's session: this fix bound ADR 0236's ledger verifier over the WHOLE bridge. The browser words door still signs the UNBOUND message and presents no credential (
app/src/keriweb/main.ts), so a gateway built from13c26b4crefuses every browser sign-in — the founder locked out of the control panel. It reached no community. Ben ruled #1666 option B;9d29e9b5binds per door (words door = roster verifier, app door = ledger verifier) and keeps this commit's rendered address +ResolvedSignInURL(). Lesson recorded as GOTCHAS #292: what a sign-in door verifies is never a two-way door under ADR 0174.