controlapi: open the KERIA boot door for registration — tokenless /boot allowed, a carried invite still checked (DDR 0230 d.2, #1869) #1871

Merged
ben merged 1 commit from session/boot-open-1869 into main 2026-09-25 08:40:26 +00:00
Owner

Closes #1869

Ben's ruling (2026-09-25): "open it so registration can be approved by admin in the app." This is a sign-in trust change, taken to Ben first. It builds DDR 0230 decision 2 (open registration on IDSS, 2026-09-09), which was recorded but never built on the gateway.

The defect

On whakatohea-demo (Coa build v0.7.6), the community app's Join Now → profile form failed with "Failed to connect to identity network". The gateway's /boot forward-auth denied every boot without an invite token:

$ curl -si -X POST -d '{}' https://keria-boot.whakatohea-demo.idss.nz/boot
HTTP/2 403 · x-idss-gate: boot: deny · {"code":"boot_denied", ...}

The descriptor meanwhile reported boot.gated: false.

The change

  • controlapi.bootGateVerify:
    • A boot with no token → 204 (X-Idss-Gate: boot: open (register)), and the invite ledger isn't consulted. The agent holds no membership until a steward approves (in the app, matou-app #612, or the panel).
    • A carried token is still checked: a live invite answers 204 and is spent, so its preset still lands; a dead one answers 403, so a broken invite link fails loud.
    • An unwired checker stays fail-closed.
  • Tests:
    • new TestKeriBootGate_OpenRegistrationAllowsATokenlessBoot;
    • the gate test and the IDIP join integration test are amended;
    • the keria binding test now expects 204 for a tokenless boot, with no invite spent.
  • Comments in keri.go, invite.go and keria.go now describe open registration.
  • Docs: DDR 0230 amendment, GOTCHAS #345, STATUS.

Not changed:

  • The browser join page stays invite-only (/idip/join/{token}).
  • The app's own Invite Member gap is matou-app #628.

Verified

  • go test ./internal/controlapi/ ./internal/keria/ ./internal/clan/ pass.
  • go build ./... passes.
  • Rebased on current main.

Live proof after the release lane applies it to whakatohea-demo: Join Now → pending approval → the founder approves in the app → the new member reaches home.

🤖 Generated with Claude Code

Closes #1869 **Ben's ruling (2026-09-25):** *"open it so registration can be approved by admin in the app."* This is a sign-in trust change, taken to Ben first. It builds DDR 0230 decision 2 (open registration on IDSS, 2026-09-09), which was recorded but never built on the gateway. ## The defect On `whakatohea-demo` (Coa build v0.7.6), the community app's **Join Now → profile form** failed with *"Failed to connect to identity network"*. The gateway's `/boot` forward-auth denied every boot without an invite token: ``` $ curl -si -X POST -d '{}' https://keria-boot.whakatohea-demo.idss.nz/boot HTTP/2 403 · x-idss-gate: boot: deny · {"code":"boot_denied", ...} ``` The descriptor meanwhile reported `boot.gated: false`. ## The change - `controlapi.bootGateVerify`: - **A boot with no token → 204** (`X-Idss-Gate: boot: open (register)`), and the invite ledger isn't consulted. The agent holds no membership until a steward approves (in the app, matou-app #612, or the panel). - **A carried token is still checked:** a live invite answers 204 and is spent, so its preset still lands; a dead one answers 403, so a broken invite link fails loud. - **An unwired checker stays fail-closed.** - Tests: - new `TestKeriBootGate_OpenRegistrationAllowsATokenlessBoot`; - the gate test and the IDIP join integration test are amended; - the keria binding test now expects 204 for a tokenless boot, with no invite spent. - Comments in `keri.go`, `invite.go` and `keria.go` now describe open registration. - Docs: DDR 0230 amendment, GOTCHAS #345, STATUS. **Not changed:** - The browser join page stays invite-only (`/idip/join/{token}`). - The app's own Invite Member gap is matou-app #628. ## Verified - `go test ./internal/controlapi/ ./internal/keria/ ./internal/clan/` pass. - `go build ./...` passes. - Rebased on current main. **Live proof after the release lane applies it to `whakatohea-demo`:** Join Now → pending approval → the founder approves in the app → the new member reaches home. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
controlapi: open the KERIA boot door for registration — a tokenless /boot is allowed, a carried invite is still checked and spent (DDR 0230 d.2, #1869; Ben 2026-09-25)
All checks were successful
ci / seam (pull_request) Successful in 13m55s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
19268c4e64
The community app's Join Now failed with "Failed to connect to identity
network": the gateway's /boot forward-auth still denied every boot without an
invite, although DDR 0230 opened registration on 2026-09-09 and the descriptor
reported boot.gated:false. bootGateVerify now answers 204 for a tokenless boot
(boot: open (register)); a carried token is still checked and spent; an unwired
checker stays fail-closed. DDR 0230 amended, GOTCHAS #345, STATUS.

Refs #1869

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit 5a3373cdd9 into main 2026-09-25 08:40:26 +00:00
ben deleted branch session/boot-open-1869 2026-09-25 08:40:28 +00:00
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/idss!1871
No description provided.