founding: own-domain DNS records keep the placeholder IP — never regenerated once the gateway IP is known #323

Closed
opened 2026-08-07 17:32:32 +00:00 by ben · 2 comments
Owner

gatewayDNSRecords (internal/founding/access.go:471-487) builds the four records an own-domain operator must type at their registrar. Three of the four carry the gateway IP:

A   <domain>          -> gateway IP
A   *.<domain>        -> gateway IP
NS  acme.<domain>     -> acme-dns.<domain>
A   acme-dns.<domain> -> gateway IP

When the IP is unknown the value becomes the literal string "(your gateway's IP — filled once the access IP is known)" with IPKnown:false (access.go:473-476).

On the self-hosted path no IP exists at S5 — RunPreCheck persists an AccessChoice with no IP (access.go:309-312). The IP only becomes known at pairing, where Standup.GatewayIP is set exactly once (internal/founding/standup.go:481).

Nothing regenerates the records after that. A self-hosting operator on their own domain is shown three records containing a placeholder sentence and is never shown the real values, so the wildcard, apex and acme-dns glue never get set correctly.

Definition of done

Once the gateway IP is known, the operator is shown the real record set — with a decision on where that surfaces (S10 is the natural home, since it already owns name-wiring). The placeholder path stays honest for the case where the IP genuinely is not known yet.


Found 2026-08-07 while scoping home-gateway reachability (dynamic address / automatic port opening / IPv6). Full trace in docs/research/2026-08-07-home-gateway-reachability-scope.md.

`gatewayDNSRecords` (`internal/founding/access.go:471-487`) builds the four records an own-domain operator must type at their registrar. Three of the four carry the gateway IP: ``` A <domain> -> gateway IP A *.<domain> -> gateway IP NS acme.<domain> -> acme-dns.<domain> A acme-dns.<domain> -> gateway IP ``` When the IP is unknown the value becomes the literal string `"(your gateway's IP — filled once the access IP is known)"` with `IPKnown:false` (`access.go:473-476`). On the **self-hosted** path no IP exists at S5 — `RunPreCheck` persists an `AccessChoice` with no IP (`access.go:309-312`). The IP only becomes known at pairing, where `Standup.GatewayIP` is set exactly once (`internal/founding/standup.go:481`). **Nothing regenerates the records after that.** A self-hosting operator on their own domain is shown three records containing a placeholder sentence and is never shown the real values, so the wildcard, apex and acme-dns glue never get set correctly. ## Definition of done Once the gateway IP is known, the operator is shown the real record set — with a decision on where that surfaces (S10 is the natural home, since it already owns name-wiring). The placeholder path stays honest for the case where the IP genuinely is not known yet. --- Found 2026-08-07 while scoping home-gateway reachability (dynamic address / automatic port opening / IPv6). Full trace in `docs/research/2026-08-07-home-gateway-reachability-scope.md`.
Author
Owner

This was generated by AI during triage.

Verified: gatewayDNSRecords(domain, ip) confirmed to substitute a placeholder string and set IPKnown:false when ip is empty. Confirmed it's called with s.Draft.gatewayIP() at the address step, before the self-hosted path's IP is known. Confirmed Standup.GatewayIP is set exactly once, at pairing, and grepped for any second call site recomputing the record set afterward — none found. Also confirmed the codebase already has an established "S10" screen (reachability + name-wiring) distinct from the address step where the placeholder is shown today, matching the ticket's own suggestion for where this belongs. Claim holds.

Agent Brief

Category: bug
Summary: Regenerate own-domain DNS records with the real gateway IP once it's known, and surface them on the name-wiring screen.

Current behavior:
The own-domain DNS record set (apex A, wildcard A, acme-dns NS delegation, acme-dns glue A) is built once, early in founding, before the self-hosted path's gateway IP is known — so it's built with IPKnown:false and a placeholder sentence in place of every IP-bearing value. The gateway IP only becomes known later, once, at pairing. Nothing recomputes the record set after that point, so a self-hosting operator on their own domain is never shown the real values.

Desired behavior:
Once the gateway IP is known, the operator is shown the real record set (real IP values, IPKnown:true) on the screen that already owns reachability + name-wiring — not the earlier address-step screen, which should keep showing the honest placeholder for the case where the IP genuinely isn't known yet.

Key interfaces:

  • gatewayDNSRecords(domain, ip) / the DomainRecords type it returns — reusable as-is; the gap is that nothing calls it a second time with the now-known IP.
  • The gateway IP field that becomes non-empty exactly once, at pairing — that transition is the trigger point for recomputing the record set.
  • Whichever view/seam already renders reachability + name-wiring for the public/own-domain case is the natural carrier for the recomputed records.

Acceptance criteria:

  • After the gateway IP becomes known, an own-domain operator's name-wiring screen shows the real A/NS record values, not the placeholder sentence.
  • Before the IP is known, the placeholder text and IPKnown:false behavior is unchanged (no regression on the honest-placeholder path).
  • A test covers both states — pre-IP placeholder and post-IP real values — for an own-domain community.
  • The acme-dns glue record follows the same known/placeholder rule as the other three records.

Out of scope:

  • Any DNS records for the broker-managed subdomain path — this ticket is own-domain only.
  • The _acme-challenge CNAME wiring (tracked separately as #324).
> *This was generated by AI during triage.* **Verified:** `gatewayDNSRecords(domain, ip)` confirmed to substitute a placeholder string and set `IPKnown:false` when `ip` is empty. Confirmed it's called with `s.Draft.gatewayIP()` at the address step, before the self-hosted path's IP is known. Confirmed `Standup.GatewayIP` is set exactly once, at pairing, and grepped for any second call site recomputing the record set afterward — none found. Also confirmed the codebase already has an established "S10" screen (reachability + name-wiring) distinct from the address step where the placeholder is shown today, matching the ticket's own suggestion for where this belongs. Claim holds. ## Agent Brief **Category:** bug **Summary:** Regenerate own-domain DNS records with the real gateway IP once it's known, and surface them on the name-wiring screen. **Current behavior:** The own-domain DNS record set (apex A, wildcard A, acme-dns NS delegation, acme-dns glue A) is built once, early in founding, before the self-hosted path's gateway IP is known — so it's built with `IPKnown:false` and a placeholder sentence in place of every IP-bearing value. The gateway IP only becomes known later, once, at pairing. Nothing recomputes the record set after that point, so a self-hosting operator on their own domain is never shown the real values. **Desired behavior:** Once the gateway IP is known, the operator is shown the real record set (real IP values, `IPKnown:true`) on the screen that already owns reachability + name-wiring — not the earlier address-step screen, which should keep showing the honest placeholder for the case where the IP genuinely isn't known yet. **Key interfaces:** - `gatewayDNSRecords(domain, ip)` / the `DomainRecords` type it returns — reusable as-is; the gap is that nothing calls it a second time with the now-known IP. - The gateway IP field that becomes non-empty exactly once, at pairing — that transition is the trigger point for recomputing the record set. - Whichever view/seam already renders reachability + name-wiring for the public/own-domain case is the natural carrier for the recomputed records. **Acceptance criteria:** - [ ] After the gateway IP becomes known, an own-domain operator's name-wiring screen shows the real A/NS record values, not the placeholder sentence. - [ ] Before the IP is known, the placeholder text and `IPKnown:false` behavior is unchanged (no regression on the honest-placeholder path). - [ ] A test covers both states — pre-IP placeholder and post-IP real values — for an own-domain community. - [ ] The acme-dns glue record follows the same known/placeholder rule as the other three records. **Out of scope:** - Any DNS records for the broker-managed subdomain path — this ticket is own-domain only. - The `_acme-challenge` CNAME wiring (tracked separately as #324).
Author
Owner

Fixed in 1848a75 (on origin/main).

The own-domain record set is now recomputed with the real gateway IP once it is known, on the S10 name-wiring screen — the screen that already owns reachability + name-wiring.

  • Seam: wireName (internal/founding/standup.go, AddressOwnDomain case) recomputes gatewayDNSRecords(host, ip) with the now-known Standup.GatewayIP and carries it on a new ReachStatus.Records (deep-copied in Standup.clone). The stdio wire boundary serialises it snake→camel like every other field.
  • UI: FoundingReachability.vue renders the records under the same data-field="dns-records" row contract the S5 FoundingAddress screen uses; a shared ownDomainRecords(domain, ip) helper mirrors the Go builder in the browser fake so S5 and S10 stay in step.

Acceptance:

  • After the gateway IP is known, the name-wiring screen shows the real A/NS values (incl. the acme-dns glue A) — not the placeholder sentence. ✅
  • The S5 placeholder path (IPKnown:false) is unchanged when the IP genuinely is not known yet. ✅
  • Both states are seam-tested for an own-domain community: TestStory323_ReachabilitySurfacesOwnDomainRecordsWithKnownIP (standup_test.go) covers pre-IP placeholder + post-IP real values; a component test in foundingSpecGateReachability.test.ts covers the S10 render (and that the subdomain path shows none). ✅
  • The acme-dns glue A follows the same known/placeholder rule as the other three (asserted in both tests). ✅

Out of scope, untouched: the broker-managed subdomain path and the _acme-challenge CNAME (#324). go build/vet/test, vue-tsc, and eslint green.

Fixed in 1848a75 (on `origin/main`). The own-domain record set is now recomputed with the real gateway IP once it is known, on the S10 name-wiring screen — the screen that already owns reachability + name-wiring. - **Seam:** `wireName` (`internal/founding/standup.go`, `AddressOwnDomain` case) recomputes `gatewayDNSRecords(host, ip)` with the now-known `Standup.GatewayIP` and carries it on a new `ReachStatus.Records` (deep-copied in `Standup.clone`). The stdio wire boundary serialises it snake→camel like every other field. - **UI:** `FoundingReachability.vue` renders the records under the same `data-field="dns-records"` row contract the S5 `FoundingAddress` screen uses; a shared `ownDomainRecords(domain, ip)` helper mirrors the Go builder in the browser fake so S5 and S10 stay in step. **Acceptance:** - After the gateway IP is known, the name-wiring screen shows the real A/NS values (incl. the acme-dns glue A) — not the placeholder sentence. ✅ - The S5 placeholder path (`IPKnown:false`) is unchanged when the IP genuinely is not known yet. ✅ - Both states are seam-tested for an own-domain community: `TestStory323_ReachabilitySurfacesOwnDomainRecordsWithKnownIP` (`standup_test.go`) covers pre-IP placeholder + post-IP real values; a component test in `foundingSpecGateReachability.test.ts` covers the S10 render (and that the subdomain path shows none). ✅ - The acme-dns glue A follows the same known/placeholder rule as the other three (asserted in both tests). ✅ Out of scope, untouched: the broker-managed subdomain path and the `_acme-challenge` CNAME (#324). `go build/vet/test`, `vue-tsc`, and eslint green.
ben closed this issue 2026-08-07 20:12:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#323
No description provided.