broker: /point and /offboard accept any caller — a live community's DNS can be repointed or deleted #322
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#322
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?
NewHandlerbuilds a barehttp.ServeMuxwith no middleware (broker/internal/broker/http.go:46-103) andmain.goserves it directly (broker/cmd/broker/main.go:31-38).brokerclientsends onlyContent-Type— no token, no signature, no ownership proof (internal/brokerclient/client.go:100-113)./v1/subdomains/claimreservedSlugs/v1/subdomains/point/v1/subdomains/offboardAny caller who knows a claimed host can:
reservedSlugsdoes not help: it fences Matou's own infra labels, not community-owned names (broker/internal/broker/broker.go:99-112, ADR 0128). The Cloudflare token is zone-scoped toidss.nzwith no per-subname fence, so the application layer is the only guard — and it currently checks nothing about the caller.Relationship to #278
This issue originally also covered the in-memory reservation ledger. That half is #278 (closed) — its durable
ReservationStorefix is in the working tree (broker/internal/broker/store.go). Persistence closes the "restart hands the name away" path; it does not close this one. An attacker never needed a restart:pointandoffboardaccept any caller for an already-claimed host, which is the normal steady state.Narrowed 2026-08-07 once #278 was found.
Definition of done
point/offboardfor that host. ADR 0118:66-69 rules that gateway credentials stay out of the apex zone, so a zone-scoped credential is not the answer.Ruled by a human — the auth model is a design decision, not an integration.
Found 2026-08-07 while scoping home-gateway reachability. Full trace in
docs/research/2026-08-07-home-gateway-reachability-scope.md. Blocks #330 (the address heartbeat), which would call/pointon a timer.broker: /point and /offboard are unauthenticated, and the reservation ledger is in-memoryto broker: /point and /offboard accept any caller — a live community's DNS can be repointed or deletedRuled by Ben 2026-08-08 (decision sweep) → ADR 0135 (
1716193, on main): a claim-time secret, returned once in the claim response, stored in community state, required on every laterpoint/offboardfor that host. Legacy hosts adopt on first caller (trust on first use) — the first-mover risk on the alpha-era test claims is knowingly accepted; no unauthenticated grandfather path survives adoption. Definition of done stands as written, plus legacy-adoption contract tests (secretless host + first presented secret binds; a second caller with a different secret is refused). →ready-for-agent. Unblocks #330 (nowagent-blockedon this).Done — shipped as ADR 0135's claim-secret model (on main,
eba4d53..a0b67f7).What landed
Registry.Claimmints a 32-byte CSPRNG secret, stores it against the slug, and returns it once in the claim response (a re-claim of a taken slug leaks no secret).Registry.Authorizegates every mutation: no secret ->ErrSecretRequired(401), wrong secret ->ErrSecretMismatch(403, constant-time compare), correct -> allowed.Issuer.Point/Offboardtake the secret; the HTTP handler readsAuthorization: Bearer.ReservationStorepersists a slug->secret map as schema v2; a pre-secret v1 document (bare slug list) still loads (every slug a secretless legacy name) and is rewritten v2 on next save; any other version still refused loudly.brokerclientsends the secret and captures it at claim;foundingthreads it claim ->SubdomainClaim.Secret->AddressChoice.Secret(persisted) ->wireName'sPointSubdomain.Contract tests (all requested + legacy adoption)
Authorizeunknown/missing/wrong/correct; secret survives a restart; a v1 ledger loads and adopts on first caller (durable across restart).go build/vet/test/gofmt/golangci-lintgreen across both modules (full go-ci gate ran on push). Hosts claimed before the secret existed are handled by first-caller adoption exactly as ADR 0135 rules. Unblocks #330.