own-VPS DNS-01 still times out post-#505: Caddy's first obtain races the heartbeat's first acme-challenge re-point, and later retries fail too #508
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#508
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?
Failure
Same terminal signature as GOTCHAS #27 (
8d0cd71d20a2), which #505 (commit782ecbb) was meant to close:finish faulted: the gateway deploy failed — ... There is no old operating system to roll back to. This is the verification drive STATUS.md called for after #505 landed, and it still reds.Run:
test-results/drive-droplet/20260814T034341Z/Evidence
logs/founding-state.log— deploysteps:meshdone,public-entryfailed,control-plane/dashboard/brand/adminall done.failure.detail: "https://id.rehearsal.idss.nz did not answer over TLS within the first-boot cold-start budget — acme-dns registration and the DNS-01 wildcard issuance gate Caddy's :443 listener (GOTCHAS #15, ADR 0014)".logs/droplet-journal.txt:1142—acme-dns-register.serviceFinished at 03:50:26 (the #431/#502 race and bind fixes are holding — registration succeeds fast, no repeat of GOTCHAS #15/#26).logs/droplet-journal.txt:1474-1478— control-plane's address heartbeat wires successfully (OURCLOUD_CLAIM_SECRETpresent — #505's fix is live) and fires its first re-point at 03:51:11 ("gateway address changed, community record re-pointed", ip=170.64.131.18).logs/droplet-journal.txt:1145— Caddy starts at ~03:50:26, i.e. before the heartbeat's first re-point.logs/droplet-journal.txt:1620-1635— Caddytls.obtainfails three times, each "waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate":acme-v02.api.letsencrypt.org-directory(production) toacme-staging-v02.api.letsencrypt.org-directory(staging). Nothing ininternal/clan/frontdoor.go/ the renderedfront-door.nixconfigures a staging fallback issuer — worth confirming whether this is stock Caddy failover behavior or evidence of stale/var/lib/caddystate carried over on a reused lab droplet.legs.json—finishred at 606443ms, exhausting the full 120×5s public-entry probe budget.Suspected layer
Cross-cutting between:
caddy.servicestarts (gated only onacme-dns-register.service,internal/clan/acmedns.go:190-199), which is well beforecontrol-plane's address heartbeat (internal/heartbeat/heartbeat.go, wired incontrol-plane/cmd/control-plane/main.go:459-500) gets a chance to run its first tick and publish the real_acme-challengeCNAME target.broker/internal/broker/zone.go'sCloudflareZone.PutRecords(zone.go:172-207) writes the_acme-challengeCNAME butpollPublication(zone.go:207,zone.go:374-399) only polls the A record before returning success. The heartbeat'sRepoint(and thus its "re-pointed" log line) can report success while the CNAME's own public propagation is still unverified — so attempts 2 and 3 failing well after the write is unexplained by the current code path.What plugging it needs
A design decision among (not mutually exclusive):
acme-dns-register.service— e.g. don't let Caddy attempt DNS-01 until the founding/control-plane side has confirmed at least one successful acme-challenge re-point (a new readiness fact/unit dependency), rather than relying on the heartbeat's first tick racing Caddy's boot.pollPublication(or add a sibling check) to verify the_acme-challengeCNAME specifically resolves to the expected target beforeRepoint/PutRecordsreports success, so "re-pointed" in the journal is trustworthy.Recent healer history on this signature already resisted one heal (drive
20260813T035722Zfixed only the test's ability to detect this failure, explicitly noting the underlying infra fault was "not swarm-actionable from this checkout"), and #505's fix — while real and working — did not fully close it on this verification drive. Filing per the healer's self-fix gate: not mechanical, not verifiable on this machine, and likely needs a ruling on which of the above approaches to take.drive
20260814T034341Zred atfinish:finish faulted: the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]evidence:
test-results/…/20260814T034341Z/on matou-workstation (legs.json, droplet-journal.txt, trace)The race is the minor half — the PRIMARY defect is a never-written NS delegation (plus wildcard shadowing)
The "later retries fail too" observation is the tell. Chain, verified in code + drive-10 evidence:
_acme-challenge.<slug>CNAME was plausibly written.<uuid>.acme.rehearsal.idss.nz— acme-dns's own zone (gateway_attach.go:196:Zone: "acme."+Apex,NSName: "acme-dns."+Apex). acme-dns serves that zone authoritatively on the gateway's public :53 (drive 10: all listeners up).PutRecords(broker/internal/broker/zone.go:180) writes exactly three records —<slug>A,*.<slug>CNAME,_acme-challenge.<slug>CNAME. It never writes the delegation the acme zone needs in the parent:acme.<slug>.idss.nz NS acme-dns.<slug>.idss.nz+acme-dns.<slug>.idss.nz A <gateway-ip>. (ownvpspath.go:481's "the broker/acme-dns compose the real live set from these facts" is another intended-but-unbuilt seam — the third this arc.)acme.<slug>node in the zone,*.<slug> CNAME <slug>matches<uuid>.acme.<slug>(RFC 1034 wildcard semantics), so LE's/certmagic's propagation probe resolves the challenge name to the APEX — which serves no TXT — and fails forever. That is exactly Caddy'stimed out waiting for record to fully propagateon every attempt, first and retried alike.Fix
broker/internal/broker/zone.goPutRecords: whenAcmeChallengeis supplied, ALSO upsertacme.<slug>NS →acme-dns.<slug>andacme-dns.<slug>A →rec.IP(the IP is already in the request). The explicitacme.<slug>delegation node also ends the wildcard shadowing for the subtree.DeleteRecordsremoves both on offboard (no leftovers, ADR 0128). Unit tests pin the five-record set challenge-present and the three-record set challenge-absent.⚠ Deploy gate (human step — the swarm cannot do this)
The LIVE broker on the mail droplet is build
b85e341and runs from/usr/local/bin/ourcloud-broker— landing this in the repo does NOT change the deployed service. After the code lands, the broker must be REBUILT AND REDEPLOYED before any drive can green. Do not close #492's blocker chain on the repo landing alone — comment here when the code is on main and a human (Ben or the watching session) will do the redeploy + confirm.swarm-claim host=matou-dev-server-01 run=5853
(automated multi-host claim — lowest live claim id works this ticket)
Code landed on
mainasc3ad8f7. Per Ben's ruling:broker/internal/broker/zone.goPutRecordsnow upserts the acme-dns delegation —acme.<slug> NS acme-dns.<slug>+acme-dns.<slug> A <gateway-ip>— alongside the_acme-challenge.<slug>CNAME whenever a challenge is supplied (five-record set present, two absent; the explicitacme.<slug>node also ends the*.<slug>wildcard shadowing of the subtree).DeleteRecordsremoves both on offboard. Seam tests pin the five/two record sets and the delete. GOTCHAS #28 + STATUS.md updated. The Caddy-boot-precedes-first-repoint race (~45s) is left as-is — certmagic's own retry absorbs it once propagation CAN succeed.⚠ Deploy gate (human — not swarm-actionable): the LIVE broker runs from
/usr/local/bin/ourcloud-brokerand is NOT changed by this repo landing. The broker must be REBUILT AND REDEPLOYED before the next own-VPS verification drive can green. Do not treat #492's blocker chain as closed on the repo landing alone — a human (Ben or the watching session) does the redeploy + confirm.close-report for #508 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope