Skip to content

chore(agent): refresh stale tunnel/CONNECT comments, drop dead pod field - #102

Merged
bpalermo merged 1 commit into
mainfrom
chore/refresh-tunnel-comments
Jun 9, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/refresh-tunnel-comments

Conversation

@bpalermo

@bpalermo bpalermo commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Cleanup following the tunnel removal in #98/#101. No behavior change — comments and dead code only.

  • Stale comments (8 sites): the HBONE tunnel / per-node CONNECT listener is gone, but cache.go, secret.go, bridge.go, and converter.go still described the node SPIFFE ID as the CONNECT listener's server cert / node-to-node tunnel identity. Updated to its actual role: the no-match upstream client cert presented by outbound clusters for node-originated connections (active health-check probes) plus the node-health listener.
  • Dead code: removed listenerEntry.pod, which only existed to rebuild the removed CONNECT listener's per-pod routes — it was written in two places but never read. This also drops the now-unused cni/v1 import in cache.go.

Test plan

  • bazel build //agent/internal/xds/cache/... //agent/internal/spire/... ✅
  • bazel test //agent/internal/xds/cache/... //agent/internal/spire/... ✅
  • grep confirms no remaining CONNECT listener / node-to-node tunnel references in Go.

🤖 Generated with Claude Code

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
bpalermo merged commit dfdbc8e into main Jun 9, 2026
10 checks passed
@bpalermo
bpalermo deleted the chore/refresh-tunnel-comments branch June 9, 2026 17:25
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