Repository navigation
chore(agent): refresh stale tunnel/CONNECT comments, drop dead pod field - #102
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cleanup following the tunnel removal in #98/#101. No behavior change — comments and dead code only.
cache.go,secret.go,bridge.go, andconverter.gostill 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.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-unusedcni/v1import incache.go.Test plan
bazel build //agent/internal/xds/cache/... //agent/internal/spire/...✅bazel test //agent/internal/xds/cache/... //agent/internal/spire/...✅grepconfirms no remainingCONNECT listener/node-to-node tunnelreferences in Go.🤖 Generated with Claude Code