rehearsal drive red at sign-in #524

Closed
opened 2026-08-14 06:32:34 +00:00 by ben · 4 comments
Owner

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)

drive 20260814T062452Z red at sign-in: page.goto: net::ERR_SSL_PROTOCOL_ERROR at https://rehearsal.idss.nz/ Call log: m - navigating to "https://rehearsal.idss.nz/", waiting until "domcontentloaded"m
evidence: test-results/…/20260814T062452Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out) drive `20260814T062452Z` red at `sign-in`: `page.goto: net::ERR_SSL_PROTOCOL_ERROR at https://rehearsal.idss.nz/ Call log: m - navigating to "https://rehearsal.idss.nz/", waiting until "domcontentloaded"m` evidence: `test-results/…/20260814T062452Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: e689ed304acb -->
Author
Owner

Diagnosis (by hand — the reporter hit the account-1 weekly limit at filing time, hence the bare body):

Same signature as drive 12, different cause. Drive 12 = no apex site at all (#512, closed). Drive 13 ran WITH #512's render — the run's own state/clan-config/machines/gateway/front-door.nix carries serverAliases = [ "rehearsal.idss.nz" ] and the @portal route — and still redded, because the apex is a second, separate DNS-01 order that lags the wildcard's, and nothing waits for it:

  • 06:30:31 Caddy starts; both cert orders begin (wildcard + apex).
  • The #499 public-entry probe waits on ownVPSCeremonyHost(s) — id.<apex> only (internal/founding/deploy.go:447). The wildcard order finished first, id.<apex> answered, the row rested done, S12 handed off.
  • The ceremony completed live (kanidm: operator cookie session 06:32:18 — second drive running proof of the ceremony).
  • 06:32:2x the portal goto hit https://rehearsal.idss.nz ~110 s after Caddy start, before the APEX order landed → ERR_SSL_PROTOCOL_ERROR (sign-in red at 12.8 s).

Whether the apex order merely lagged or failed outright is not visible in the artifacts — the droplet harvest's guest-caddy.log is private-path-shaped and collected 0 bytes (known since drive 20260813T015909Z). The honest probe below answers that question on the next drive either way.

Fix direction

  1. deploy.go — the #499 public-entry gate probes BOTH doors. After the ceremony host answers, probe the portal apex (s.Draft.Address.Host) with the same probeDoorLive, inside the SAME bounded cold-start budget (shared budget, not doubled). The row rests done only when both answer over TLS; a door dead across the budget reds the row honestly, its Detail naming WHICH door (id.<apex> vs the apex) never answered.
  2. Seam test beside the existing #499 pins: public-entry stays pending until both doors answer; the red path names the dead door.
  3. Evidence gap (small, same ticket): add a journalctl -u caddy harvest to the droplet drive's log collection (lands beside droplet-journal.txt), so cert-obtain lag/failure is visible in artifacts — the private-path-shaped guest-caddy.log collector collects nothing on droplet drives.

Evidence: test-results/drive-droplet/20260814T062452Z (legs.json sign-in red; rendered front-door.nix WITH the #512 fix; kanidm cookie line 06:32:18; guest-caddy.log 0 bytes).

Diagnosis (by hand — the reporter hit the account-1 weekly limit at filing time, hence the bare body): **Same signature as drive 12, different cause.** Drive 12 = no apex site at all (#512, closed). Drive 13 ran WITH #512's render — the run's own `state/clan-config/machines/gateway/front-door.nix` carries `serverAliases = [ "rehearsal.idss.nz" ]` and the `@portal` route — and still redded, because **the apex is a second, separate DNS-01 order that lags the wildcard's**, and nothing waits for it: - 06:30:31 Caddy starts; both cert orders begin (wildcard + apex). - The #499 public-entry probe waits on `ownVPSCeremonyHost(s)` — **`id.<apex>` only** (internal/founding/deploy.go:447). The wildcard order finished first, `id.<apex>` answered, the row rested done, S12 handed off. - The ceremony completed live (kanidm: operator cookie session 06:32:18 — second drive running proof of the ceremony). - 06:32:2x the portal goto hit `https://rehearsal.idss.nz` ~110 s after Caddy start, before the APEX order landed → `ERR_SSL_PROTOCOL_ERROR` (sign-in red at 12.8 s). Whether the apex order merely lagged or failed outright is not visible in the artifacts — the droplet harvest's `guest-caddy.log` is private-path-shaped and collected 0 bytes (known since drive `20260813T015909Z`). The honest probe below answers that question on the next drive either way. ## Fix direction 1. **deploy.go — the #499 public-entry gate probes BOTH doors.** After the ceremony host answers, probe the portal apex (`s.Draft.Address.Host`) with the same `probeDoorLive`, inside the SAME bounded cold-start budget (shared budget, not doubled). The row rests done only when both answer over TLS; a door dead across the budget reds the row honestly, its Detail naming WHICH door (`id.<apex>` vs the apex) never answered. 2. **Seam test** beside the existing #499 pins: public-entry stays pending until both doors answer; the red path names the dead door. 3. **Evidence gap (small, same ticket):** add a `journalctl -u caddy` harvest to the droplet drive's log collection (lands beside `droplet-journal.txt`), so cert-obtain lag/failure is visible in artifacts — the private-path-shaped `guest-caddy.log` collector collects nothing on droplet drives. Evidence: `test-results/drive-droplet/20260814T062452Z` (legs.json sign-in red; rendered front-door.nix WITH the #512 fix; kanidm cookie line 06:32:18; guest-caddy.log 0 bytes).
Author
Owner

swarm-claim host=matou-dev-server-01 run=6073
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=6073 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

swarm-claim host=elitebook-distributed-server-03 run=6074
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=6074 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #524 — status success

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

envelope
{
  "issue": 524,
  "status": "success",
  "commits": [
    "29749ce"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/founding/deploy.go",
    "internal/founding/ownvpspath_test.go",
    "internal/founding/testing/fakes.go",
    "scripts/lib/rehearsal-droplet.sh"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/founding/... scripts/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Fix 1 — public-entry gate probes BOTH doors within the shared cold-start budget; row rests done only when both answer; a dead door reds naming WHICH door": "internal/founding/deploy.go probeDoorsLive() + call site building [ceremony host id.<apex>, portal apex ownVPSApex] and failure Detail carrying the dead host; commit 29749ce",
    "Fix 2 — seam test beside the #499 pins: public-entry stays pending until both doors answer; the red path names the dead door": "internal/founding/ownvpspath_test.go TestOwnVPS_PublicEntryWaitsForTheLaggingApexOrder (pending until apex answers) + TestOwnVPS_DeadApexDoorRedsPublicEntryNamingTheApex (red names the apex); both PASS",
    "Fix 3 — journalctl -u caddy harvest added to the droplet drive's log collection, landing beside droplet-journal.txt": "scripts/lib/rehearsal-droplet.sh oc_droplet_evidence now writes logs/droplet-caddy.txt via journalctl -u caddy -u acme-dns-register; commit 29749ce"
  },
  "summary": "The own-VPS public-entry gate now waits for both the ceremony host and the portal apex in one shared cold-start budget, closing the ERR_SSL_PROTOCOL_ERROR the apex's separate lagging DNS-01 order raced, plus a droplet caddy-journal harvest to make the lag visible.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #524 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 524, "status": "success", "commits": [ "29749ce" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/founding/deploy.go", "internal/founding/ownvpspath_test.go", "internal/founding/testing/fakes.go", "scripts/lib/rehearsal-droplet.sh" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/founding/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/founding/... ./internal/clan/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/founding/... scripts/", "exit_code": 0 } ], "criteria": { "Fix 1 — public-entry gate probes BOTH doors within the shared cold-start budget; row rests done only when both answer; a dead door reds naming WHICH door": "internal/founding/deploy.go probeDoorsLive() + call site building [ceremony host id.<apex>, portal apex ownVPSApex] and failure Detail carrying the dead host; commit 29749ce", "Fix 2 — seam test beside the #499 pins: public-entry stays pending until both doors answer; the red path names the dead door": "internal/founding/ownvpspath_test.go TestOwnVPS_PublicEntryWaitsForTheLaggingApexOrder (pending until apex answers) + TestOwnVPS_DeadApexDoorRedsPublicEntryNamingTheApex (red names the apex); both PASS", "Fix 3 — journalctl -u caddy harvest added to the droplet drive's log collection, landing beside droplet-journal.txt": "scripts/lib/rehearsal-droplet.sh oc_droplet_evidence now writes logs/droplet-caddy.txt via journalctl -u caddy -u acme-dns-register; commit 29749ce" }, "summary": "The own-VPS public-entry gate now waits for both the ceremony host and the portal apex in one shared cold-start budget, closing the ERR_SSL_PROTOCOL_ERROR the apex's separate lagging DNS-01 order raced, plus a droplet caddy-journal harvest to make the lag visible.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
ben closed this issue 2026-08-14 14:52:48 +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#524
No description provided.