rehearsal: a keep-on-red drive keeps the box but releases the community's name — the door-legs debug tail cannot sign anyone in on a kept world #1596

Closed
opened 2026-09-18 18:33:36 +00:00 by ben · 2 comments
Owner

What happened

First live use of the door-legs debug tail (scripts/debug-rented-services-tail.sh, d95cfc99) against run 14 of #1547's kept world (20260918T173924Z, box 170.64.197.237).

  1. All 14 doors red ERR_SSL_PROTOCOL_ERROR. The red drive's teardown keeps the droplet (kept_on_red: true) but releases the broker claim, so roles-proof.idss.nz and *.roles-proof.idss.nz fall back to the *.idss.nz wildcard host. Fixed in df08e6c6: rolesWorld.hostResolverRules pins the names to the kept box for the door browsers, and both liveness checks ask the box by address.
  2. With the names pinned the walk reached kanidm, signed in, and died on the front door's callback: {"code":"signin_exchange","message":"the sign-in could not be completed with the community IdP"}. The box's journal: controlapi: signin code exchange failed err="token exchange: Post \"https://id.roles-proof.idss.nz/oauth2/token\": remote error: tls: internal error". getent hosts id.roles-proof.idss.nz ON the box answers 143.198.134.168 (the wildcard), not the box. Not fixable from outside the box.

So the debug tail can prove a kept world's doors answer, never that a person signs in — which is the whole of what it was built to prove (GOTCHAS #249).

Wanted

A roles-proof drive that goes red keeps the community's NAME as well as its box, for as long as the box is kept:

  • the red teardown does not release the broker claim when it keeps the droplet;
  • the next drive's pre-rent sweeps already reap a prior kept box (#748) and spend remembered claim secrets on a stale reservation (#757) — confirm they cover a claim that is still POINTED, not just reserved;
  • the broker's TTL remains the backstop for both.

Also worth a look (product, not harness)

The gateway's control plane reaches its own IdP through public DNS. A community whose public record blips cannot sign anyone in, though kanidm is on the same box. A loopback or hosts pin for id.<apex> on the gateway would remove that dependency. Not ticketed separately — say if it should be.

Acceptance

  • After a red roles-proof drive, getent hosts id.<apex> on the kept box and from the drive host both answer the kept box.
  • scripts/debug-rented-services-tail.sh against that world walks a door leg to a signed-in page.

Advances #1547 (drive iteration speed); does not block it.

## What happened First live use of the door-legs debug tail (`scripts/debug-rented-services-tail.sh`, `d95cfc99`) against run 14 of #1547's kept world (`20260918T173924Z`, box `170.64.197.237`). 1. All 14 doors red `ERR_SSL_PROTOCOL_ERROR`. The red drive's teardown keeps the droplet (`kept_on_red: true`) but releases the broker claim, so `roles-proof.idss.nz` and `*.roles-proof.idss.nz` fall back to the `*.idss.nz` wildcard host. **Fixed in `df08e6c6`:** `rolesWorld.hostResolverRules` pins the names to the kept box for the door browsers, and both liveness checks ask the box by address. 2. With the names pinned the walk reached kanidm, signed in, and died on the front door's callback: `{"code":"signin_exchange","message":"the sign-in could not be completed with the community IdP"}`. The box's journal: `controlapi: signin code exchange failed err="token exchange: Post \"https://id.roles-proof.idss.nz/oauth2/token\": remote error: tls: internal error"`. `getent hosts id.roles-proof.idss.nz` ON the box answers `143.198.134.168` (the wildcard), not the box. **Not fixable from outside the box.** So the debug tail can prove a kept world's doors answer, never that a person signs in — which is the whole of what it was built to prove (GOTCHAS #249). ## Wanted A roles-proof drive that goes red keeps the community's NAME as well as its box, for as long as the box is kept: - the red teardown does not release the broker claim when it keeps the droplet; - the next drive's pre-rent sweeps already reap a prior kept box (#748) and spend remembered claim secrets on a stale reservation (#757) — confirm they cover a claim that is still POINTED, not just reserved; - the broker's TTL remains the backstop for both. ## Also worth a look (product, not harness) The gateway's control plane reaches its own IdP through public DNS. A community whose public record blips cannot sign anyone in, though kanidm is on the same box. A loopback or hosts pin for `id.<apex>` on the gateway would remove that dependency. Not ticketed separately — say if it should be. ## Acceptance - [ ] After a red roles-proof drive, `getent hosts id.<apex>` on the kept box and from the drive host both answer the kept box. - [ ] `scripts/debug-rented-services-tail.sh` against that world walks a door leg to a signed-in page. Advances #1547 (drive iteration speed); does not block it.

swarm-claim host=bens-mac-04 run=26659
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26659 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1596 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1596,
  "status": "success",
  "commits": [
    "69d9806a"
  ],
  "changed_files": [
    "scripts/lib/rehearsal-droplet.sh",
    "scripts/tests/rehearsal-rented-target-test.sh",
    "docs/GOTCHAS.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/rehearsal-rented-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash -n scripts/lib/rehearsal-droplet.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "After a red roles-proof drive, `getent hosts id.<apex>` on the kept box and from the drive host both answer the kept box": "Mechanism landed and seam-proven, live-unproven this session (needs a live red #1547 drive). oc_rented_teardown's keep-on-red branch (scripts/lib/rehearsal-droplet.sh) now skips the subdomain OFFBOARD as well as the broker release, so a kept box keeps <apex>/*.<apex> POINTED at itself — public DNS then answers id.<apex> as the box. Proven offline by check 21b in scripts/tests/rehearsal-rented-target-test.sh (keep-on-red calls no /v1/subdomains/offboard). The live getent observation rides the next red #1547 drive.",
    "`scripts/debug-rented-services-tail.sh` against that world walks a door leg to a signed-in page": "Enabled by the same fix: with the name kept pointed at the kept box, the gateway's control-plane code exchange dials id.<apex> and resolves to the box instead of the *.idss.nz wildcard (which failed 'remote error: tls: internal error', GOTCHAS #249). Harness change is seam-proven (checks 21b/21c); the live door-leg walk to a signed-in page rides the next red #1547 drive (this ticket advances #1547, does not block it)."
  },
  "summary": "oc_rented_teardown's keep-on-red branch now skips the subdomain offboard as well as the broker release, so a kept roles-proof box keeps its name pointed at it and the door-legs debug tail can sign a person in on it (GOTCHAS #249 harness half closed).",
  "reason": "",
  "blockers": []
}
**close-report** for #1596 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1596, "status": "success", "commits": [ "69d9806a" ], "changed_files": [ "scripts/lib/rehearsal-droplet.sh", "scripts/tests/rehearsal-rented-target-test.sh", "docs/GOTCHAS.md", "STATUS.md" ], "tests": [ { "command": "bash scripts/tests/rehearsal-rented-target-test.sh", "exit_code": 0 }, { "command": "bash -n scripts/lib/rehearsal-droplet.sh", "exit_code": 0 } ], "criteria": { "After a red roles-proof drive, `getent hosts id.<apex>` on the kept box and from the drive host both answer the kept box": "Mechanism landed and seam-proven, live-unproven this session (needs a live red #1547 drive). oc_rented_teardown's keep-on-red branch (scripts/lib/rehearsal-droplet.sh) now skips the subdomain OFFBOARD as well as the broker release, so a kept box keeps <apex>/*.<apex> POINTED at itself — public DNS then answers id.<apex> as the box. Proven offline by check 21b in scripts/tests/rehearsal-rented-target-test.sh (keep-on-red calls no /v1/subdomains/offboard). The live getent observation rides the next red #1547 drive.", "`scripts/debug-rented-services-tail.sh` against that world walks a door leg to a signed-in page": "Enabled by the same fix: with the name kept pointed at the kept box, the gateway's control-plane code exchange dials id.<apex> and resolves to the box instead of the *.idss.nz wildcard (which failed 'remote error: tls: internal error', GOTCHAS #249). Harness change is seam-proven (checks 21b/21c); the live door-leg walk to a signed-in page rides the next red #1547 drive (this ticket advances #1547, does not block it)." }, "summary": "oc_rented_teardown's keep-on-red branch now skips the subdomain offboard as well as the broker release, so a kept roles-proof box keeps its name pointed at it and the door-legs debug tail can sign a person in on it (GOTCHAS #249 harness half closed).", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1596
No description provided.