A destroyed community's name can NEVER be released — offboard needs a claim secret that dies with the gateway, so every torn-down trial burns its name forever #1751

Open
opened 2026-09-23 01:36:39 +00:00 by ben · 1 comment
Owner

Found destroying Whakatōhea Demo for a fresh manual test, 2026-09-22.

The droplet was destroyed (DO 602481569). The broker still holds the name:

POST https://broker.idss.nz/v1/subdomains/available {"slug":"whakatohea-demo"}
-> {"available":false,"reason":"that name is already taken"}

and whakatohea-demo.idss.nz still answers 168.144.162.42 — a machine that no longer exists.

Why it cannot be released

POST /v1/subdomains/offboard is the only route that frees a name, and Issuer.Offboard (broker/internal/broker/broker.go:547) authorises the caller with the host's claim secret (ADR 0135). That secret lives:

  • on the gateway — destroyed with it; and
  • in the operator app's clan vars (vars/per-machine/gateway/idss-claim-secret), sops-encrypted, reachable only with the community's key material — which the operator is often destroying at the same time, and which no longer exists once the app state is cleared.

So: destroy a community and its name is reserved forever. There is no route, no screen and no admin path that releases it; the only repair is root on the broker host, editing /var/lib/ourcloud-broker/reservations.json by hand. It also leaves a DNS record pointing at a dead address until someone re-points it.

This is the ordinary path, not an edge case: every trial, demo and rehearsal community that is torn down burns its name permanently. The name a community most wants back is the one it just used.

What is wanted

  1. Destroying a community offboards it FIRST. Wherever the product can end a community (the app's remove/uninstall path, #1647's arc; a rehearsal teardown; the drives' afterAll), the offboard call happens while the claim secret is still readable, before the gateway or the app state goes. If the offboard fails, the destroy says so plainly — a name silently kept is exactly today's bug.
  2. A recovery path for a name whose gateway is already gone. The claim secret is unrecoverable by then, so authority has to come from somewhere else. Proposal: Mātou holds the founding operator's email for each name (#1744's ruling) — a release is authorised by proving control of that address (the same verification ceremony), and the operator sees the name freed. Where no verified founding email exists (every community founded before #1744), it stays a Mātou-side operation with a documented runbook.
  3. A reserved name whose records point nowhere is visible to Mātou. The reaper already walks rentals; an equivalent pass should list names whose recorded address has been dead for N days, so stale reservations can be reviewed rather than discovered by hand.
  4. Design owes the operator-facing half: what the app says when a community is removed (name released / name kept and why), and the re-claim path from that screen.

Right now

whakatohea-demo is reserved with no live gateway, and the demo is being re-founded under a different name. The stale reservation and its 168.144.162.42 records need a hand repair on the broker host.

Relates to ADR 0135 (claim secret), ADR 0128 (the zone), #1647 (uninstall arc), #1744 (the founding email Mātou keeps), #1404 (availability check).

**Found destroying Whakatōhea Demo for a fresh manual test, 2026-09-22.** The droplet was destroyed (DO `602481569`). The broker still holds the name: ``` POST https://broker.idss.nz/v1/subdomains/available {"slug":"whakatohea-demo"} -> {"available":false,"reason":"that name is already taken"} ``` and `whakatohea-demo.idss.nz` still answers `168.144.162.42` — a machine that no longer exists. ## Why it cannot be released `POST /v1/subdomains/offboard` is the only route that frees a name, and `Issuer.Offboard` (`broker/internal/broker/broker.go:547`) authorises the caller with the **host's claim secret** (ADR 0135). That secret lives: - on the **gateway** — destroyed with it; and - in the **operator app's** clan vars (`vars/per-machine/gateway/idss-claim-secret`), **sops-encrypted**, reachable only with the community's key material — which the operator is often destroying at the same time, and which no longer exists once the app state is cleared. So: **destroy a community and its name is reserved forever.** There is no route, no screen and no admin path that releases it; the only repair is root on the broker host, editing `/var/lib/ourcloud-broker/reservations.json` by hand. It also leaves a DNS record pointing at a dead address until someone re-points it. This is the ordinary path, not an edge case: every trial, demo and rehearsal community that is torn down burns its name permanently. The name a community most wants back is the one it just used. ## What is wanted 1. **Destroying a community offboards it FIRST.** Wherever the product can end a community (the app's remove/uninstall path, #1647's arc; a rehearsal teardown; the drives' `afterAll`), the offboard call happens **while the claim secret is still readable**, before the gateway or the app state goes. If the offboard fails, the destroy says so plainly — a name silently kept is exactly today's bug. 2. **A recovery path for a name whose gateway is already gone.** The claim secret is unrecoverable by then, so authority has to come from somewhere else. **Proposal:** Mātou holds the founding operator's email for each name (#1744's ruling) — a release is authorised by proving control of that address (the same verification ceremony), and the operator sees the name freed. Where no verified founding email exists (every community founded before #1744), it stays a Mātou-side operation with a documented runbook. 3. **A reserved name whose records point nowhere is visible to Mātou.** The reaper already walks rentals; an equivalent pass should list names whose recorded address has been dead for N days, so stale reservations can be reviewed rather than discovered by hand. 4. **Design owes** the operator-facing half: what the app says when a community is removed (name released / name kept and why), and the re-claim path from that screen. ## Right now `whakatohea-demo` is reserved with no live gateway, and the demo is being re-founded under a different name. The stale reservation and its `168.144.162.42` records need a hand repair on the broker host. Relates to ADR 0135 (claim secret), ADR 0128 (the zone), #1647 (uninstall arc), #1744 (the founding email Mātou keeps), #1404 (availability check).
Author
Owner

The wider gap this sits inside is now filed as #1781 — there is no teardown act in the product at all, so the claim secret this ticket could not reach has never had a surface that uses it while the gateway is alive. #1781 carries Ben's ruled design (a Destroy community act on Settings: understand what is lost, take a backup, type DESTROY, confirm) and asks for the unreachable-gateway case this ticket found to be answered honestly on the same surface.

The wider gap this sits inside is now filed as #1781 — there is no teardown act in the product at all, so the claim secret this ticket could not reach has never had a surface that uses it while the gateway is alive. #1781 carries Ben's ruled design (a Destroy community act on Settings: understand what is lost, take a backup, type DESTROY, confirm) and asks for the unreachable-gateway case this ticket found to be answered honestly on the same surface.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1751
No description provided.