Skip to content

chore(agent): remove R2 vestiges (internal_listener bootstrap ext, node_ip) - #101

Merged
bpalermo merged 1 commit into
mainfrom
chore/r2-cleanup
Jun 9, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/r2-cleanup

Conversation

@bpalermo

@bpalermo bpalermo commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Cleanup of two dead remnants of the retired HBONE tunnel (now that the plain per-source mTLS transport is live):

  • charts/agent: drop the envoy.bootstrap.internal_listener extension (added in fix(agent chart): register internal_listener bootstrap extension #90). The plain transport has no internal listeners, so it registered an unused extension.
  • ServiceEndpoint.KubernetesMetadata.node_ip: the tunnel used node_ip:15008 as its target; the plain transport routes to pod IPs directly and never reads node_ip. Proto field 4 is reserved, and the field is no longer stamped or serialized:
    • registry.NewServiceEndpointFromCNIPod drops the nodeIP param,
    • queryNodeMetadata no longer returns it (and the unused nodeInternalIP helper is gone),
    • the kubernetes backend no longer derives it,
    • cloudmap drops AETHER_K8S_NODE_IP.

No behavior change. bazel test //..., format, and lint clean (net −105 lines).

🤖 Generated with Claude Code

…de_ip)

Two dead remnants of the retired HBONE tunnel:

- charts/agent: drop the envoy.bootstrap.internal_listener extension. The plain
  mTLS transport has no internal listeners, so it served nothing.
- ServiceEndpoint.KubernetesMetadata.node_ip: the tunnel used node_ip:15008 as its
  target; the plain transport routes to pod IPs directly and never reads node_ip.
  Reserve proto field 4, and stop stamping/serializing it (registry.NewServiceEndpointFromCNIPod
  drops the nodeIP param, queryNodeMetadata no longer returns it, the kubernetes
  backend no longer derives it, and cloudmap drops AETHER_K8S_NODE_IP).

No behavior change. Build/tests/lint/format clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo merged commit cef51d7 into main Jun 9, 2026
10 checks passed
@bpalermo
bpalermo deleted the chore/r2-cleanup branch June 9, 2026 13:44
bpalermo added a commit that referenced this pull request Jun 9, 2026
…eld (#102)

The HBONE tunnel and per-node CONNECT listener were removed in #98/#101,
but several comments in the xDS cache and SPIRE bridge still described the
node SPIFFE ID as the CONNECT listener's server cert / node-to-node tunnel
identity. Update them to its actual current role: the no-match upstream
client cert presented by outbound clusters for node-originated connections
(e.g. active health-check probes) plus the node-health listener.

Also drop listenerEntry.pod, which was only retained to rebuild the removed
CONNECT listener's per-pod routes; it is now written but never read. Removing
it makes the cni/v1 import in cache.go unused.

Co-authored-by: Claude Opus 4.8 <[email protected]>
bpalermo added a commit that referenced this pull request Jun 19, 2026
…ss control plane (#236)

Add `agent edge`, a subtractive control-plane mode for an edge (north-south
ingress) proxy that dials mesh pods directly over mTLS — no node proxy/DaemonSet
in the path. The transport migration (#98-#101) already made node egress a plain
per-source mTLS HTTP/2 client to pod_ip:15008, so the edge is the same path with
a single identity instead of many; the node data plane is unchanged.

- `runEdge`: controller-runtime manager hosting only the xDS server + registry
  refresher (no CNI server, no per-pod storage, no SPIRE bridge). Shared
  identity/registrar/SPIRE flags extracted into registerSharedFlags so the node
  path is untouched.
- Envoy fetches its single SVID + trust bundle straight from SPIRE over a static
  spire_agent gRPC SDS cluster (config.SDSConfigSourceFromCluster +
  proxy.EdgeUpstreamTransportSocket), not the agent's ADS stream. SAN pinning is
  preserved (inline matchers over the SDS bundle).
- Edge data plane: BuildEdgeListener (0.0.0.0:8080, RDS, readiness filter ahead
  of the router), BuildEdgeRouteConfiguration (exposed vhosts + 404 catch-all, no
  ODCDS), and NewServiceCluster gains a perDownstreamConnectionPool flag so the
  single-identity edge multiplexes upstream connections.
- Snapshot cache edge mode: SetEdgeMode/SetEdgeIdentity/SetStaticDependencies;
  the static dependency set scopes the registrar watch to exactly the exposed
  services. Exposure is seeded from --expose for now; an EdgeRoute CRD watch
  replaces it in a follow-up.

Unit tests cover the edge transport socket, listener, route config, SDS config
source, static dependency seam, and edge-mode listener composition.


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