front-door: acme-dns-registration — gateway-side acme-dns + the per-boot registration that writes OURCLOUD_ACMEDNS_* #252
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.
Dependencies
No dependencies set.
Reference
Matou/idss#252
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?
Parent
Front-door epic #219 — its rendered DNS-01 block reads a unit environment nothing writes (#219 comment, 2026-07-31). ADR 0014 (LE wildcard via self-hosted acme-dns), ADR 0118 + Ben's #219 ruling of 2026-07-31 (the standing lab delegation).
What's true today
front-door.nix(landed27e08c0) pins thecaddy-dns/acmednsprovider with resolvers1.1.1.1 8.8.8.8and readsOURCLOUD_ACMEDNS_*unit environment — credentials no step produces. This flow was explicitly scoped out of broker #234: the broker writes the_acme-challenge.<slug>CNAME whose target is "the community's acme-dns registration"; the registration itself is gateway-side.acme.<domain>NS + glue to the gateway (internal/founding/access.go).acme.clan-lab.matou.nzNS →ns.acme.clan-lab.matou.nzis a standing delegation for a self-hosted acme-dns on the lab droplet, mirroring theacme.dev.matou.nzprecedent; thelab-dnstoken covers exactly the glue A and the_acme-challenge.clan-labCNAME.What to build
The gateway-side acme-dns half:
acme.<domain>zone (the thing founding's NS + glue records already point at) — declarative, in the gateway machine dir only.OURCLOUD_ACMEDNS_*unit environment Caddy's DNS-01 block reads, ordered so the environment exists before Caddy first needs it._acme-challengeCNAME writer (broker #234 on the rented path; thelab-dnsskill on the lab) can point the challenge CNAME at it.Acceptance criteria
OURCLOUD_ACMEDNS_*is populated before Caddy attempts issuance (unit ordering, not luck)Task manifest
Blocks
The live wildcard smoke proving #219 AC-3 needs this and the sibling
front-door: gateway-attachticket; that smoke lives in the #183 leg B·3 arena — left unlinked from #183 for Ben to judge, per #219's own precedent.Landed in
2697d43onmain.clan.RenderAcmeDNS(internal/clan/acmedns.go) renders the gateway machine dir'sacme-dns.nix— a pure render mirroringRenderFrontDoor, so a later provisioning slice writes it under the clan single-writer (ADR 0102):acme.<domain>zone founding's NS + glue already point at: public 53 (LE's resolver follows the delegation here) with SOA/NS/glue records; the register/update HTTP API bound to127.0.0.1only — no public-DNS credential leaves the box (the manifest interface). AC-1 serve side.StateDirectory(stable challenge-CNAME target — AC-2), and (re)publishes every boot both theOURCLOUD_ACMEDNS_*env Caddy reads (0600; the same four constantsfrontdoor.godefines, so the halves cannot drift) and the world-readablefulldomainfact the_acme-challengeCNAME writer points at.before caddy.serviceand pulled in by it (AC-1); CaddyRequiresit with a non-optionalEnvironmentFile, andjq -e/set -euo pipefail/exit 1on a failed register or bad account, so a missing/failed registration fails issuance loud — no silent hang, no fallback to a public DNS provider (AC-3).Seam:
internal/clan/acmedns_test.go(8 rendered-config assertions). STATUS.md updated (header lead + milestone log).Out of scope / still open: the
_acme-challengeCNAME writes (broker #234 / lab-dns), the provision-time attach (sibling #251), the live lab smoke (#183 leg B·3).