founding: an own-domain gateway can never pass DNS-01 — the operator is never asked for the _acme-challenge CNAME to the gateway's acme-dns fulldomain #2186
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
2 participants
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#2186
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 happened
tu-ia rented founding (own domain
tech.tuia.co), app 2026.11.3426 ata5025990(#2185 fixed), 2026-11-10. Enrollment passed: the gateway built, copied and activated;acme-dns,acme-dns-register,caddyandidss-control-planeall active by 12:27, ports 53/80/443 open, acme-dns authoritative foracme.tech.tuia.co. But Caddy could not obtain either certificate:so :443 answered every SNI with
tlsv1 alert internal error(no cert yet), and the deploy's door probe would have redded as a "dead delegation" at the end of the first-boot budget.Why
Caddy's
dns acmednsprovider writes the TXT into the gateway's own acme-dns at the registered fulldomain (<uuid>.acme.<domain>, published as/var/lib/idss-acmedns/fulldomain). Let's Encrypt (and certmagic's propagation check) look up_acme-challenge.<domain>, which must be a CNAME to that fulldomain. On the subdomain path the broker writes that CNAME (PointSubdomain(host, ip, acmeChallenge, secret)— the five-record set, ADR 0118). On the own-domain path:gatewayDNSRecords(access.go) shows the operator four records:A,*. A,NS acme.,A acme-dns.— no_acme-challengeCNAME.acme-dns-registerhas run on the gateway.So an own-domain gateway can never pass DNS-01 out of the box. (On tu-ia I read the fulldomain fact over SSH and added
_acme-challenge.tech.tuia.co CNAME 0374e32e-….acme.tech.tuia.coby hand at Porkbun at 12:38; Caddy's next retry then has a path.)Fix
After enroll-activate on an own-domain carrier, read
clan.AcmeDNSFulldomainFact(the sameChallengeSourcethe subdomain path uses) and surface a fifth record to the operator —CNAME _acme-challenge.<domain> → <fulldomain>— with a "I've set it — verify" that polls the CNAME, BEFORE the deploy's door probe starts its first-boot budget (or pause the probe until it verifies). This is the same "ask for the record when the value exists" shape as #2184, which should fold the whole own-domain record set into one post-deploy step: IP-bearing records once the box is rented, the challenge CNAME once the gateway has registered. Until then the deploy's dead-delegation detail should name the missing CNAME and its target for an own-domain apex instead of "the five-record PutRecords set" (which is the broker's).Related: #2185, #2184, ADR 0014, ADR 0118, GOTCHAS #27/#28,
internal/founding/access.gogatewayDNSRecords,internal/founding/standup.goown-domain branch of the point stage,internal/fleetwire/challenge.go.Ruled by agent under ADR 0174 — veto anytime.
Category:
bug. State:needs-design. Also marked blocked by #2184.Recommendation
The bug is real and confirmed in code — an own-domain gateway can never pass DNS-01 out of the box.
Verification (confirmed against the tree at HEAD)
gatewayDNSRecords(internal/founding/access.go, the "exact record set for an own domain (ADR 0014)") surfaces exactly four records: apexA, wildcard*. A,NS acme.<domain> → acme-dns.<domain>, and theA acme-dns.<domain>glue. No_acme-challenge.<domain>CNAME. Same set is recomputed with the real IP instandup.go's own-domain point branch.standup.gocallso.acmeChallenge(...)thenPointSubdomain(..., challenge, ...)(internal/brokerclient/client.go), the broker delegating_acme-challenge.<slug>to the gateway's acme-dns fulldomain (ADR 0118 — the five-record set).ChallengeSource/clan.AcmeDNSFulldomainFact(internal/fleetwire/challenge.go); that read is reachable only from the subdomain branch._acme-challengeCNAME post-enrollment. Every challenge/CNAME reference is gated onAddressSubdomain. Not already mitigated.So LE/certmagic look up
_acme-challenge.<domain>, find no CNAME into the gateway's acme-dns zone, propagation times out, and:443answers every SNI withtlsv1 alert internal error— exactly as reported on tu-ia.Why
needs-design(notready-for-agent)The fix is a UI/flow change — "surface a fifth record with an 'I've set it — verify' that polls the CNAME, before the door probe's first-boot budget." A design contract exists for this step (
docs/ux/flows/p1-founding.mermaid; the record display atdocs/ux/wireframes/p1-founding/p1-s10-reachability-and-name.html,data-field="dns-records"), but it encodes only the four-record set — it renders "✓ found (3 of 4)" with no_acme-challengeCNAME row and no post-enroll "poll the CNAME" verify affordance. The contract the agent would build against does not yet cover the fix, so this routes back togrill-ux-with-docs/wireframefor the founding feature to add the fifth record row and define the verify interaction (and its ordering relative to the door probe).Why blocked by #2184
#2186 states its fix should "fold the whole own-domain record set into one post-deploy step" — which is exactly #2184's proposal (move "set these records" + verify to after the deployment has an IP). #2184 is itself
needs-design. Where the challenge CNAME row lands and how its verify polls depend on that redesign, so #2186 is wired blocked by #2184 to keep the coupling explicit in the DAG.Why this is a two-way door
needs-designis a label and a native dependency edge — both revertible by a later label/edge change, and the routing is provable (once the wireframe/DDR adds the CNAME row, a live own-domain founding drive proves the cert obtains). Not on the one-way-door list. Veto anytime by relabelling.sh -cover ssh — the remote shell re-parses the words,sh -c gitprints usage and the flip faults (Retry then faults at the mv) #2188sh -cover ssh — the remote shell re-parses the words,sh -c gitprints usage and the flip faults (Retry then faults at the mv) #2188Design landed in DDR 0303. Re-triaged
needs-design→ready-for-agentBen ruled the design in the 2026-11-19 interview (DDR 0303 d.1, d.5, d.6, d.10; frame
docs/ux/wireframes/p1-founding/p1-s11d-domain-records.html). The_acme-challengeCNAME is the fifth row of the records step that #2184 builds, shown once the gateway has registered, so all five are asked for in one registrar visit. This ticket stays blocked by #2184, because that's a real build order, not a design one.Task manifest
Blocked — the dependency #2184's build has not landed on
main#2186 extends the S11d own-domain records step: the manifest asks me to append the fifth row
(
CNAME _acme-challenge.<domain> → <fulldomain>) to the records state built by #2184, read thefulldomain at entry to that state through
ChallengeSource, wire itsRecordsVerifier, and havedeadDoorFailureoffer Check my records again (re-enter S11d).out_of_scopeexplicitly excludes"the four IP rows and the step itself (#2184)", and rule 4 forbids reimplementing a dependency.
The surface to extend is not present on
origin/main. Atorigin/main=bff1092d:c6f9cb2d— DDR 0303 +p1-s11d-domain-records.html).internal/founding/domainrecords.go,app/src/components/founding/FoundingStandupDomainRecords.vue,the
StandupDomainRecordsstate,RecordsVerifier/CheckDomainRecords— all absent.internal/founding/access.gostill carries the old S5 flow:SetOwnDomainreturns the four-recordset and advances straight to Review;
gatewayDNSRecords(domain, ip)is four records, two args.#2184 is closed as an issue (closed 2026-11-19T17:37:48Z) and its close-report envelope names the build
files, but as a
push-landing ticket its build commit has not yet been promoted tomain(no17:3xworker branch is visible on origin, and the files are absent from the
origin/maintree). This is abuild-order race, not a design gap: there is no S11d component in this checkout to append the CNAME row to.
What a human / the queue must do to re-arm
Once #2184's build commit is on
origin/main(sointernal/founding/domainrecords.goandFoundingStandupDomainRecords.vueexist), re-addready-for-agent. The next iteration can then appendthe fifth CNAME row, wire the fulldomain read + verifier, and extend
deadDoorFailureon the own-domainapex as the manifest specifies.
Re-armed: #2184's build is on
mainat75812e3f(internal/founding/domainrecords.goandFoundingStandupDomainRecords.vueare present), so the build-order race this block named is gone.agent-blocked→ready-for-agent.swarm-claim host=bens-mac-04 run=67477
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2186 — verdict
unauthenticatedreview JSON
close-report for #2186 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261119181944-1702612(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope