Repository navigation
fix(agent): the unpinned-cluster report leaves out the plaintext UDP floor (#1393) - #1421
Merged
Merged
Conversation
…floor (#1393) reportUnpinnedClusters named every cluster entry with an empty SAN pin. A UDP floor entry has one by construction: its udp:<svc> cluster is published with no transport socket, so there is no validation context to pin. The report therefore fired on every snapshot of every node with a UDP service in scope (2,629 lines in the 2026-10-08 soak, all naming only udp:udp-echo.aether-test.aether.internal), and the counter that is meant to show an authentication downgrade never rested at zero. A cluster entry now records that its cluster is plaintext, and the report skips it. The build-time gate (envoy_validate's UnpinnedMeshClusters) already treated a cluster with no TLS context as out of scope; the runtime report now agrees with it. Closes #1393 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🟢 Approval recommended
The focused fix correctly distinguishes transport-socket-free UDP clusters while retaining coverage for genuinely unpinned TLS clusters.
0 open findings
What changed in this PR
Aligns runtime unpinned-cluster reporting with TLS validation by excluding the plaintext UDP floor.
Changes:
- Marks UDP floor entries as plaintext and excludes them from SAN-pin warnings.
- Preserves registry-reuse auditing for the new field.
- Adds regression coverage and operator documentation.
| File | Description |
|---|---|
agent/internal/xds/cache/cache.go |
Adds plaintext metadata to cluster entries. |
agent/internal/xds/cache/cluster.go |
Marks UDP floor entries as plaintext. |
agent/internal/xds/cache/mtls.go |
Excludes plaintext entries from unpinned reports. |
agent/internal/xds/cache/registryreuse.go |
Audits plaintext metadata during reuse. |
agent/internal/xds/cache/trustdomain_test.go |
Tests UDP exclusion and TLS reporting. |
docs/runbook.md |
Documents historical UDP false positives. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
This was referenced Oct 8, 2026
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.
Closes #1393
What the issue saw
mesh clusters published with no server-identity SAN pinsix times in 16 s on main-worker-04 during a svc-1 roll. Every one of those lines, and every other one stored, names a single cluster:udp:udp-echo.aether-test.aether.internal, withcount=1andreason="service endpoints carry no namespace metadata".That cluster is the UDP floor. It is published with no transport socket (
proxy.NewUDPServiceCluster), so it has no validation context a SAN pin could be missing from.reportUnpinnedClustersnamed it because it lists every cluster entry whosesanURIsis empty, and a UDP entry's is empty by construction (buildUDPClustersLockedsets nosanNamespaces).Measured on talos-main (read-only)
clusters, reason, count, trust_domain, service.version: four rows (one per agent build), alludp:udp-echo…, all five nodes, 4,907 lines. No line names any other cluster.increase(aether_agent_identity_cluster_unpinned_total)over the same window is 97 to 98 % ofincrease(aether_agent_snapshot_builds_total)per node agent: the line is emitted on nearly every snapshot, and the bursts at a service roll are the snapshots that roll causes.config_dump?resource=dynamic_active_clusterson all five node proxies: 64 to 69 clusters with an upstream TLS context per node, 0 withoutmatch_typed_subject_alt_names. Theudp:cluster isSTATICwith notransport_socket.The change
A cluster entry records
plaintext(set only for the UDP floor entry), and the report skips such entries.entryDiffcompares the new field so the #1115 reuse audit covers it. No TLS emission path reads a UDP entry'ssanURIs(the TCP floor readstcp:-keyed entries only, the QUIC twins read HTTP entries), so nothing that can be unpinned leaves the report.The build-time gate was already right:
UnpinnedMeshClustersin//agent/test/envoy_validatechecks a cluster only when it has an upstream TLS context, and the UDP bootstrap there passes it. This brings the runtime report in line with that gate, so there is no newenvoy_validateassertion to see red.That the UDP floor is unauthenticated plaintext is unchanged and is documented where the cluster is built and in proposal 038; it is a property of the protocol, not a per-snapshot event.
Tests
TestUnpinnedClusterReportSkipsThePlaintextUDPFloor, seen red first (the WARN fired with a UDP-only registry; thencountwas 2 instead of 1 next to a TLS cluster with no pin). It also asserts the report still names a TLS cluster that loses its pin when a UDP entry sits beside it.bazel test //agent/internal/xds/cache:cache_testand the same under--config=racebazel test //agent/test/envoy_validate/...bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...make format-checkAn agent wrote this pull request.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr