Skip to content

Gateway API Phase 3 — TCP-over-mTLS floor + L4 routes (proposal 018) #460

Closed

Description

@bpalermo

Tracking issue for the remaining proposal 018 Phase 3 work (transparent capture → general L4+L7 data plane). Phase 3a (HTTP/gRPC transparent capture, mesh-DNS, GAMMA-on-capture) has shipped and is default-on; this issue covers what's left.

Phase 3a — TCP-over-mTLS floor (the "everything else" path)

Today transparent capture only handles HTTP/gRPC on the :18081 mesh port. Promote the proxy to a general L4+L7 data plane:

  • Protocol-detect on the captured/inbound path: tls_inspector + http_inspector → HCM for HTTP/gRPC, tcp_proxy-over-mTLS for everything else.
  • Apply on both the capture path and inbound :15008.
  • Requires: appProtocol metadata on mesh Services, and CNI capture broader than the single :18081 mesh port (capture the Service VIP wholesale).
  • Exit: a non-HTTP TCP service (e.g. redis/postgres) works over the mesh with mTLS, hitless.

Phase 3b — L4 route types (layers on the floor)

  • TCPRoute / TLSRoute / UDPRoute parentRef=Service, projected like GAMMA HTTPRoute/GRPCRoute. (A --l4-routes flag + agent/internal/l4route reconciler scaffolding already exists — wire it to the capture data plane.)
  • Exit: L4 route matching/splitting on captured TCP/TLS/UDP.

VirtualHost CRD retirement (edge convergence)

  • Migrate edge fully to HTTPRoute; generalize the dup-FQDN webhook to a Gateway/HTTPRoute hostname-conflict check.

Notes / dependencies

  • Interception-model-driven: capturing the Service VIP captures everything, which forces the L4 floor (an app that opens a raw TCP conn to the VIP must still work).
  • Conformance: closing Phase 3a's TCP floor should also help the Gateway API mesh conformance beyond HTTP.
  • See docs/proposals/018_gateway-api-gamma.md (Phase 3 section + status).

Queued from the 025/026 session; not started. Ranked Tier-parked (large, not blocking current work).

Activity

  1. bpalermo commented on Jul 2, 2026

    @bpalermo
    OwnerAuthor

    Close-out — validated end-to-end on talos (rev134, 0.62.0-b82002f)

    All Phase 3 code had already shipped when this issue was filed (the proposal's status section was stale — refreshed in #463): TCP-over-mTLS floor #295/#304, Phase 3b L4 routes #296 (--l4-routes, on on talos), VirtualHost retirement #292, MCS phase 1.

    What was genuinely missing was e2e validation of the TCP data path — and it found two production bugs:

    1. fix(agent): register config.aether.io in the runtime scheme (fleet crashloop) #461/fix(build): missing gazelle BUILD dep from #461 (publish broken) #462 — agent fleet crashloop (2.5 days, 496 restarts/agent): the agent runtime scheme never registered config.aether.io, so the gamma HTTPFilter watch (feat(gamma): resolve ExtensionRef → HTTPFilter, wire HCM union (025 M1) #446) failed every start (`no kind is registered for the type v1.HTTPFilter`), killing the CNI socket with it (new managed pods couldn't sandbox). Unit tests missed it (test schemes registered the type); the scheduled MESH-HTTP conformance failed with the same error.
    2. fix(xds): TCP-floor SAN pin must use the bare SA name (020 regression) #464 — 020 SAN-pin regression on the TCP floor: captureTCPClusters/edgeTCPClusters pinned sa/<ns>/<svc> (the namespace-qualified key) instead of the bare SA name → every TCP-floor mTLS handshake failed fail_verify_san (proven via envoy_cluster_ssl_fail_verify_san_total == attempts). The 020 cutover fixed the HTTP SAN path but missed the two TCP spots — unexercised until now.

    Validation results (talos, aether-test):

    • Floor (Phase 3a): echo world | curl telnet://tcp-echo.aether-test.aether.internal:9000 → hello world — raw TCP through mesh DNS + redirect-all capture + per-VIP /32 floor chain + SPIRE mTLS + inbound floor → app, end-to-end. ✅
    • Phase 3b (TCPRoute): applying a TCPRoute (parentRef tcp-echo → backendRef tcp-echo-v2) live-rewired the floor → hola world; deleting it reverted to hello world. ✅

    Fixtures tcp-echo/tcp-echo-v2 (istio tcp-echo-server, endpoint.aether.io/protocol: tcp) are left deployed in aether-test for future soaks. Notes for users: mesh FQDN is <svc>.<ns>.<meshDomain>; TCP upstreams must be declared via config.aether.io/upstreams (no ODCDS for tcp_proxy).

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions