rehearsal: the cert seed announces success but Caddy sees empty storage and orders anyway — verify the staged store lands at certmagic's real path/ownership (023713Z hit the LE wall only because the seed silently failed) #559
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#559
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?
What breaks
Drive
20260815T023713Zred at finish — but NOT the race (zero propagation timeouts; the #554 gate held Caddy until the delegation was live on both pinned resolvers, then released — third consecutive proof). The cause is the LE exact-set wall (GOTCHAS #32):HTTP 429 rateLimited — too many certificates (5) already issued … retry after 2026-08-16 03:32:04 UTCon every new-order attempt, both identifiers.The wall only bit because the cert seed silently failed. The executor's own log for this run:
…and 60 seconds after Caddy started it logged
creating new order: attempt 1for BOTH identifiers — certmagic saw an empty storage. The store itself is good:test-results/cert-store/rehearsal-b/certificates/acme-v02…/holds wildcard + apex.crt/.key/.jsonplus theacme/account dir (harvested from014915Zat 01:57).Fix directed
Find and close the gap between "seeded" and what Caddy actually reads on the installed system, then make the seed VERIFIED rather than announced:
/var/lib/caddy/.local/share/caddy— services.caddy runs ascaddy, storage under its$HOME): exact path layout, and ownership/modes after staging (a root-staged tree certmagic can't read ascaddyis treated as absent, silently). Check the staging TIMING too — the store must exist before Caddy's first start (the #554 gate window is the natural slot; if the seed rides the install's extra-files, verify where those land post-takeover).caddyuser that the certificate files are readable at the exact certmagic paths; after Caddy starts, assert the obtain-count for the seeded identifiers is ZERO (onejournalctl -u caddygrep) — a seed that didn't take must red the seed step loudly, never let the drive discover it via a 429.Why this matters beyond the wall
With a working seed, a same-slug drive contacts LE ZERO times — the 168h budget stops being spent at all, and the wall (which stands until 2026-08-16 03:32 UTC for rehearsal-b) is bypassed on the very next drive. No slug rotation needed. (Rotation to
rehearsal-cstays the manual fallback if this proves deeper — REHEARSAL_SLUG env — but it burns a fresh LE set and loses the banked certs.)Frontier tooth of #492 (blocks it — a re-drive before this lands is a guaranteed 429 red). Evidence:
test-results/drive-droplet/20260815T023713Z/logs/droplet-caddy.txt(21 lines, all 429s), executor log seed section, cert-store listing above.Triage pass on issue-open (headless CI).
bug(a live drive regression: the certseed reports success but Caddy's certmagic storage sees it as empty and
orders fresh certs, tripping the LE rate-limit wall).
ready-for-agent+priority(auto-wired as a #492blocker) and the ticket is already claimed (
agent-working,swarm-claim
host=matou-dev-server-01 run=6587) — leaving thatassignment untouched rather than re-triaging work in flight.
(
internal/certpersist/decide.go,scripts/lib/rehearsal-droplet.sh) —the code this issue targets exists and matches the described behavior;
no existing fix supersedes this report, so it is not already-implemented.
.out-of-scope/entry resembles this request (it's a bug report, nota feature ask).
carries no
needs_human_decisionlist, so the design-tier gates indocs/agents/triage-labels.mddon't route this toneeds-design/ready-for-human.evidence (log excerpt, cert-store listing, drive test-results path), so
no additional agent-brief comment is posted — the issue body itself
serves that role.
swarm-claim host=elitebook-distributed-server-03 run=6596
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #559 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
oc_droplet_assert_zero_obtaingreps a caddy journal that the release leg already destroyed — a 2-line file makes #559's guard always say "the seed took" #747