sign-in bridge: the app door runs ADR 0212's verifier on a real gateway — it checks the UNBOUND message and ignores the credential, so every wallet sign-in is refused signature; and the door it names is not the descriptor's sign-in site #1666

Closed
opened 2026-09-20 17:08:32 +00:00 by ben · 2 comments
Owner

What the live gateway does (debug IDIP fire 14, 20260920T164135Z, 43d856fe)

The new wallet-signs-in leg started a real sign-in hop at the Files door, asked the sign-in page's app door for its ask, and had the headless wallet present the founder's Membership credential exactly as ADR 0236 §2/§5 and matou-app do (bound bytes idss-idp:<door>:<aid>:<nonce> + the bare credential stream). The door answered:

{"status":"refused","refusal":"signature"}

The SAME wallet, minutes earlier in the same run, was accepted by the space-ID door (wallet-records-spaces green). The wallet is right; the two doors check different things.

Why

On a real gateway the sign-in bridge never binds ADR 0236's verifier. internal/idp/bind.go binds the ledger verifier only when IDSS_IDP_SIGNIN_URL is set, and nothing renders it (grep -rn SIGNIN_URL internal/clan control-plane scripts is empty). It falls through to ADR 0212's KeriVerifier:

  • checks the UNBOUND message idss-idp:<aid>:<nonce> (keri_verifier.go:89) — so a wallet's bound signature can never verify;
  • ignores the presented credential — membership is answered by the control plane's roster.

The app door (provider.go) shares that verifier, and with no sign-in URL it names https://id.<apex>/login as its door — while the descriptor tells the wallet the home door is https://<apex>/authz/signin (orgconfig.SigninURL). ADR 0236 §5: a door address the wallet was not introduced to only ever produces the first-contact prompt — so even once the signature verifies, the real app would treat its OWN community's sign-in as a stranger.

The browser words door signs the unbound message too (app/src/keriweb/main.ts:184), which is why every browser sign-in works today and nothing caught this.

So, live today: app sign-in cannot work, and ADR 0236's door-bound signature (the anti-phishing half) is in force nowhere on the sign-in bridge. #1523's seam tests passed because they seed the sign-in URL by hand.

The decision (Ben's — it changes what the sign-in bridge verifies)

Option B — recommended: the APP door gets ADR 0236's verifier; the browser words door is left exactly as it is. The app door binds its own late-bound ledger verifier (bound bytes, presented credential, trust list from the recorded community identity — the #1653 source); the words door keeps ADR 0212. The wallet works; no browser sign-in on any community changes, so the whole SSO arc (#1547) carries no regression risk. The door-bound signature lands where it matters most — a QR or link from an arbitrary page is exactly the harvest ADR 0236 §5 exists to defeat.

Option A — one verifier for both doors (ADR 0236 as written). Render the sign-in URL, bind the ledger verifier for everything, and move the browser's keri-web to sign bound bytes and present the credential. Cleaner end state, but it touches every browser sign-in on every IDIP community at once. Better as its own later ticket behind B.

Either way, one address must be THE sign-in site. The ask's door, the verifier's bound address and the descriptor's signin.url must be the same string. Recommended: the descriptor's value wins (https://<apex>/authz/signin is what wallets have baked in) and the app door names and binds THAT; the present route stays where it is on id.<apex>.

Acceptance (once ruled)

  • Seam: with a recorded community identity and no env overrides, the app door's present verifies a bound signature + presented Membership credential, and refuses an unbound one (signature), an untrusted issuer, and a revoked credential.
  • Seam: the ask's door equals the descriptor's signin.url byte for byte.
  • The browser words door's behaviour is unchanged (option B) — its existing tests untouched.
  • Live: the IDIP journey's wallet-signs-in leg goes green (the browser lands in Files with no words typed).
  • GOTCHAS entry: a verifier selected by an env var nothing renders is a verifier that never runs (second time — #1653).

Blocks #1531. Found by Ben's session on the hand debug drive.

## What the live gateway does (debug IDIP fire 14, `20260920T164135Z`, `43d856fe`) The new `wallet-signs-in` leg started a real sign-in hop at the Files door, asked the sign-in page's app door for its ask, and had the headless wallet present the founder's Membership credential exactly as ADR 0236 §2/§5 and matou-app do (bound bytes `idss-idp:<door>:<aid>:<nonce>` + the bare credential stream). The door answered: ```json {"status":"refused","refusal":"signature"} ``` The SAME wallet, minutes earlier in the same run, was accepted by the space-ID door (`wallet-records-spaces` green). The wallet is right; the two doors check different things. ## Why On a real gateway the sign-in bridge never binds ADR 0236's verifier. `internal/idp/bind.go` binds the ledger verifier only when `IDSS_IDP_SIGNIN_URL` is set, and **nothing renders it** (`grep -rn SIGNIN_URL internal/clan control-plane scripts` is empty). It falls through to ADR 0212's `KeriVerifier`: - checks the UNBOUND message `idss-idp:<aid>:<nonce>` (`keri_verifier.go:89`) — so a wallet's bound signature can never verify; - ignores the presented credential — membership is answered by the control plane's roster. The app door (`provider.go`) shares that verifier, and with no sign-in URL it names `https://id.<apex>/login` as its door — while the descriptor tells the wallet the home door is `https://<apex>/authz/signin` (`orgconfig.SigninURL`). ADR 0236 §5: a door address the wallet was not introduced to only ever produces the first-contact prompt — so even once the signature verifies, the real app would treat its OWN community's sign-in as a stranger. The browser words door signs the unbound message too (`app/src/keriweb/main.ts:184`), which is why every browser sign-in works today and nothing caught this. So, live today: app sign-in cannot work, and ADR 0236's door-bound signature (the anti-phishing half) is in force nowhere on the sign-in bridge. #1523's seam tests passed because they seed the sign-in URL by hand. ## The decision (Ben's — it changes what the sign-in bridge verifies) **Option B — recommended: the APP door gets ADR 0236's verifier; the browser words door is left exactly as it is.** The app door binds its own late-bound ledger verifier (bound bytes, presented credential, trust list from the recorded community identity — the #1653 source); the words door keeps ADR 0212. The wallet works; no browser sign-in on any community changes, so the whole SSO arc (#1547) carries no regression risk. The door-bound signature lands where it matters most — a QR or link from an arbitrary page is exactly the harvest ADR 0236 §5 exists to defeat. **Option A — one verifier for both doors (ADR 0236 as written).** Render the sign-in URL, bind the ledger verifier for everything, and move the browser's keri-web to sign bound bytes and present the credential. Cleaner end state, but it touches every browser sign-in on every IDIP community at once. Better as its own later ticket behind B. **Either way, one address must be THE sign-in site.** The ask's `door`, the verifier's bound address and the descriptor's `signin.url` must be the same string. Recommended: the descriptor's value wins (`https://<apex>/authz/signin` is what wallets have baked in) and the app door names and binds THAT; the present route stays where it is on `id.<apex>`. ## Acceptance (once ruled) - Seam: with a recorded community identity and no env overrides, the app door's `present` verifies a bound signature + presented Membership credential, and refuses an unbound one (`signature`), an untrusted issuer, and a revoked credential. - Seam: the ask's `door` equals the descriptor's `signin.url` byte for byte. - The browser words door's behaviour is unchanged (option B) — its existing tests untouched. - Live: the IDIP journey's `wallet-signs-in` leg goes green (the browser lands in Files with no words typed). - GOTCHAS entry: a verifier selected by an env var nothing renders is a verifier that never runs (second time — #1653). Blocks #1531. Found by Ben's session on the hand debug drive.
Author
Owner

Ruled by Ben 2026-09-20: option B now; option A is #1668, for after the drive is green. Claimed by Ben's session — building B test-first.

**Ruled by Ben 2026-09-20: option B now; option A is #1668, for after the drive is green.** Claimed by Ben's session — building B test-first.
Author
Owner

Option B landed 9d29e9b5: idp.BindVerifier binds the browser words door (roster verifier on the production shape), idp.BindAppDoorVerifier + WithAppDoorVerifier give the app door the late-bound ADR 0236 ledger verifier. Red-first binding tests + a two-fakes seam test that the app door never shares the words door's verifier. ADR 0236 amended, GOTCHAS #292. This also takes back #1667's whole-bridge switch (it would have refused every browser sign-in; it reached no community) while keeping its rendered address and ResolvedSignInURL(). Seam-proven; the next IDIP fire proves it live. Option A is #1668.

Option B landed `9d29e9b5`: `idp.BindVerifier` binds the browser words door (roster verifier on the production shape), `idp.BindAppDoorVerifier` + `WithAppDoorVerifier` give the app door the late-bound ADR 0236 ledger verifier. Red-first binding tests + a two-fakes seam test that the app door never shares the words door's verifier. ADR 0236 amended, GOTCHAS #292. This also takes back #1667's whole-bridge switch (it would have refused every browser sign-in; it reached no community) while keeping its rendered address and `ResolvedSignInURL()`. Seam-proven; the next IDIP fire proves it live. Option A is #1668.
ben closed this issue 2026-09-20 18:00:46 +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.

Reference
Matou/idss#1666
No description provided.