front door: gate Caddy's first start on the acme delegation being live — TTL-60 narrowed but cannot close the DNS-01 poisoning race; + harvest certs on red (finish reds 003509Z vs 234251Z discriminating pair) #554
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#554
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
20260815T003509Zred at finish with the #547 signature BACK: 12 propagation timeouts, both identifiers, wildcard never issued,id.rehearsal-bnever answered. The TTL-60 fix (#547, broker live since 23:40Z — this drive's records verified ttl=60) improved the odds but did NOT close the race: drive234251Zcleared finish (6 timeouts then success), this one never converged. Discriminating pair, one variable.Why TTL-60 cannot be sufficient (the #547 amendment, comment 8286)
The poisoning window is structural: Caddy starts ordering ~100s before the heartbeat writes the real
_acme-challengeCNAME. Early propagation polls through the pinned resolvers cache the wildcard-synthesized chain — and the TXT lookups produce NODATA answers that negative-cache per Cloudflare's SOA minimum (RFC 2308), not per our record TTL. A poisoned cache node can serve that negative answer for ~30 min regardless of the 60s records. Each drive is a coin flip on which anycast nodes the checker lands on.Fix directed (two halves, both this ticket)
1. Close the poisoning window — gate Caddy's first start on the delegation being live. Render-side (enrollment.go/frontdoor.go family): an ordered oneshot between
acme-dns-registerandcaddythat pollsdig +short CNAME _acme-challenge.<apex> @1.1.1.1(and@8.8.8.8) until it returns the acme-dns fulldomain the register just published. Bounded ~5 min, FAIL-OPEN with a loud journal line (the door must never deadlock on a broker outage). The heartbeat writes the CNAME ~90s after boot, so the gate typically waits <2 min and saves every wasted early ACME attempt. Seam test on the rendered unit graph + the poll script's fail-open.2. Stop wasting issued certs — harvest the Caddy store on ANY drive that has one, not green-only.
scripts/lib/rehearsal-droplet.shgatesoc_droplet_harvest_certson green;234251Zissued a REAL wildcard cert, then red'd at files-healthy, and the cert died with the droplet — an LE exact-set order wasted (2 of 5/168h now burned for rehearsal-b, GOTCHAS #32) and the next drive left racing again. Harvest whenever the droplet's Caddy store contains certificates; the seed half (#532) already handles the rest. With this, even a red-after-issuance run makes every subsequent drive skip issuance entirely.Evidence
test-results/drive-droplet/20260815T003509Z/logs/droplet-caddy.txt: 12×timed out waiting for record to fully propagate, identifiers*.rehearsal-b.idss.nz×3 orders +rehearsal-b.idss.nz×3.234251Zsame logs: 6 timeouts then wildcard issued, finish cleared — same TTL-60 records (CF-verified), different cache luck.Real-founding relevance: half 1 is a first-founding UX defect for every own-VPS community (stock founding fails ~half the time at the last step); half 2 is rehearsal-only.
swarm-claim host=elitebook-distributed-server-03 run=6523
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #554 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
_acme-challengedelegation is written once at control-plane boot and never retried — a lost race against acme-dns-register leaves a permanently dead TLS door (#915's fix is a no-op on this path) #921_acme-challengedelegation never written — TLS door dead #922