Skip to content

fix(edge): route only by explicit external host, never the mesh FQDN - #241

Merged
bpalermo merged 1 commit into
mainfrom
fix/edge-no-fqdn-routing
Jun 19, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/edge-no-fqdn-routing

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Problem

The edge was routing an exposed service at its internal mesh FQDN (<service>.<mesh-domain>, e.g. svc-1.aether.internal) whenever an EdgeRoute had no hosts — and the --expose seed produced exactly those FQDN routes. That leaks the mesh's east-west addressing scheme as a north-south entrypoint. The edge must route only by explicit external hostnames; the mesh FQDN must not be reachable from the edge.

Fix

  • proto — EdgeRouteSpec.hosts is now required (min_items=1); documented that the mesh FQDN is deliberately not an edge entrypoint.
  • cache — edgeRouteVhosts drops the mesh-FQDN fallback and skips hostless routes; SetEdgeRoutes scopes the dependency set to services of routes with hosts only, so a hostless route is fully inert (no cluster, no vhost).
  • agent / reconciler — skip routes with no service or no hosts.
  • Removed the --expose flag / EdgeExposes / static FQDN seed and the chart's edge.expose value — exposure is EdgeRoute-only. Chart 0.8.0 → 0.9.0.

Tests

Assert no vhost domain is a mesh FQDN, hostless routes produce no vhost and don't scope their service, and the reconciler skips no-service / no-host routes. bazel build //..., the edge/cache/cmd/config tests, lint, format, and version-bump all pass.

Doc/example wording in #240 (proposal 003 + test/e2e/edge) is corrected on that branch to match.

🤖 Generated with Claude Code

The edge was routing an exposed service at its internal mesh FQDN
(<service>.<mesh-domain>) when an EdgeRoute had no `hosts` (and via the --expose
seed). That leaks the mesh's east-west addressing scheme as a north-south
entrypoint. The edge must route ONLY by explicit external hostnames.

- proto: EdgeRouteSpec.hosts is now required (min_items=1); document that the
  mesh FQDN is deliberately not an edge entrypoint.
- cache: edgeRouteVhosts drops the mesh-FQDN fallback and skips hostless routes;
  SetEdgeRoutes scopes the dependency set to services of routes WITH hosts only,
  so a hostless route is fully inert (no cluster, no vhost).
- agent/reconciler: skip routes with no service OR no hosts.
- Remove the --expose flag / EdgeExposes / static FQDN seed and the chart's
  edge.expose value — exposure is EdgeRoute-only now. aether chart 0.8.0 -> 0.9.0.

Tests assert no vhost domain is a mesh FQDN, hostless routes produce no vhost and
don't scope their service, and the reconciler skips no-service/no-host routes.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY
bpalermo added a commit that referenced this pull request Jun 19, 2026
…DN, no --expose

Align the proposal doc and e2e assets with the routing fix (#241): the edge routes
ONLY by explicit external host; the internal mesh FQDN is not an edge entrypoint
and `hosts` is required. Drop the removed `--expose` seed from the doc, runbook,
and example.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY
@bpalermo
bpalermo merged commit ae2ab39 into main Jun 19, 2026
14 checks passed
@bpalermo
bpalermo deleted the fix/edge-no-fqdn-routing branch June 19, 2026 16:43
bpalermo added a commit that referenced this pull request Jun 19, 2026
…eRoutes (#240)

* docs(edge): proposal 003 (as-built) + talos e2e runbook + example EdgeRoutes

Add the edge-proxy proposal doc reflecting what shipped across #236–#239
(single-identity agent edge control plane, Envoy-talks-SPIRE-SDS-directly, the
EdgeRoute CRD, the edge.enabled chart, downstream TLS), resolving the
docs/proposals/003_edge-proxy.md references already in the code/chart comments.

Also adds test/e2e/edge: a manual talos-main runbook (enable the edge, expose a
service, drive traffic, assert direct-to-pod + edge identity in XFCC + hitless
rollout + live route changes) and example EdgeRoute manifests (host-based and
multi-port).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY

* docs(edge): correct exposure wording — external host only, no mesh FQDN, no --expose

Align the proposal doc and e2e assets with the routing fix (#241): the edge routes
ONLY by explicit external host; the internal mesh FQDN is not an edge entrypoint
and `hosts` is required. Drop the removed `--expose` seed from the doc, runbook,
and example.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant