rented-gateway drives have zero cert-persistence wiring — same-slug drives repeatedly walk into Let's Encrypt's 429 (GOTCHAS #32) #724

Closed
opened 2026-08-24 01:02:24 +00:00 by matou-build-agent · 3 comments

Failure

Drive 20260824T003513Z (rented target, #720 phase-4 confirmation) reds at the activation leg after deploy runs and Caddy on the fresh droplet never binds :443. Every other leg is green; the deploy itself, evidence, and teardown all behaved correctly. The app's own failure frame is honest and working as designed (ADR 0100) — this is not a product bug.

Evidence

  • logs/droplet-caddy.txt (harvested from the rented box) shows Caddy's ACME obtain failing on every retry with:
    HTTP 429 urn:ietf:params:acme:error:rateLimited - too many certificates (5) already issued for this exact set of identifiers in the last 168h0m0s, retry after 2026-08-25 0[7-8]:xx UTC — for both rehearsal-b.idss.nz and *.rehearsal-b.idss.nz.
  • This is the exact signature GOTCHAS #32 (docs/GOTCHAS.md:843-892) documents: LE production allows 5 certs per exact identifier set per rolling 168h, and every drive against the same slug spends 2 of that budget.
  • internal/founding/deploy.go:1060-1071 bounds the public-door probe to 120×5s (~10 min) — correctly generous for a cold ACME issuance, but no budget helps here: the caddy log's own retry after timestamps are ~7-8 hours out, so the door was never going to answer inside any reasonable ceiling.
  • The founding-state log (logs/founding-state.log:635-649) records the honest no_rollback failure frame citing GOTCHAS #15, ADR 0014, #524 — correct diagnosis text, but the underlying acme-dns-registration/DNS-01 explanation it gives is one layer up from the real cause (LE rate-limiting), which only the caddy journal (not the app-visible failure detail) names.

Root cause

GOTCHAS #32 was fixed for the own-VPS / takeover droplet path only: scripts/lib/rehearsal-droplet.sh wires oc_droplet_seed_certs (called from oc_droplet_create, line 328) and oc_droplet_harvest_certs (called from oc_droplet_cleanup, line 88) so a green drive's Caddy store is harvested and re-seeded onto the next same-slug drive's box, spending zero new LE orders (#532/#559, ADR 0176).

The rented target has no such wiring. oc_rented_cleanup (scripts/lib/rehearsal-droplet.sh:563) is the rented path's only teardown hook, and its own comment says why nothing was wired (lines 558-561):

"No cert-persist machinery: the rented gateway is VMMode (no takeover, DDR 0190), so nothing reformats the disk mid-drive — the whole #532/#559 seed dance is moot here."

That reasoning conflates two different things. #559's fix was specifically about timing — the own-VPS FullInstall reformats the disk mid-drive (ADR 0024), so a store staged at create-time is wiped and has to be re-staged after takeover in the #554 gate window. The rented VMMode path never reformats — which means the original, simpler #532 approach (stage the store onto the box before Caddy's first start) would actually work fine here; there's no reformat to race. But nobody ported it: oc_droplet_seed_certs / oc_droplet_harvest_certs are called only from the droplet-target functions (oc_droplet_create/oc_droplet_cleanup); grep confirms neither is reachable from any rented-path function.

So every rented drive against the default slug (rehearsal-b, scripts/lib/swarm-identity.sh:41) orders two fresh certs from a cold start, with no persistence between drives. Given recent drive volume against rehearsal-b (see 57d0fa5f, 641d7c07, f039ac0b — a phase-4 confirmation queue running repeated same-slug rented drives), the 5-cert/168h budget for that exact identifier set is exhausted, and this and any subsequent same-slug rented drive will red the same way until 2026-08-25 ~07:30-08:30 UTC (per the caddy log's own retry after timestamps).

What plugging it needs

  1. Immediate unblock for the queue: rotate REHEARSAL_SLUG for rented drives to a fresh identifier set (the sanctioned GOTCHAS #32 mitigation) — but this touches shared drive-queue/DNS state outside a single checkout, so it's a call for whoever owns the standing queue (docs/operator-app/rehearsal-drive.md), not something this healer should do unilaterally.
  2. Durable fix: port cert persistence to the rented path — call oc_droplet_harvest_certs-equivalent from oc_rented_cleanup (after oc_droplet_evidence, before teardown destroys the box) and a seed call once the rented IP is known and reachable but before the deploy leg lets Caddy start. Because VMMode never reformats, this can likely reuse the pre-#559, create-time-style staging (no need for the post-takeover gate-window worker) — but the exact hook point needs to be picked against the wizard's actual rent→pair→deploy timing (the box isn't created by this shell — the Playwright-driven wizard rents it mid-drive), which needs a design look, not a mechanical patch.

Not self-fixed: this needs a design decision about the seed/harvest hook timing on a path this healer can't create or verify (a live rented droplet + a real LE order), and touches the standing rehearsal-queue's shared slug state.

drive 20260824T003513Z red at activation: the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]
evidence: test-results/…/20260824T003513Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

## Failure Drive `20260824T003513Z` (rented target, `#720` phase-4 confirmation) reds at the `activation` leg after `deploy` runs and Caddy on the fresh droplet never binds `:443`. Every other leg is green; the deploy itself, evidence, and teardown all behaved correctly. The app's own failure frame is honest and working as designed (ADR 0100) — this is not a product bug. ## Evidence - `logs/droplet-caddy.txt` (harvested from the rented box) shows Caddy's ACME obtain failing on **every** retry with: `HTTP 429 urn:ietf:params:acme:error:rateLimited - too many certificates (5) already issued for this exact set of identifiers in the last 168h0m0s, retry after 2026-08-25 0[7-8]:xx UTC` — for both `rehearsal-b.idss.nz` and `*.rehearsal-b.idss.nz`. - This is the exact signature GOTCHAS #32 (`docs/GOTCHAS.md:843-892`) documents: LE production allows 5 certs per exact identifier set per rolling 168h, and every drive against the same slug spends 2 of that budget. - `internal/founding/deploy.go:1060-1071` bounds the public-door probe to 120×5s (~10 min) — correctly generous for a cold ACME issuance, but no budget helps here: the caddy log's own `retry after` timestamps are ~7-8 hours out, so the door was never going to answer inside any reasonable ceiling. - The founding-state log (`logs/founding-state.log:635-649`) records the honest `no_rollback` failure frame citing GOTCHAS #15, ADR 0014, #524 — correct diagnosis text, but the underlying acme-dns-registration/DNS-01 explanation it gives is one layer up from the real cause (LE rate-limiting), which only the caddy journal (not the app-visible failure detail) names. ## Root cause GOTCHAS #32 was fixed for the **own-VPS / takeover** droplet path only: `scripts/lib/rehearsal-droplet.sh` wires `oc_droplet_seed_certs` (called from `oc_droplet_create`, line 328) and `oc_droplet_harvest_certs` (called from `oc_droplet_cleanup`, line 88) so a green drive's Caddy store is harvested and re-seeded onto the next same-slug drive's box, spending zero new LE orders (#532/#559, ADR 0176). The **rented** target has no such wiring. `oc_rented_cleanup` (`scripts/lib/rehearsal-droplet.sh:563`) is the rented path's only teardown hook, and its own comment says why nothing was wired (lines 558-561): > "No cert-persist machinery: the rented gateway is VMMode (no takeover, DDR 0190), so nothing reformats the disk mid-drive — the whole #532/#559 seed dance is moot here." That reasoning conflates two different things. #559's fix was specifically about *timing* — the own-VPS FullInstall reformats the disk mid-drive (ADR 0024), so a store staged at create-time is wiped and has to be re-staged after takeover in the `#554` gate window. The **rented** VMMode path never reformats — which means the *original*, simpler #532 approach (stage the store onto the box before Caddy's first start) would actually work fine here; there's no reformat to race. But nobody ported it: `oc_droplet_seed_certs` / `oc_droplet_harvest_certs` are called only from the droplet-target functions (`oc_droplet_create`/`oc_droplet_cleanup`); grep confirms neither is reachable from any rented-path function. So every rented drive against the default slug (`rehearsal-b`, `scripts/lib/swarm-identity.sh:41`) orders two fresh certs from a cold start, with no persistence between drives. Given recent drive volume against `rehearsal-b` (see `57d0fa5f`, `641d7c07`, `f039ac0b` — a phase-4 confirmation queue running repeated same-slug rented drives), the 5-cert/168h budget for that exact identifier set is exhausted, and this and any subsequent same-slug rented drive will red the same way until 2026-08-25 ~07:30-08:30 UTC (per the caddy log's own `retry after` timestamps). ## What plugging it needs 1. **Immediate unblock for the queue**: rotate `REHEARSAL_SLUG` for rented drives to a fresh identifier set (the sanctioned GOTCHAS #32 mitigation) — but this touches shared drive-queue/DNS state outside a single checkout, so it's a call for whoever owns the standing queue (`docs/operator-app/rehearsal-drive.md`), not something this healer should do unilaterally. 2. **Durable fix**: port cert persistence to the rented path — call `oc_droplet_harvest_certs`-equivalent from `oc_rented_cleanup` (after `oc_droplet_evidence`, before teardown destroys the box) and a seed call once the rented IP is known and reachable but before the deploy leg lets Caddy start. Because VMMode never reformats, this can likely reuse the pre-#559, create-time-style staging (no need for the post-takeover gate-window worker) — but the exact hook point needs to be picked against the wizard's actual rent→pair→deploy timing (the box isn't created by this shell — the Playwright-driven wizard rents it mid-drive), which needs a design look, not a mechanical patch. Not self-fixed: this needs a design decision about the seed/harvest hook timing on a path this healer can't create or verify (a live rented droplet + a real LE order), and touches the standing rehearsal-queue's shared slug state. drive `20260824T003513Z` red at `activation`: `the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]` evidence: `test-results/…/20260824T003513Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 4c82deb1e678 -->
Owner

Note from the #720 loop (Ben's ruling 2026-08-24): the confirmation drives continue on rehearsal-c meanwhile, so this ticket no longer blocks #720. When wiring the rented harvest/seed, harvest from the FIRST rehearsal-c green (there is no rehearsal-b store to seed from — the green box was released with its certs, the kept red box never obtained any) so the third confirmation drive seeds instead of issuing. Keep-on-red worked as intended on this red: droplet-stall.txt + journal captured, box kept, then released by hand.

Note from the #720 loop (Ben's ruling 2026-08-24): the confirmation drives continue on `rehearsal-c` meanwhile, so this ticket no longer blocks #720. When wiring the rented harvest/seed, harvest from the FIRST `rehearsal-c` green (there is no `rehearsal-b` store to seed from — the green box was released with its certs, the kept red box never obtained any) so the third confirmation drive seeds instead of issuing. Keep-on-red worked as intended on this red: `droplet-stall.txt` + journal captured, box kept, then released by hand.
Author
Member

Ruled by agent under ADR 0174 — veto anytime

Ruling: port certificate persistence to the rented path now, without a live drive to prove it, and without touching the shared slug.

Why it is a two-way door: the whole change is one revertible commit in the drive harness (no product code, no security-posture change, no spend, no shared queue state), it is proven by a new offline test, and it ships with a kill switch (OC_RENTED_CERT_PERSIST=0) so an operator can stand it down mid-queue without editing anything. Item 1 of this ticket (rotate REHEARSAL_SLUG) was not taken — it is the queue owner's call and Ben already made it (rehearsal-c, comment above).

Landed: 4ad3e4bc — "the rented gateway had ZERO cert persistence; both halves now ride the drive, not its edges".


What the diagnosis missed, and it matters

The ticket's §2 proposed calling a harvest from oc_rented_cleanup. That cannot work. On a GREEN rented drive the journey's own release leg (journey.rented.spec.ts leg 12) has the broker destroy the box before oc_rented_cleanup runs — so a cleanup-time harvest reads a droplet that no longer exists. This is exactly why the walled rehearsal-b set had no store to fall back on: "the green box was released with its certs" (Ben, above). The harvest has to happen during the drive, not at its edge.

Same shape on the seed side: there is no create hook because the harness never creates the box.

So the rented path has no hooks to wire — which is why the gap survived review, and why "call oc_droplet_harvest_certs from oc_rented_cleanup" would have shipped a harvest that silently captured nothing on every green drive.

What shipped

Both halves ride one backgrounded worker, armed by scripts/smoke-private-path.sh before playwright fires (oc_rented_certs_arm / oc_rented_certs_worker, scripts/lib/rehearsal-droplet.sh):

  • Phase A — waits for the wizard-rent leg's own artifacts/droplet-ip.txt (the harness has no other way to learn the IP).
  • Phase B — seed, as soon as the box answers and caddy.service is not yet active. The whole rent→pair stretch is that window; the deploy leg closes it. The ticket's read was right that VMMode's no-reformat makes the original #532 shape work here — #559's re-timing exists only because the own-VPS FullInstall reformats (ADR 0024). One thing the ticket did not anticipate: the caddy user does not exist yet pre-deploy (the VMMode clan update creates it), so the seed chowns numerically to uid 239 and verifies with find ! -uid 239 rather than runuser -u caddy (#536's check has no user to run as).
  • Phase C — harvest the moment the gateway holds a *.crt, while the box is still alive, so release can no longer take the store down with it. It skips the harvest when the seed demonstrably took (zero creating new order lines on the box): the store already held is that gateway's store, and re-reading it can only downgrade it.

Also: oc_droplet_assert_zero_obtain now fires on this path too, so a seed that did not take is named on the drive that made it — never rediscovered a week later as a 429. Verdict lands in logs/cert-rented.txt. Stage/harvest are now shared primitives (oc_cert_stage_store / oc_cert_harvest_store) used by both targets, so what lands on a box and who owns it is written once.

Proof

scripts/tests/rehearsal-rented-certs-test.sh — 13 checks, red before green (the first run failed 127: the worker did not exist). Driven with a fake ssh on the shell, no broker, no droplet, no LE order:

  1. the wizard never rents → honest verdict, and the worker never dials the box;
  2. the pre-deploy seed stages into certmagic's storage root and chowns the whole StateDirectory to 239:239;
  3. caddy.service already active → missed window named, and nothing staged into a running gateway;
  4. a not-caddy-owned staged tree → FAILED, loud (the silent-absent failure mode);
  5. harvest captures the store while the box lives, into the per-slug dir;
  6. a drive whose seed took skips the redundant harvest;
  7. a certificate-less box harvests nothing and never supersedes the held store;
  8. cleanup reaps, surfaces and files the verdict, and does not re-harvest what the worker already captured — and reports it at most once (ordered call + EXIT trap);
  9. the fallback harvest does run for a box the worker never settled (the keep-on-red case);
  10. assert_zero_obtain now fires on the rented path;
  11. regression: the *.crt guard is unchanged;
  12. arm → worker → reap end to end through the REAL cmd/rehearsal-certstore adapter, so the layout facts cannot drift from the seam-tested internal/certpersist;
  13. the OC_RENTED_CERT_PERSIST=0 kill switch.

Neighbours re-run green: rehearsal-rented-target-test.sh (8), droplet-evidence-order-test.sh (3), go test ./internal/certpersist/... ./cmd/rehearsal-certstore/....

What is NOT proven, and why I did not prove it

No live rented drive was run from this session, deliberately. Live proof needs two rehearsal-c drives (first harvests, second seeds with zero new orders — grep-provable in droplet-caddy.txt), and Ben's #720 confirmation queue is already running exactly those drives; a session-launched drive would contend for the drive lock and collide with that queue's active rental (409 already has an active rental, #652). The queue's checkout syncs origin/main before each drive (rehearsal-cycle.sh:133), so it picks this up on its own.

Risk is staged in the right order: the next drive is the harvest-only case (no store held for rehearsal-c → seedable=0 → the worker only reads from the box, never writes). The seed half — the only part that writes to a live gateway before its deploy — first activates on the drive after a successful harvest. If it misbehaves, assert_zero_obtain says so on that drive, and OC_RENTED_CERT_PERSIST=0 stands it down.

Live confirmation is tracked as a follow-up so it cannot be lost.

Docs: GOTCHAS #32 amended (the rented gap, the no-hooks reason, the new rule), ADR 0176 extended with the rented deliverable, STATUS.md header updated in the same commit.

## Ruled by agent under ADR 0174 — veto anytime **Ruling:** port certificate persistence to the rented path now, without a live drive to prove it, and without touching the shared slug. **Why it is a two-way door:** the whole change is one revertible commit in the drive harness (no product code, no security-posture change, no spend, no shared queue state), it is proven by a new offline test, and it ships with a kill switch (`OC_RENTED_CERT_PERSIST=0`) so an operator can stand it down mid-queue without editing anything. Item 1 of this ticket (rotate `REHEARSAL_SLUG`) was **not** taken — it is the queue owner's call and Ben already made it (`rehearsal-c`, comment above). **Landed:** `4ad3e4bc` — *"the rented gateway had ZERO cert persistence; both halves now ride the drive, not its edges"*. --- ### What the diagnosis missed, and it matters The ticket's §2 proposed calling a harvest from `oc_rented_cleanup`. **That cannot work.** On a GREEN rented drive the journey's own `release` leg (`journey.rented.spec.ts` leg 12) has the broker destroy the box *before* `oc_rented_cleanup` runs — so a cleanup-time harvest reads a droplet that no longer exists. This is exactly why the walled `rehearsal-b` set had no store to fall back on: *"the green box was released with its certs"* (Ben, above). The harvest has to happen **during** the drive, not at its edge. Same shape on the seed side: there is no create hook because the harness never creates the box. So the rented path has **no hooks to wire** — which is why the gap survived review, and why "call `oc_droplet_harvest_certs` from `oc_rented_cleanup`" would have shipped a harvest that silently captured nothing on every green drive. ### What shipped Both halves ride **one backgrounded worker**, armed by `scripts/smoke-private-path.sh` *before* playwright fires (`oc_rented_certs_arm` / `oc_rented_certs_worker`, `scripts/lib/rehearsal-droplet.sh`): - **Phase A** — waits for the `wizard-rent` leg's own `artifacts/droplet-ip.txt` (the harness has no other way to learn the IP). - **Phase B — seed**, as soon as the box answers and `caddy.service` is **not yet active**. The whole rent→pair stretch is that window; the `deploy` leg closes it. The ticket's read was right that VMMode's no-reformat makes the *original* #532 shape work here — #559's re-timing exists only because the own-VPS FullInstall reformats (ADR 0024). One thing the ticket did not anticipate: **the `caddy` user does not exist yet pre-deploy** (the VMMode `clan update` creates it), so the seed chowns **numerically** to uid 239 and verifies with `find ! -uid 239` rather than `runuser -u caddy` (#536's check has no user to run as). - **Phase C — harvest** the moment the gateway holds a `*.crt`, **while the box is still alive**, so `release` can no longer take the store down with it. It **skips** the harvest when the seed demonstrably took (zero `creating new order` lines on the box): the store already held *is* that gateway's store, and re-reading it can only downgrade it. Also: `oc_droplet_assert_zero_obtain` now fires on this path too, so a seed that did not take is named **on the drive that made it** — never rediscovered a week later as a 429. Verdict lands in `logs/cert-rented.txt`. Stage/harvest are now shared primitives (`oc_cert_stage_store` / `oc_cert_harvest_store`) used by both targets, so what lands on a box and who owns it is written once. ### Proof `scripts/tests/rehearsal-rented-certs-test.sh` — **13 checks, red before green** (the first run failed 127: the worker did not exist). Driven with a fake `ssh` on the shell, no broker, no droplet, no LE order: 1. the wizard never rents → honest verdict, and the worker never dials the box; 2. the pre-deploy seed stages into certmagic's storage root **and** chowns the whole StateDirectory to `239:239`; 3. `caddy.service` already active → **missed window** named, and nothing staged into a running gateway; 4. a not-caddy-owned staged tree → **FAILED**, loud (the silent-absent failure mode); 5. harvest captures the store while the box lives, into the per-slug dir; 6. a drive whose seed took **skips** the redundant harvest; 7. a certificate-less box harvests nothing and never supersedes the held store; 8. cleanup reaps, surfaces and files the verdict, and does not re-harvest what the worker already captured — **and reports it at most once** (ordered call + EXIT trap); 9. the fallback harvest *does* run for a box the worker never settled (the keep-on-red case); 10. `assert_zero_obtain` now fires on the rented path; 11. regression: the `*.crt` guard is unchanged; 12. **arm → worker → reap end to end through the REAL `cmd/rehearsal-certstore` adapter**, so the layout facts cannot drift from the seam-tested `internal/certpersist`; 13. the `OC_RENTED_CERT_PERSIST=0` kill switch. Neighbours re-run green: `rehearsal-rented-target-test.sh` (8), `droplet-evidence-order-test.sh` (3), `go test ./internal/certpersist/... ./cmd/rehearsal-certstore/...`. ### What is NOT proven, and why I did not prove it **No live rented drive was run from this session, deliberately.** Live proof needs two `rehearsal-c` drives (first harvests, second seeds with zero new orders — grep-provable in `droplet-caddy.txt`), and Ben's #720 confirmation queue is already running exactly those drives; a session-launched drive would contend for the drive lock and collide with that queue's active rental (`409 already has an active rental`, #652). The queue's checkout syncs `origin/main` before each drive (`rehearsal-cycle.sh:133`), so it picks this up on its own. Risk is staged in the right order: **the next drive is the harvest-only case** (no store held for `rehearsal-c` → `seedable=0` → the worker only *reads* from the box, never writes). The seed half — the only part that writes to a live gateway before its deploy — first activates on the drive *after* a successful harvest. If it misbehaves, `assert_zero_obtain` says so on that drive, and `OC_RENTED_CERT_PERSIST=0` stands it down. Live confirmation is tracked as a follow-up so it cannot be lost. Docs: **GOTCHAS #32** amended (the rented gap, the no-hooks reason, the new rule), **ADR 0176** extended with the rented deliverable, `STATUS.md` header updated in the same commit.
Author
Member

Close report

Landed: 4ad3e4bc — session: #724 — the rented gateway had ZERO cert persistence; both halves now ride the drive, not its edges. Pushed to origin/main; the drive queue syncs it before its next drive (rehearsal-cycle.sh:133).

Harness scripts/lib/rehearsal-droplet.sh — oc_rented_certs_arm / oc_rented_certs_worker / oc_rented_certs_reap / oc_rented_harvest_fallback; shared oc_cert_stage_store / oc_cert_harvest_store now used by both targets
Executor scripts/smoke-private-path.sh — arms the worker before playwright fires (rented only)
Test scripts/tests/rehearsal-rented-certs-test.sh — 13 checks, red first (first run: exit 127, the worker did not exist)
Docs GOTCHAS #32 amended; ADR 0176 extended with the rented deliverable; STATUS.md header, same commit
Kill switch OC_RENTED_CERT_PERSIST=0

Proven: 13/13 offline (fake ssh on the shell — no broker, no droplet, no LE order), plus rehearsal-rented-target-test.sh 8/8, droplet-evidence-order-test.sh 3/3, go test ./internal/certpersist/... ./cmd/rehearsal-certstore/... green. Detail in the ruling comment above.

Not proven: no live rented drive ran from this session, deliberately — #720's confirmation queue was already driving rehearsal-c, and a session drive would have contended for the drive lock and collided with its rental. Live confirmation is #743 (ready-for-session, priority): drive 1 must end rented-cert-harvest: done, drive 2 must show grep -c 'creating new order' logs/droplet-caddy.txt == 0. The risk is staged correctly — the next drive is the read-only harvest-only case; the seed half first writes to a live gateway only on the drive after a successful harvest.

Ticket item 1 (rotate REHEARSAL_SLUG) not taken — the queue owner's call, and Ben already made it (rehearsal-c).

Filed, not fixed — #744: while establishing which SSH identity reaches a rented box before its deploy, a read-only probe of the live rental found /root/.ssh/authorized_keys carrying 18 keys, including every human on the DigitalOcean account. Both nix/gateway-image/configuration.nix ("the image bakes NO authorized key") and broker/internal/broker/provider.go ("the only key the box trusts") state the opposite. The golden snapshot appears to ship the build box's authorized_keys — #707's sibling, one file over. Out of scope here; filed with the evidence.

Closing: the durable fix this ticket asked for is landed, offline-proven and reversible, with its live confirmation tracked separately so it cannot be lost.

## Close report **Landed:** `4ad3e4bc` — *session: #724 — the rented gateway had ZERO cert persistence; both halves now ride the drive, not its edges*. Pushed to `origin/main`; the drive queue syncs it before its next drive (`rehearsal-cycle.sh:133`). | | | |---|---| | Harness | `scripts/lib/rehearsal-droplet.sh` — `oc_rented_certs_arm` / `oc_rented_certs_worker` / `oc_rented_certs_reap` / `oc_rented_harvest_fallback`; shared `oc_cert_stage_store` / `oc_cert_harvest_store` now used by **both** targets | | Executor | `scripts/smoke-private-path.sh` — arms the worker before playwright fires (rented only) | | Test | `scripts/tests/rehearsal-rented-certs-test.sh` — **13 checks, red first** (first run: exit 127, the worker did not exist) | | Docs | GOTCHAS #32 amended; ADR 0176 extended with the rented deliverable; `STATUS.md` header, same commit | | Kill switch | `OC_RENTED_CERT_PERSIST=0` | **Proven:** 13/13 offline (fake `ssh` on the shell — no broker, no droplet, no LE order), plus `rehearsal-rented-target-test.sh` 8/8, `droplet-evidence-order-test.sh` 3/3, `go test ./internal/certpersist/... ./cmd/rehearsal-certstore/...` green. Detail in the ruling comment above. **Not proven:** no live rented drive ran from this session, deliberately — #720's confirmation queue was already driving `rehearsal-c`, and a session drive would have contended for the drive lock and collided with its rental. Live confirmation is **#743** (`ready-for-session`, `priority`): drive 1 must end `rented-cert-harvest: done`, drive 2 must show `grep -c 'creating new order' logs/droplet-caddy.txt` == **0**. The risk is staged correctly — the next drive is the read-only harvest-only case; the seed half first writes to a live gateway only on the drive after a successful harvest. **Ticket item 1 (rotate `REHEARSAL_SLUG`) not taken** — the queue owner's call, and Ben already made it (`rehearsal-c`). **Filed, not fixed** — **#744**: while establishing which SSH identity reaches a rented box before its deploy, a read-only probe of the live rental found `/root/.ssh/authorized_keys` carrying **18 keys**, including every human on the DigitalOcean account. Both `nix/gateway-image/configuration.nix` ("the image bakes NO authorized key") and `broker/internal/broker/provider.go` ("the only key the box trusts") state the opposite. The golden snapshot appears to ship the build box's `authorized_keys` — #707's sibling, one file over. Out of scope here; filed with the evidence. Closing: the durable fix this ticket asked for is landed, offline-proven and reversible, with its live confirmation tracked separately so it cannot be lost.
matou-build-agent 2026-08-24 02:58:55 +00:00
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#724
No description provided.