carlos / platform Public

console: steering CNAME for subdomains under ingress

8a3d302 ruling after Astra R3 (option 1, the cut Astra offered): drop
per-app CNAME targets. Every non-apex custom domain keeps today's CNAME
at edge.<apps-domain>, now also under CONSOLE_REGION_INGRESS, with the
ingress union as its A alternative; apexes keep ingress A records. The
domains door rows, including catch-all heads, gain cname_target. Per-app
targets on a verified DNS path are a follow-up branch after G3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e1ebcc57779c3582334855e59d82db57b5154f43 parent dfc74b5
12 files changed, +222 −488
  • docs/site/cli.md +3 −2
  • internal/console/apidomains.go +7 −8
  • internal/console/apphost_guidance_test.go +0 −354
  • internal/console/appsettings.go +1 −1
  • internal/console/domaincatchall.go +0 −2
  • internal/console/domainstate.go +4 −4
  • internal/console/server.go +10 −17
  • internal/console/steering_ingress_test.go +169 −0
  • internal/console/view.go +16 −88
  • internal/domains/{cname_apphost_test.go => cname_steering_test.go} +7 −7
  • internal/edge/{cname_apphost_test.go => cname_steering_test.go} +4 −4
  • internal/provision/plan9_b8_census_test.go +1 −1

CI passed — run details

Intent

Attributed to this commit: 96.3 g CO₂e (8,625,640 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on cname-app-host, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/site/cli.md b/docs/site/cli.md
index c289a7d63..c5a22399a 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -1372,7 +1372,8 @@ created** — you do not have to ask. Static is the one kind every edge can
serve on its own, straight from the channel pointer, so there is no reason
for one edge to answer for all of them. `off` turns it back off if you want
a single answer, and nothing re-applies the default to a host that already
-exists. A custom domain's DNS is yours, so steering cannot change it for you. Point a CNAME for it at the app's own hostname, which the app's Settings page names, and it follows that hostname's steering.
+exists. Custom domains are not steered for you, because their DNS is yours:
+point them at the steering hostname the app's Settings page names.
### carlos routes
@@ -1516,7 +1517,7 @@ When the deployment uses configured regional ingress, set `CONSOLE_REGION_INGRES
Before rolling the console, validate the complete `CONSOLE_REGION_INGRESS` value. Verify that the agents accept the same addresses through `PLATFORM_EDGE_IPS` before setting `CONSOLE_REGION_INGRESS`. Set the console ingress before any group box publishes an edges file.
-With configured ingress, an apex domain's advice names the configured public ingress addresses for its A records. A subdomain's advice is still a CNAME to the app's own hostname. `carlos domains placements` refuses configured high availability placements while regional placement readiness is unavailable. The refusal names the configured public ingress addresses and does not list member addresses.
+With configured ingress, DNS guidance uses A records for both apexes and subdomains. `carlos domains placements` refuses configured high availability placements while regional placement readiness is unavailable. The refusal names the configured public ingress addresses and does not list member addresses.
The root CLI help still says that `carlos domains placements` shows the addresses to point DNS at for each region. That help remains unchanged. The configured-ingress refusal limits that promise until regional placement readiness is available.
diff --git a/internal/console/apidomains.go b/internal/console/apidomains.go
index d1bf9e2ca..18ef11bff 100644
--- a/internal/console/apidomains.go
+++ b/internal/console/apidomains.go
@@ -1267,10 +1267,10 @@ type domainListItem struct {
CertExpiresAt int64 `json:"cert_expires_at,omitempty"`
Guidance string `json:"guidance,omitempty"`
// CNAMETarget is the name Guidance tells the member to CNAME this host
- // at: the app's own host (view.go's appHostFor) where the deployment
- // publishes app hosts, else the legacy steering hostname. Set exactly
- // when Records carries the CNAME alternative; omitted for an apex, for
- // A-record-only advice and when there is nothing to do. Additive.
+ // at (cnameTarget, view.go): the deployment's steering hostname, set
+ // exactly when Records carries the CNAME alternative. Omitted for an
+ // apex, for A-record-only advice and when there is nothing to do.
+ // Additive.
CNAMETarget string `json:"cname_target,omitempty"`
// Wildcard and Catchall (Task 5) copy the claim's own capability bits
// verbatim — always present, true or false, the same "known state"
@@ -1463,13 +1463,12 @@ func (s *Server) domainItem(ctx context.Context, c domains.Claim, readings map[s
item.Guidance, item.Detail = s.configuredRegionalGuidance(ctx, c)
item.Records = delegationRecords(c.Host, c.Wildcard, s.delegationZone)
case item.DNSStatus != "pointing" && item.DNSStatus != "unresolved":
- bound := targets.forApp(c.Host, c.Route)
- item.Guidance = domainGuidance(c.Host, bound)
+ item.Guidance = domainGuidance(c.Host, targets)
// The structured form of the SAME advice, emitted under exactly the
// same condition so the two can never disagree about whether there is
// anything for the member to do.
- item.Records = domainRecords(c.Host, bound, c.Wildcard, s.delegationZone)
- item.CNAMETarget = cnameTarget(c.Host, bound)
+ item.Records = domainRecords(c.Host, targets, c.Wildcard, s.delegationZone)
+ item.CNAMETarget = cnameTarget(c.Host, targets)
}
if c.Pending {
// The proof record, in BOTH forms, under the same lockstep rule as
diff --git a/internal/console/apphost_guidance_test.go b/internal/console/apphost_guidance_test.go
deleted file mode 100644
index 75095644b..000000000
--- a/internal/console/apphost_guidance_test.go
+++ /dev/null
@@ -1,354 +0,0 @@
-package console
-
-import (
- "context"
- "encoding/json"
- "net/http"
- "strings"
- "testing"
- "time"
-
- "github.com/carlosframework/platform/internal/domains"
- "github.com/carlosframework/platform/internal/registry"
- "github.com/carlosframework/platform/internal/release"
-)
-
-// Which name a custom domain is told to CNAME at: the route it aliases, when
-// that is a name under the apps domain. Never a name built from spelling
-// alone (Astra R1 P1: an unrouted apex may have no address), never a sidecar
-// or member name, never anything on a deployment that does not publish app
-// hosts, and nothing for a name that is already one of ours.
-func TestAppHostFor(t *testing.T) {
- const d = "oncarlos.test"
- for _, c := range []struct {
- name, domain, host, route, want string
- }{
- {"unpublished deployment names nothing", "", "shop.example.com", "eu.bab.oncarlos.test", ""},
- {"route under the apps domain is the app host", d, "shop.example.com", "eu.bab.oncarlos.test", "eu.bab.oncarlos.test"},
- {"route case and trailing dot fold", d, "shop.example.com", "EU.Bab.oncarlos.test.", "eu.bab.oncarlos.test"},
- {"first-route claim names nothing", d, "shop.example.com", "", ""},
- {"route that is another custom name names nothing", d, "www.example.com", "shop.example.com", ""},
- {"sidecar member name is never public", d, "shop.example.com", "m1.blog.bab.sidecar.internal", ""},
- {"a wildcard route is never a target", d, "shop.example.com", "*.bab.oncarlos.test", ""},
- {"the apps domain itself is not an app host", d, "shop.example.com", "oncarlos.test", ""},
- {"a look-alike suffix is not under the apps domain", d, "shop.example.com", "blog.bab.notoncarlos.test", ""},
- {"a name already under the apps domain gets nothing", d, "www.bab.oncarlos.test", "blog.bab.oncarlos.test", ""},
- } {
- t.Run(c.name, func(t *testing.T) {
- if got := appHostFor(c.domain, c.host, c.route); got != c.want {
- t.Errorf("appHostFor(%q, %q, %q) = %q, want %q", c.domain, c.host, c.route, got, c.want)
- }
- })
- }
-}
-
-// The deployment publishes app hosts exactly when it steers: the converger
-// that keeps their records is armed by the same pair (CARLOS_STEERING_ZONE_ID
-// and PLATFORM_APPS_DOMAIN) that gives the console its steering hostname.
-// Configured ingress does not change that.
-func TestDNSTargetsPublishAppHostsWhenSteering(t *testing.T) {
- for _, c := range []struct {
- name string
- s *Server
- want string
- ingress bool
- steering string
- }{
- {"self-hosted: no apps domain", &Server{}, "", false, ""},
- {"apps domain without steering", &Server{cfg: Config{AppsDomain: "oncarlos.test"}}, "", false, ""},
- {"steering armed", &Server{cfg: Config{AppsDomain: " OnCarlos.test "}, steeringHost: "edge.oncarlos.test"}, "oncarlos.test", false, "edge.oncarlos.test"},
- {"steering armed with configured ingress keeps the steering host", &Server{cfg: Config{AppsDomain: "oncarlos.test", RegionIngress: []string{ingressIP}}, steeringHost: "edge.oncarlos.test"}, "oncarlos.test", true, "edge.oncarlos.test"},
- {"configured ingress without an apps domain drops steering as before", &Server{cfg: Config{RegionIngress: []string{ingressIP}}, steeringHost: "edge.oncarlos.test"}, "", true, ""},
- } {
- t.Run(c.name, func(t *testing.T) {
- c.s.foldEdgeIPs = func(context.Context) []string { return nil }
- got := c.s.dnsTargets(context.Background())
- if got.AppsDomain != c.want || got.ConfiguredIngress != c.ingress || got.SteeringHost != c.steering || got.AppHost != "" {
- t.Errorf("dnsTargets = %+v, want apps domain %q, ingress %v, steering %q, no row host", got, c.want, c.ingress, c.steering)
- }
- })
- }
-}
-
-// A subdomain is told to CNAME at its app host on every published
-// deployment, configured ingress or not. The sentence and the records say
-// the same thing, and the A alternative is the same IP set as before.
-// Apexes keep exactly today's advice.
-func TestGuidanceNamesTheAppHost(t *testing.T) {
- ips := []string{"203.0.113.7", "198.51.100.9"}
- const appHost = "blog.bab.oncarlos.test"
- steered := DNSTargets{EdgeIPs: ips, SteeringHost: "edge.oncarlos.test", AppsDomain: "oncarlos.test"}
- ingress := DNSTargets{EdgeIPs: []string{ingressIP}, ConfiguredIngress: true, AppsDomain: "oncarlos.test"}
- for name, base := range map[string]DNSTargets{"steered": steered, "configured ingress": ingress} {
- t.Run(name, func(t *testing.T) {
- bound := base.forApp("shop.example.com", appHost)
- if bound.AppHost != appHost {
- t.Fatalf("bound app host = %q", bound.AppHost)
- }
- g := domainGuidance("shop.example.com", bound)
- if !strings.HasPrefix(g, "Point a CNAME for shop.example.com at "+appHost+",") {
- t.Errorf("guidance = %q, want the CNAME to the app host first", g)
- }
- if strings.Contains(g, "edge.oncarlos.test") {
- t.Errorf("guidance still names the steering host: %q", g)
- }
- if got := cnameTarget("shop.example.com", bound); got != appHost {
- t.Errorf("cnameTarget = %q, want %q", got, appHost)
- }
- var cname []dnsRecord
- for _, r := range domainRecords("shop.example.com", bound, false, "") {
- switch r.Type {
- case "CNAME":
- cname = append(cname, r)
- case "A":
- if r.Set != "a" || !strings.Contains(strings.Join(base.EdgeIPs, ","), r.Value) {
- t.Errorf("A record %+v is not from the deployment's set %v", r, base.EdgeIPs)
- }
- }
- }
- if len(cname) != 1 || cname[0].Value != appHost || cname[0].Set != "cname" || cname[0].TTL != domainRecordTTL {
- t.Errorf("CNAME records = %+v, want one at %s", cname, appHost)
- }
- // The apex keeps today's advice, byte for byte.
- apexBound := base.forApp("example.com", appHost)
- unbound := base
- if got, want := domainGuidance("example.com", apexBound), domainGuidance("example.com", unbound); got != want {
- t.Errorf("apex guidance changed:\n got %q\n want %q", got, want)
- }
- if got := cnameTarget("example.com", apexBound); got != "" {
- t.Errorf("apex offered a CNAME target %q", got)
- }
- for _, r := range domainRecords("example.com", apexBound, false, "") {
- if r.Type == "CNAME" {
- t.Errorf("apex offered a CNAME: %+v", r)
- }
- }
- })
- }
-}
-
-// A deployment that does not publish app hosts (self-hosted, devbox) keeps
-// exactly today's wording even when a row binds an app.
-func TestGuidanceUnpublishedDeploymentUnchanged(t *testing.T) {
- ips := []string{"203.0.113.7"}
- for _, base := range []DNSTargets{{EdgeIPs: ips}, {}, {EdgeIPs: ips, SteeringHost: "edge.oncarlos.test"}, {EdgeIPs: ips, ConfiguredIngress: true}} {
- for _, host := range []string{"shop.example.com", "example.com"} {
- bound := base.forApp(host, "blog.bab.oncarlos.test")
- if got, want := domainGuidance(host, bound), domainGuidance(host, base); got != want {
- t.Errorf("%+v %s: guidance %q, want unchanged %q", base, host, got, want)
- }
- if bound.AppHost != "" {
- t.Errorf("%+v: bound an app host %q on an unpublished deployment", base, bound.AppHost)
- }
- }
- }
- if got := cnameTarget("shop.example.com", DNSTargets{SteeringHost: "edge.oncarlos.test"}); got != "edge.oncarlos.test" {
- t.Errorf("legacy steering CNAME target = %q", got)
- }
- if got := cnameTarget("shop.example.com", DNSTargets{EdgeIPs: ips}); got != "" {
- t.Errorf("no steering, no app host: cname target %q", got)
- }
-}
-
-// The domains API, the Settings page and the app page all name the same app
-// host for the same claim, with configured ingress on: the route's own name
-// when it is under the apps domain, the app's apex for a first-route claim.
-func TestDomainSurfacesAgreeOnTheAppHost(t *testing.T) {
- fx, member := instanceFixture(t, "code-dom-apphost")
- fx.srv.cfg.AppsDomain = "oncarlos.test"
- fx.srv.cfg.EdgeIPs = []string{"192.0.2.1"}
- fx.srv.cfg.RegionIngress = []string{ingressIP}
- fx.srv.steeringHost = "edge.oncarlos.test"
- ctx := context.Background()
- sqid := release.OpsAccount
- acct, err := fx.st.AccountBySqid(sqid)
- if err != nil || acct == nil {
- t.Fatalf("account: %v %v", acct, err)
- }
- instHost := "eu." + "titogo." + sqid + ".oncarlos.test"
- apex := "titogo." + sqid + ".oncarlos.test"
- attachShopClaim(t, fx, sqid, "titogo", "shop.example.com", instHost)
- attachShopClaim(t, fx, sqid, "titogo", "first.example.com", "")
- attachShopClaim(t, fx, sqid, "titogo", "example.com", instHost)
- // first.example.com has no route yet: no served name of its own, so it
- // keeps today's CNAME at the steering host, configured ingress or not.
- want := map[string]string{"shop.example.com": instHost, "first.example.com": "edge.oncarlos.test", "example.com": ""}
-
- code, _, out := rawReq(t, http.MethodGet, domainsURL(fx, "bab", "titogo"), member, "")
- if code != http.StatusOK {
- t.Fatalf("list = %d %s", code, out)
- }
- var got struct {
- Domains []struct {
- Host string `json:"host"`
- Guidance string `json:"guidance"`
- CNAMETarget string `json:"cname_target"`
- Records []dnsRecord `json:"records"`
- } `json:"domains"`
- Deployment struct {
- SteeringHost string `json:"steering_host"`
- EdgeIPs []string `json:"edge_ips"`
- } `json:"deployment"`
- }
- if err := json.Unmarshal([]byte(out), &got); err != nil {
- t.Fatal(err)
- }
- seen := 0
- for _, d := range got.Domains {
- w, ok := want[d.Host]
- if !ok {
- continue
- }
- seen++
- if d.CNAMETarget != w {
- t.Errorf("%s cname_target = %q, want %q", d.Host, d.CNAMETarget, w)
- }
- if w != "" && !strings.HasPrefix(d.Guidance, "Point a CNAME for "+d.Host+" at "+w) {
- t.Errorf("%s guidance = %q", d.Host, d.Guidance)
- }
- if w == "" && strings.Contains(d.Guidance, "CNAME for") {
- t.Errorf("apex %s guidance offers a CNAME: %q", d.Host, d.Guidance)
- }
- for _, r := range d.Records {
- if r.Type == "CNAME" && r.Value != w {
- t.Errorf("%s CNAME record %+v, want %q", d.Host, r, w)
- }
- }
- }
- if seen != len(want) {
- t.Fatalf("saw %d of %d claims in %s", seen, len(want), out)
- }
- if len(got.Deployment.EdgeIPs) == 0 {
- t.Errorf("deployment block lost edge_ips: %s", out)
- }
-
- // The per-host door answers the same.
- code, _, out = rawReq(t, http.MethodGet, domainGetURL(fx, "bab", "titogo", "shop.example.com"), member, "")
- if code != http.StatusOK || !strings.Contains(out, `"cname_target":"`+instHost+`"`) {
- t.Errorf("per-host door = %d %s, want cname_target %s", code, out, instHost)
- }
- _ = apex
-
- // Settings rows for claims with no registry row yet.
- views := fx.srv.settingsDomains(withReqMemo(ctx), acct, "titogo", nil)
- for _, dv := range views {
- w, ok := want[dv.Domain]
- if !ok {
- continue
- }
- if w != "" && !strings.HasPrefix(dv.Guidance, "Point a CNAME for "+dv.Domain+" at "+w) {
- t.Errorf("settings %s guidance = %q", dv.Domain, dv.Guidance)
- }
- }
-
-}
-
-// The app page's custom routes have no served route of their own: they keep
-// today's CNAME at the steering host under configured ingress, and never
-// name the app's apex, routed or not (8a3d302 ruling, after Astra R1/R2: a
-// registry route is not DNS publication).
-func TestAppPageCustomRouteKeepsTheSteeringHost(t *testing.T) {
- fx := newConsoleFixture(t)
- fx.srv.cfg.AppsDomain = "carlosapp.dev"
- fx.srv.cfg.EdgeIPs = []string{"192.0.2.1"}
- fx.srv.cfg.RegionIngress = []string{ingressIP}
- fx.srv.steeringHost = "edge.carlosapp.dev"
- fx.addRoute(t, registry.Route{Host: "www.example.com", Kind: "instance", Status: "ready", App: "kass", Account: release.OpsAccount, DNSStatus: "elsewhere"})
- fx.addRoute(t, registry.Route{Host: "kass.bab.carlosapp.dev", Kind: "instance", Status: "ready", App: "kass", Platform: true, Account: release.OpsAccount, DNSStatus: "pointing"})
- c := signInPaul(t, fx)
- _, _, body := get(t, c, fx.u("/apps/kass/settings/domains"))
- if !strings.Contains(body, "Point a CNAME for www.example.com at edge.carlosapp.dev.") || strings.Contains(body, "www.example.com at kass.bab.carlosapp.dev") {
- t.Fatalf("custom route: want the steering host CNAME, got:\n%s", body)
- }
-}
-
-// The approved wording (copy review 2026-11-08), with and without a known
-// address set.
-func TestAppHostGuidanceWording(t *testing.T) {
- t.Parallel()
- bound := DNSTargets{EdgeIPs: []string{"203.0.113.10", "203.0.113.11"}, ConfiguredIngress: true, AppsDomain: "oncarlos.com"}.forApp("shop.example.com", "blog.k3x.oncarlos.com")
- if got, want := domainGuidance("shop.example.com", bound), "Point a CNAME for shop.example.com at blog.k3x.oncarlos.com, your app's own address. Visitors then reach the nearest edge, and the record keeps working if the app moves. An A record for shop.example.com at 203.0.113.10, 203.0.113.11 also works, but it sends visitors to fixed addresses that may change later. Checks run every few minutes."; got != want {
- t.Errorf("with addresses:\n got %q\n want %q", got, want)
- }
- bare := DNSTargets{SteeringHost: "edge.oncarlos.com", AppsDomain: "oncarlos.com"}.forApp("shop.example.com", "blog.k3x.oncarlos.com")
- if got, want := domainGuidance("shop.example.com", bare), "Point a CNAME for shop.example.com at blog.k3x.oncarlos.com, your app's own address. Visitors then reach the nearest edge, and the record keeps working if the app moves. Checks run every few minutes."; got != want {
- t.Errorf("without addresses:\n got %q\n want %q", got, want)
- }
-}
-
-// A claim with no served route of its own (a first-route claim, a claim
-// aliasing another custom name, an instance catch-all) keeps today's CNAME at
-// the steering host under configured ingress, and names the app's apex even
-// when that apex is routed (8a3d302 ruling: no apex guess).
-func TestRoutelessClaimsKeepTheSteeringHost(t *testing.T) {
- fx, member := instanceFixture(t, "code-dom-apphost-apex")
- fx.srv.cfg.AppsDomain = "oncarlos.test"
- fx.srv.cfg.EdgeIPs = []string{"192.0.2.1"}
- fx.srv.cfg.RegionIngress = []string{ingressIP}
- fx.srv.steeringHost = "edge.oncarlos.test"
- sqid := release.OpsAccount
- apex := "titogo." + sqid + ".oncarlos.test"
- attachShopClaim(t, fx, sqid, "titogo", "first.example.com", "")
- attachShopClaim(t, fx, sqid, "titogo", "raw.example.com", "example.com")
- if _, _, err := domains.AttachClaim(context.Background(), fx.rel, domains.Claim{
- Host: "*.app.example.com", Account: sqid, App: "titogo", Instances: true,
- CreatedAt: time.Now().UTC().Format(time.RFC3339),
- }); err != nil {
- t.Fatal(err)
- }
- fx.addRoute(t, registry.Route{Host: apex, Kind: "instance", Status: "ready", App: "titogo", Platform: true, Account: sqid})
- code, _, out := rawReq(t, http.MethodGet, domainsURL(fx, "bab", "titogo"), member, "")
- if code != http.StatusOK {
- t.Fatalf("list = %d %s", code, out)
- }
- var got struct {
- Domains []struct {
- Host string `json:"host"`
- Guidance string `json:"guidance"`
- CNAMETarget string `json:"cname_target"`
- Records []dnsRecord `json:"records"`
- } `json:"domains"`
- Deployment struct {
- SteeringHost string `json:"steering_host"`
- } `json:"deployment"`
- }
- if err := json.Unmarshal([]byte(out), &got); err != nil {
- t.Fatal(err)
- }
- seen := 0
- for _, d := range got.Domains {
- switch d.Host {
- case "first.example.com", "raw.example.com", "*.app.example.com":
- default:
- continue
- }
- seen++
- want := "Point a CNAME for " + d.Host + " at edge.oncarlos.test. The steering service chooses a healthy edge. An A record for " + d.Host + " at 192.0.2.1, " + ingressIP + " also works. It distributes requests across the listed edges without choosing by location. Checks run every few minutes."
- if d.CNAMETarget != "edge.oncarlos.test" || d.Guidance != want {
- t.Errorf("%s: cname_target %q guidance %q, want the steering host and %q", d.Host, d.CNAMETarget, d.Guidance, want)
- }
- for _, r := range d.Records {
- if r.Type == "CNAME" && r.Value != "edge.oncarlos.test" {
- t.Errorf("%s CNAME record %+v", d.Host, r)
- }
- if r.Type == "A" && r.Value != "192.0.2.1" && r.Value != ingressIP {
- t.Errorf("%s A record %+v outside the ingress union", d.Host, r)
- }
- }
- }
- if seen != 3 {
- t.Fatalf("saw %d of 3 rows in %s", seen, out)
- }
- if got.Deployment.SteeringHost != "edge.oncarlos.test" {
- t.Errorf("deployment steering_host = %q", got.Deployment.SteeringHost)
- }
- acct, err := fx.st.AccountBySqid(sqid)
- if err != nil || acct == nil {
- t.Fatal(err)
- }
- for _, dv := range fx.srv.settingsDomains(withReqMemo(context.Background()), acct, "titogo", nil) {
- if dv.Domain == "first.example.com" && !strings.HasPrefix(dv.Guidance, "Point a CNAME for first.example.com at edge.oncarlos.test.") {
- t.Errorf("settings first.example.com guidance = %q", dv.Guidance)
- }
- }
-}
diff --git a/internal/console/appsettings.go b/internal/console/appsettings.go
index 1d8366a5a..8984a5dbc 100644
--- a/internal/console/appsettings.go
+++ b/internal/console/appsettings.go
@@ -763,7 +763,7 @@ func (s *Server) settingsDomains(ctx context.Context, acct *Account, app string,
}
continue
}
- dv := claimDomainView(c.Host, s.dnsTargets(ctx).forApp(c.Host, c.Route))
+ dv := claimDomainView(c.Host, s.dnsTargets(ctx))
dv.State, dv.Reason, dv.Detail = state(c)
if c.Regional() {
dv.Guidance, dv.Detail = s.configuredRegionalGuidance(ctx, c)
diff --git a/internal/console/domaincatchall.go b/internal/console/domaincatchall.go
index 690b37745..de9752f53 100644
--- a/internal/console/domaincatchall.go
+++ b/internal/console/domaincatchall.go
@@ -361,8 +361,6 @@ func (s *Server) catchallListItems(ctx context.Context, acct *Account, app strin
if !pointing {
// The wildcard record is what makes every label resolve here; the
// guidance for "*.<parent>" says exactly that.
- // No one instance's name can stand for every label, so the
- // catch-all keeps the steering hostname (cnameTarget).
head.Guidance = domainGuidance(c.Host, targets)
head.Records = domainRecords(c.Host, targets, false, "")
head.CNAMETarget = cnameTarget(c.Host, targets)
diff --git a/internal/console/domainstate.go b/internal/console/domainstate.go
index 1cfd1f4ba..9c5c304e0 100644
--- a/internal/console/domainstate.go
+++ b/internal/console/domainstate.go
@@ -213,10 +213,10 @@ const domainRecordTTL = 300
// disagreed, an app would create records that contradict the sentence shown
// to the person operating it.
//
-// The CNAME alternative is emitted ONLY when steering is armed (cnameTarget):
-// the row's app host where one is bound, else edge.<apps-domain>. Both exist
-// only where the steering converger maintains its records; on a non-steering
-// deployment naming either would hand out a hostname nobody keeps.
+// The alias/CNAME alternative is emitted ONLY when steering is armed.
+// edge.<apps-domain> exists only where the steering converger maintains its
+// records; on a non-steering deployment naming it would hand out a hostname
+// with no records behind it.
func domainRecords(host string, t DNSTargets, wildcard bool, delegationZone string) []dnsRecord {
var out []dnsRecord
if target := cnameTarget(host, t); target != "" {
diff --git a/internal/console/server.go b/internal/console/server.go
index a62ff4b03..5804e7885 100644
--- a/internal/console/server.go
+++ b/internal/console/server.go
@@ -1630,28 +1630,21 @@ func (s *Server) chrome(p *page) {
// point DNS. ctx is the caller's request: a fold refresh it waits for is
// counted against that request (see foldedEdgeIPs).
func (s *Server) dnsTargets(ctx context.Context) DNSTargets {
- // App hosts are published where the deployment steers: steeringHost is
- // set only when CARLOS_STEERING_ZONE_ID and PLATFORM_APPS_DOMAIN both
- // are, and the converger they arm keeps the app hosts' records.
- var apps string
- if s.steeringHost != "" {
- apps = strings.ToLower(strings.TrimSuffix(strings.TrimSpace(s.cfg.AppsDomain), "."))
- }
if len(s.cfg.RegionIngress) > 0 {
- // Configured ingress replaces the A-record set, not the CNAMEs. A
- // subdomain still CNAMEs at its app host, or at the steering
- // hostname when it has no served route of its own (8a3d302 ruling,
- // 2026-11-08). Both follow the steering records, which hold fixed
- // boxes only (group members are never steering targets, G3-F4) and
- // until the load balancer becomes the public front door (G5) are
- // the same fixed addresses the ingress set names.
+ // Configured ingress replaces the A-record set, not the steering
+ // CNAME. A subdomain still CNAMEs at the steering hostname where the
+ // deployment steers (8a3d302 ruling, 2026-11-08): the converger keeps
+ // it, it holds fixed boxes only (group members are never steering
+ // targets, G3-F4), and until the load balancer becomes the public
+ // front door (G5) its records are the same fixed addresses the
+ // ingress set names. A records go to the ingress union, as before.
var steer string
- if apps != "" {
+ if strings.TrimSpace(s.cfg.AppsDomain) != "" {
steer = s.steeringHost
}
- return DNSTargets{EdgeIPs: s.edgeIPs(ctx), ConfiguredIngress: true, SteeringHost: steer, AppsDomain: apps}
+ return DNSTargets{EdgeIPs: s.edgeIPs(ctx), ConfiguredIngress: true, SteeringHost: steer}
}
- return DNSTargets{EdgeIPs: s.edgeIPs(ctx), SteeringHost: s.steeringHost, AppsDomain: apps}
+ return DNSTargets{EdgeIPs: s.edgeIPs(ctx), SteeringHost: s.steeringHost}
}
// edgeIPs is the DNS address union. Configured ingress is deployment-wide:
diff --git a/internal/console/steering_ingress_test.go b/internal/console/steering_ingress_test.go
new file mode 100644
index 000000000..5cd681782
--- /dev/null
+++ b/internal/console/steering_ingress_test.go
@@ -0,0 +1,169 @@
+package console
+
+import (
+ "context"
+ "encoding/json"
+ "net/http"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/domains"
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// Configured ingress replaces the A-record set, not the steering CNAME
+// (8a3d302 ruling, 2026-11-08): where the deployment steers, a subdomain is
+// still told to CNAME at the steering hostname. Without an apps domain the
+// steering hostname means nothing and is dropped, as before.
+func TestConfiguredIngressKeepsTheSteeringHost(t *testing.T) {
+ for _, c := range []struct {
+ name string
+ s *Server
+ want string
+ }{
+ {"steering with an apps domain", &Server{cfg: Config{AppsDomain: "oncarlos.test", RegionIngress: []string{ingressIP}}, steeringHost: "edge.oncarlos.test"}, "edge.oncarlos.test"},
+ {"no apps domain", &Server{cfg: Config{RegionIngress: []string{ingressIP}}, steeringHost: "edge.oncarlos.test"}, ""},
+ {"no steering", &Server{cfg: Config{AppsDomain: "oncarlos.test", RegionIngress: []string{ingressIP}}}, ""},
+ } {
+ t.Run(c.name, func(t *testing.T) {
+ got := c.s.dnsTargets(context.Background())
+ if !got.ConfiguredIngress || got.SteeringHost != c.want {
+ t.Fatalf("dnsTargets = %+v, want ingress with steering host %q", got, c.want)
+ }
+ })
+ }
+}
+
+// Under configured ingress a subdomain gets today's steering-CNAME advice
+// with the ingress union as its A alternative; an apex keeps the ingress
+// A-record advice. Sentence, records and cname_target agree.
+func TestConfiguredIngressGuidanceOffersTheSteeringCNAME(t *testing.T) {
+ s := &Server{cfg: Config{AppsDomain: "oncarlos.test", EdgeIPs: []string{"192.0.2.1"}, RegionIngress: []string{ingressIP}}, steeringHost: "edge.oncarlos.test"}
+ targets := s.dnsTargets(context.Background())
+ union := "192.0.2.1, " + ingressIP
+ for host, want := range map[string]string{
+ "shop.example.com": "Point a CNAME for shop.example.com at edge.oncarlos.test. The steering service chooses a healthy edge. An A record for shop.example.com at " + union + " also works. It distributes requests across the listed edges without choosing by location. Checks run every few minutes.",
+ "*.app.example.com": "Point a CNAME for *.app.example.com at edge.oncarlos.test. The steering service chooses a healthy edge. An A record for *.app.example.com at " + union + " also works. It distributes requests across the listed edges without choosing by location. Checks run every few minutes.",
+ "example.com": "example.com is an apex domain and cannot use a CNAME. Point its A record at the configured public ingress addresses: " + union + ". Checks run every few minutes.",
+ "example.co.uk": "example.co.uk is an apex domain and cannot use a CNAME. Point its A record at the configured public ingress addresses: " + union + ". Checks run every few minutes.",
+ } {
+ if got := domainGuidance(host, targets); got != want {
+ t.Errorf("%s:\n got %q\n want %q", host, got, want)
+ }
+ apex := isApexDomain(host)
+ if got := cnameTarget(host, targets); (got == "") != apex || (!apex && got != "edge.oncarlos.test") {
+ t.Errorf("%s cnameTarget = %q", host, got)
+ }
+ cnames := 0
+ for _, r := range domainRecords(host, targets, false, "") {
+ switch r.Type {
+ case "CNAME":
+ cnames++
+ if r.Value != "edge.oncarlos.test" || r.Set != "cname" {
+ t.Errorf("%s CNAME record %+v", host, r)
+ }
+ case "A":
+ if r.Value != "192.0.2.1" && r.Value != ingressIP {
+ t.Errorf("%s A record %+v outside the ingress union", host, r)
+ }
+ }
+ }
+ if cnames != map[bool]int{true: 0, false: 1}[apex] {
+ t.Errorf("%s: %d CNAME records", host, cnames)
+ }
+ }
+}
+
+// Every kind of row on the domains door names the same CNAME target under
+// configured ingress: an alias of an instance, a first-route claim, an alias
+// of another custom name and an instance catch-all all get the steering
+// hostname, and the apex none. The Settings page says the same.
+func TestDomainDoorsNameTheSteeringHostUnderIngress(t *testing.T) {
+ fx, member := instanceFixture(t, "code-dom-steer-ingress")
+ fx.srv.cfg.AppsDomain = "oncarlos.test"
+ fx.srv.cfg.EdgeIPs = []string{"192.0.2.1"}
+ fx.srv.cfg.RegionIngress = []string{ingressIP}
+ fx.srv.steeringHost = "edge.oncarlos.test"
+ sqid := release.OpsAccount
+ attachShopClaim(t, fx, sqid, "titogo", "shop.example.com", "eu.bab.oncarlos.test")
+ attachShopClaim(t, fx, sqid, "titogo", "first.example.com", "")
+ attachShopClaim(t, fx, sqid, "titogo", "raw.example.com", "example.com")
+ attachShopClaim(t, fx, sqid, "titogo", "example.com", "eu.bab.oncarlos.test")
+ if _, _, err := domains.AttachClaim(context.Background(), fx.rel, domains.Claim{
+ Host: "*.app.example.com", Account: sqid, App: "titogo", Instances: true,
+ CreatedAt: time.Now().UTC().Format(time.RFC3339),
+ }); err != nil {
+ t.Fatal(err)
+ }
+ want := map[string]string{
+ "shop.example.com": "edge.oncarlos.test", "first.example.com": "edge.oncarlos.test",
+ "raw.example.com": "edge.oncarlos.test", "*.app.example.com": "edge.oncarlos.test",
+ "example.com": "",
+ }
+ code, _, out := rawReq(t, http.MethodGet, domainsURL(fx, "bab", "titogo"), member, "")
+ if code != http.StatusOK {
+ t.Fatalf("list = %d %s", code, out)
+ }
+ var got struct {
+ Domains []struct {
+ Host string `json:"host"`
+ Guidance string `json:"guidance"`
+ CNAMETarget string `json:"cname_target"`
+ Records []dnsRecord `json:"records"`
+ } `json:"domains"`
+ Deployment struct {
+ SteeringHost string `json:"steering_host"`
+ EdgeIPs []string `json:"edge_ips"`
+ } `json:"deployment"`
+ }
+ if err := json.Unmarshal([]byte(out), &got); err != nil {
+ t.Fatal(err)
+ }
+ targets := fx.srv.dnsTargets(context.Background())
+ seen := 0
+ for _, d := range got.Domains {
+ w, ok := want[d.Host]
+ if !ok {
+ continue
+ }
+ seen++
+ if d.CNAMETarget != w {
+ t.Errorf("%s cname_target = %q, want %q", d.Host, d.CNAMETarget, w)
+ }
+ if g := domainGuidance(d.Host, targets); d.Guidance != g {
+ t.Errorf("%s guidance = %q, want %q", d.Host, d.Guidance, g)
+ }
+ for _, r := range d.Records {
+ if r.Type == "CNAME" && r.Value != w {
+ t.Errorf("%s CNAME record %+v, want %q", d.Host, r, w)
+ }
+ }
+ }
+ if seen != len(want) {
+ t.Fatalf("saw %d of %d rows in %s", seen, len(want), out)
+ }
+ if got.Deployment.SteeringHost != "edge.oncarlos.test" || len(got.Deployment.EdgeIPs) == 0 {
+ t.Errorf("deployment block = %+v", got.Deployment)
+ }
+ code, _, out = rawReq(t, http.MethodGet, domainGetURL(fx, "bab", "titogo", "first.example.com"), member, "")
+ if code != http.StatusOK {
+ t.Fatalf("per-host door = %d %s", code, out)
+ }
+ var one struct {
+ Domain struct {
+ CNAMETarget string `json:"cname_target"`
+ } `json:"domain"`
+ }
+ if err := json.Unmarshal([]byte(out), &one); err != nil || one.Domain.CNAMETarget != "edge.oncarlos.test" {
+ t.Errorf("per-host door cname_target: %v %s", err, out)
+ }
+ acct, err := fx.st.AccountBySqid(sqid)
+ if err != nil || acct == nil {
+ t.Fatal(err)
+ }
+ for _, dv := range fx.srv.settingsDomains(withReqMemo(context.Background()), acct, "titogo", nil) {
+ if _, ok := want[dv.Domain]; ok && dv.Domain != "example.com" && dv.Guidance != domainGuidance(dv.Domain, targets) {
+ t.Errorf("settings %s guidance = %q", dv.Domain, dv.Guidance)
+ }
+ }
+}
diff --git a/internal/console/view.go b/internal/console/view.go
index d7f454069..14296169b 100644
--- a/internal/console/view.go
+++ b/internal/console/view.go
@@ -22,7 +22,6 @@ import (
"github.com/carlosframework/platform/internal/metrics"
"github.com/carlosframework/platform/internal/perf"
- "github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/regionlabel"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/release"
@@ -161,9 +160,8 @@ func (d DomainView) Explain() string {
// only on a deployment that STEERS (multi-region ingress spec, Part 4) —
// the steering hostname a non-apex host may CNAME to instead.
type DNSTargets struct {
- // ConfiguredIngress names the public union for A records. It no longer
- // suppresses the CNAME forms where app hosts are published (see
- // Server.dnsTargets).
+ // ConfiguredIngress names the public union for A records. Beside it a
+ // subdomain still gets the steering CNAME (see Server.dnsTargets).
ConfiguredIngress bool
// EdgeIPs is the DNS-only union chosen by Server.edgeIPs: static public
// ingress when configured, otherwise PLATFORM_EDGE_IPS plus live boxes.
@@ -174,77 +172,11 @@ type DNSTargets struct {
// deployment that does not set CARLOS_STEERING_ZONE_ID, which is all of
// them today — keeps the guidance byte-for-byte what it has always been.
SteeringHost string
- // AppsDomain is set only where the deployment publishes its app hosts in
- // public DNS: where it steers (CARLOS_STEERING_ZONE_ID plus
- // PLATFORM_APPS_DOMAIN, the pair the converger that keeps their records
- // needs). Unlike SteeringHost it stays set under configured ingress: an
- // app host's records are the deployment's to steer, so a customer CNAME
- // to one follows us wherever its traffic goes next. "" (self-hosted,
- // devbox) keeps today's wording.
- AppsDomain string
- // AppHost is the one row's CNAME target, bound by forApp: the name a
- // non-apex custom domain is told to CNAME at. "" until a row binds it.
- AppHost string
}
-// forApp binds the row's app host (see appHostFor). Every surface that shows
-// a custom domain's guidance binds it from the claim's or route's own facts,
-// so the app page, Settings and the domains door name the same host.
-func (t DNSTargets) forApp(host, route string) DNSTargets {
- t.AppHost = appHostFor(t.AppsDomain, host, route)
- return t
-}
-
-// appHostFor is the name a custom domain host should CNAME at, or "" when
-// there is none to name: route, when it is a name under the apps domain.
-//
-// route is always a host the deployment SERVES under its own name: a
-// domain claim's route (the instance or app the custom name aliases; for an
-// HA instance, or one in another region, that is the instance's own public
-// name). A name merely SPELLED like the app's apex is never named, and
-// neither is a registry apex: a route row is not DNS publication (Astra R1
-// and R2; a verified apex is a follow-up). A row with no served route of
-// its own keeps the steering hostname (cnameTarget). That is what makes it a safe target: its visitors already
-// reach it by that name, so its public DNS is maintained (steering records
-// or the apps-domain wildcards).
-// Member and sidecar names (*.sidecar.internal) are never under the apps
-// domain, so they are never named. A host that is itself under the apps
-// domain is ours already and is told nothing new, and nothing is named on a
-// deployment that does not publish app hosts (domain "").
-func appHostFor(domain, host, route string) string {
- norm := func(h string) string { return strings.ToLower(strings.TrimSuffix(strings.TrimSpace(h), ".")) }
- domain = norm(domain)
- if domain == "" {
- return ""
- }
- h := norm(host)
- if h == domain || strings.HasSuffix(h, "."+domain) {
- return ""
- }
- if r := norm(route); strings.HasSuffix(r, "."+domain) && provision.ValidHostShape(r) {
- return r
- }
- return ""
-}
-
-// cnameTarget is the name a non-apex host is told to CNAME at, or "" when
-// the advice is A records only: the bound app host, else the legacy
-// steering hostname. domainGuidance and domainRecords both read it, so the
-// sentence and the records can never name two different targets.
-func cnameTarget(host string, t DNSTargets) string {
- if isApexDomain(host) {
- return ""
- }
- if t.AppHost != "" {
- return t.AppHost
- }
- return t.SteeringHost
-}
-
-// domainGuidance is shared by routed and claim-only custom domains. A
-// subdomain on a deployment that publishes app hosts CNAMEs at its app host,
-// or at the steering hostname when it has no served route of its own, with
-// configured ingress or without; ingress mode names only the configured
+// domainGuidance is shared by routed and claim-only custom domains. Where the
+// deployment steers, a subdomain is offered the CNAME at the steering
+// hostname, configured ingress or not; ingress mode names only the configured
// public union for A records. The public suffix list decides apexes, where a
// CNAME cannot coexist with the zone's SOA and NS records.
func domainGuidance(host string, t DNSTargets) string {
@@ -254,8 +186,6 @@ func domainGuidance(host string, t DNSTargets) string {
}
aRecord := "Point an A record for " + host + " at " + target + "."
switch {
- case t.AppHost != "" && !isApexDomain(host):
- aRecord = appHostGuidance(host, t.AppHost, target, len(t.EdgeIPs) > 0)
case t.ConfiguredIngress && (isApexDomain(host) || t.SteeringHost == ""):
if isApexDomain(host) {
return fmt.Sprintf("%s is an apex domain and cannot use a CNAME. Point its A record at the configured public ingress addresses: %s. Checks run every few minutes.", host, target)
@@ -270,6 +200,17 @@ func domainGuidance(host string, t DNSTargets) string {
return aRecord + " Checks run every few minutes."
}
+// cnameTarget is the name a host is told to CNAME at, or "" when the advice
+// is A records only: the steering hostname, for a subdomain. domainGuidance
+// and domainRecords both read it, so the sentence, the records and the
+// domains door's cname_target never name two different targets.
+func cnameTarget(host string, t DNSTargets) string {
+ if isApexDomain(host) {
+ return ""
+ }
+ return t.SteeringHost
+}
+
// isApexDomain reports whether host is the registrable domain itself — the
// one place a CNAME is illegal (RFC 1034: a CNAME cannot coexist with the
// SOA and NS records an apex must carry). golang.org/x/net/publicsuffix is
@@ -1180,16 +1121,3 @@ func versionsPage(ctx context.Context, s release.Store, acct, app string, page i
}
return out, newest, more, nil
}
-
-// appHostGuidance is the subdomain advice where the deployment publishes
-// app hosts (copy review 2026-11-08: both forms approved). The A-record
-// alternative follows only when the deployment knows its addresses (the
-// same set as before); otherwise the CNAME stands alone rather than
-// naming "this deployment's edge IP".
-func appHostGuidance(host, appHost, target string, withA bool) string {
- cname := "Point a CNAME for " + host + " at " + appHost + ", your app's own address. Visitors then reach the nearest edge, and the record keeps working if the app moves."
- if withA {
- return cname + " An A record for " + host + " at " + target + " also works, but it sends visitors to fixed addresses that may change later."
- }
- return cname
-}
diff --git a/internal/domains/cname_apphost_test.go b/internal/domains/cname_steering_test.go
similarity index 88%
rename from internal/domains/cname_apphost_test.go
rename to internal/domains/cname_steering_test.go
index 4283fd840..33e439b6d 100644
--- a/internal/domains/cname_apphost_test.go
+++ b/internal/domains/cname_steering_test.go
@@ -10,17 +10,17 @@ import (
"golang.org/x/net/dns/dnsmessage"
)
-// A custom domain CNAMEd at its app's own host (the console's advice where
-// the deployment publishes app hosts) reads "pointing" when that host
+// A custom domain CNAMEd at the steering hostname (the console's advice where
+// the deployment steers, configured ingress or not) reads "pointing" when that host
// resolves into the edge set, configured public ingress included, and
// "elsewhere" when it does not. dnsStatus is fed the production resolver
// shape, so the CNAME is followed by LookupHost exactly as on a box.
-func TestDNSStatusFollowsACNAMEToTheAppHost(t *testing.T) {
+func TestDNSStatusFollowsACNAMEToTheSteeringHost(t *testing.T) {
const ingress = "192.0.2.90"
- chain := []string{"shop.example.com", "eu.blog.bab.oncarlos.test"}
+ chain := []string{"shop.example.com", "edge.oncarlos.test"}
resolve := cnameDNS(t, chain, []string{ingress})
if got := dnsStatus(resolve, "shop.example.com", map[string]bool{"192.0.2.1": true, ingress: true}); got != "pointing" {
- t.Errorf("CNAME to the app host, app host on configured ingress: %q, want pointing", got)
+ t.Errorf("CNAME to the steering host, answering with configured ingress: %q, want pointing", got)
}
if got := dnsStatus(resolve, "shop.example.com", map[string]bool{"192.0.2.1": true}); got != "elsewhere" {
t.Errorf("CNAME to an address outside the edge set: %q, want elsewhere", got)
@@ -28,8 +28,8 @@ func TestDNSStatusFollowsACNAMEToTheAppHost(t *testing.T) {
if got := dnsStatus(resolve, "missing.example.com", map[string]bool{ingress: true}); got != "" {
t.Errorf("no record yet: %q, want empty", got)
}
- // Two hops (a customer CNAME to their own name, then to the app host).
- two := cnameDNS(t, []string{"www.example.com", "shop.example.com", "blog.bab.oncarlos.test"}, []string{ingress})
+ // Two hops (a customer CNAME to their own name, then to the steering host).
+ two := cnameDNS(t, []string{"www.example.com", "shop.example.com", "edge.oncarlos.test"}, []string{ingress})
if got := dnsStatus(two, "www.example.com", map[string]bool{ingress: true}); got != "pointing" {
t.Errorf("two-hop CNAME: %q, want pointing", got)
}
diff --git a/internal/edge/cname_apphost_test.go b/internal/edge/cname_steering_test.go
similarity index 90%
rename from internal/edge/cname_apphost_test.go
rename to internal/edge/cname_steering_test.go
index bd38d13b2..959b3adbe 100644
--- a/internal/edge/cname_apphost_test.go
+++ b/internal/edge/cname_steering_test.go
@@ -11,14 +11,14 @@ import (
)
// The cert warm only orders for a host whose DNS lands wholly on this
-// deployment. A custom domain CNAMEd at its app's own host passes when that
+// deployment. A custom domain CNAMEd at the steering hostname passes when that
// host resolves into the edge set (configured public ingress is part of it
// through PLATFORM_EDGE_IPS), and fails when it does not.
-func TestCertWarmGateFollowsACNAMEToTheAppHost(t *testing.T) {
+func TestCertWarmGateFollowsACNAMEToTheSteeringHost(t *testing.T) {
const ingress = "192.0.2.90"
- resolve := cnameDNS(t, []string{"shop.example.com", "eu.blog.bab.oncarlos.test"}, []string{ingress})
+ resolve := cnameDNS(t, []string{"shop.example.com", "edge.oncarlos.test"}, []string{ingress})
if !dnsGate(resolve, func() []string { return []string{"192.0.2.1", ingress} })("shop.example.com") {
- t.Error("CNAME to an app host on configured ingress was refused a certificate")
+ t.Error("CNAME to the steering host on configured ingress was refused a certificate")
}
if dnsGate(resolve, func() []string { return []string{"192.0.2.1"} })("shop.example.com") {
t.Error("CNAME to an address outside the edge set was offered a certificate")
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 89fba80c9..169075c68 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -722,7 +722,7 @@ var plan9B8CensusInventory = []censusEntry{
{"internal/console/claim_retire_helpers.go", "claimRetireRecordKey", "key-site", "key:RecordKey,key:SidecarRecordKey,key:claimRetireRecordKey", "4a84350fc30ad6866855f785e40bea690655daf6399acad853c4e61871ee82a5"},
{"internal/console/claim_store_effects.go", "claimEffectStore.Put", "record-transport", "def:Put,sel:Put", "679406564fa1f9816a4fe2fe9bd454ed6fdde1e16a3e7c5060c22fdb933e7b9e"},
{"internal/console/domainattach.go", "Server.attachDomainAs", "record-writer", "key:CreateRecord", "c99691f92daab087137bb607a89f3dc7ef4202e83431e61ebee56553756f7f4f"},
- {"internal/console/domaincatchall.go", "Server.catchallListItems", "key-site", "lit:instances", "3e97b23c81bb51a4c1ea9f6df6488c86c619d490a2fbf7d0267332b0d4f40b84"},
+ {"internal/console/domaincatchall.go", "Server.catchallListItems", "key-site", "lit:instances", "305f95c61dbaafe261c876dd730e8af5682b444c16c470cd41b7760e4160a738"},
{"internal/console/economicspass.go", "Server.upsertBill", "nonrecord", "sel:Put", "2af1ed6992d6856f5273d5ce6305fa4b9d434f94b25c9843c5cd45a6c69362b1"},
{"internal/console/economicspass.go", "Server.putScenario", "nonrecord", "sel:Put", "80557ccbb43b60fe9e8a54a4aaf3be1e7982a92a9ba2d6e33be43ddf51329ab5"},
{"internal/console/economicspass.go", "Server.putActiveScenario", "nonrecord", "sel:Put", "0711f7092a78e391af67eca8c4a5b30224297bbddb8c7a92add8c375faef3bff"},