Skip to content

docs: proposal 003 — edge proxy (north-south ingress gateway) - #140

Closed
bpalermo wants to merge 2 commits into
mainfrom
docs/edge-proxy-proposal
Closed

bpalermo wants to merge 2 commits into
mainfrom
docs/edge-proxy-proposal

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Design proposal for north-south ingress: an Envoy gateway running as a normal unprivileged Deployment behind a Service (no agent/proxy DaemonSet on gateway nodes), forwarding external traffic directly to destination pods' inbound mTLS listeners (pod_ip:15008).

Core principle: the edge is just another mesh client — endpoint discovery (registrar watch), delivery address, readiness HC (/-/-/ready), EDS health, and trust-domain mTLS are the existing east-west contract, so the node data plane needs zero changes.

Key decisions:

  • Control plane: agent --mode=edge sidecar (subtractive: no CNI/netns/storage/delegated-identity) sharing the snapshot cache, registrar client, delta-xDS + ACK tracking, and generators with the node agent; SDS straight from the Workload API socket (the edge needs only its own SVID + bundle).
  • Single identity, simpler clusters: plain UpstreamTransportSocket (the existing zero-local-workloads code path) and no connection_pool_per_downstream_connection — full upstream multiplexing, none of the fix(agent): bound idle connections and per-connection buffers #136 leak class.
  • Exposure is an explicit allowlist (edge.exposes values; Host/domain vhosts), no CRDs in v1; Gateway API maps 1:1 as v2.
  • No hot-restart supervisor: gateways behind a Service drain via LB + the existing /aether/readyz readiness filter; plain Envoy entrypoint.
  • Unprivileged pod = private cgroupns — notably the cgroup_memory monitor that is fatal in the privileged node DS would work here.
  • 5-PR implementation plan; cross-cluster routing and peer authz deliberately deferred.

🤖 Generated with Claude Code

bpalermo and others added 2 commits June 11, 2026 10:47
Design for an Envoy ingress gateway running as an unprivileged Deployment
(no node DaemonSet on gateway nodes) that forwards external traffic
directly to destination pods' mesh inbound listeners (pod_ip:15008) over
mTLS — the edge is just another mesh client, so the node data plane is
untouched. Control plane is the agent in a subtractive edge mode
(registrar watch + snapshot cache + SDS from the Workload API, no
CNI/netns/delegated-identity), with single-identity plain-transport
clusters (no per-downstream pooling) and an explicit exposure allowlist.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…S analysis

Cross-cluster gets its own section: mechanically trivial to emit remote
endpoints, but correctness depends on four unsettled layers (pod-IP
reachability as an unverified infra assumption, WAN-degraded health
semantics + no defined merge of non-authoritative registrar snapshots,
drain staleness stretching from watch latency to poll intervals, and a
missing locality-priority failover policy) — the edge must consume the
multi-cluster contract, not define it implicitly by being first.

Control-plane section now spells out why the edge agent is a sidecar
rather than a node-level DS: per-pod Workload API identity (no delegated
identity), atomic lifecycle per replica, and generic scheduling.

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