You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(agent,observability): the NACK counters are seeded, a cluster with no TLS published is not reported as the validation gap, and alert rules ship for the SAN-pin state (#1480, #1482, #1481) - #1490
Three follow-ups to #1479 (the unpinned-cluster report). They are one pull request because they share one vocabulary: #1482 adds a reason, and the alert rules of #1481 and the runbook text of #1480 enumerate the reasons.
aether.agent.xds.nacks and aether.agent.xds.ack_wait_failures were created by their first increment. A proxy that never rejected anything had no series, so "no NACKs" could not be told from "this agent reports nothing", and the runbook's published-versus-acknowledged reading of the SAN-pin gauges leans on that counter.
Both are now seeded at zero when the tracker is built, the way the unpinned counter is seeded per reason:
aether_agent_xds_nacks_total: seven series per agent. One per resource type the agent serves (Listener, Cluster, ClusterLoadAssignment, RouteConfiguration, Secret, TypedExtensionConfig, each as its full type.googleapis.com/… URL) and other.
aether_agent_xds_ack_wait_failures_total: four series (present/absent by nack/timeout).
The set of type URLs is closed. A NACK of a type outside it is counted under other and cannot open a series at runtime (nothing sends one today: the tracker only sees responses the agent's own server wrote). A test in the cache package holds the list to what a snapshot actually publishes, for the node proxy and for the edge, so a resource type added to the snapshot fails the build until it has a seeded series.
Before the node agent has its SVID nothing it publishes carries TLS (an HTTP cluster goes out bare, the TCP floor cluster is withheld). An entry whose endpoints carry no namespace was still counted and logged under no_namespace_metadata, the reason that otherwise means "TLS is served and checks no server identity".
Choice: a fourth reason, tls_not_published, not "do not count the entry while no TLS is published". Reasons:
Nothing becomes silent. The same entries are named, counted and gauged as before; only the label of some of them changes. Every total (the WARN's unpinned, the counter's sum, the gauge's sum, the soak gate's increase) is what it was. Dropping the entries instead would have removed a known-future gap from every signal for as long as a node waits for its SVID, and for good on a node whose SVID never arrives.
no_namespace_metadata now means exactly one thing: TLS published without a pin. That is what lets the alert below be critical on it without firing for an agent that is merely starting.
How "never hidden" is kept:
The reason is recorded where the pin is rendered (renderSANPin), from whether the node can publish TLS (mtlsReady: a served node SVID and a trust domain). The node SVID is already an input of the render memo, so its arrival re-renders the entry to no_namespace_metadata before the snapshot that first publishes TLS for it.
That is not enough by itself: the TCP floor cluster is built at snapshot time from the node identity in force then, and SetNodeIdentity stores the identity before it recomputes. A snapshot generated between the two would carry a TLS floor cluster with no pin while its entry still said tls_not_published. So a snapshot build, after the last builder that reads the node identity, reports every tls_not_published entry as no_namespace_metadata if the node can publish TLS (promoteTLSNotPublished). It errs to the loud side: an HTTP entry of that one snapshot that is still published bare is named as the gap one snapshot early. The pin history (and so the acknowledged gauge) is filed with the corrected counts.
The other direction, found in review: a TCP floor entry stays in the cluster cache whether or not its tcp: cluster is published (only a service in the capture TCP set, or on the edge one a route references, gets one). With no namespace metadata it was reported as no_namespace_metadata although no TLS for it was in the snapshot. The build now reports such an entry as tls_not_published when its floor cluster is not among the ones it just built (demoteUnpublishedFloors), and as the gap again in the snapshot that publishes the floor. So after both corrections an entry is tls_not_published exactly when the snapshot carries no TLS cluster for it. This case is not bounded by the SVID: it lasts until the floor is published, and the warning rule then points at the registry data (the rule file and the runbook say so).
The trust-domain window is untouched: with no trust domain every entry is trust_domain_unknown, as before.
Every place that enumerates the reasons is updated: the closed set and its seeding, the two gauges (five series per agent, was four), the counter (four, was three), the WARN bound (at most four lines per snapshot), the runbook's reason table, docs/observability/README.md, the soak grade's fixtures and its harness_test.sh expectations, e2e/soak/README.md, and the alert rules.
The soak gate (e2e/soak/prober-grade.sh) sums every series whatever its labels, so its verdicts do not change; only comments in the script change. The fixtures of every new-shape scenario gain the fourth series per agent.
docs/observability/agent-pin-alerts.yml, where the repository keeps its example rules, with a promtool unit test beside it (agent-pin-alerts_test.yml).
Alert
Severity
for:
Expression, in words
AetherMeshClusterUnpinned
critical
3m
published gauge, pin="unpinned", reason no_namespace_metadata or pin_not_rendered, per job, node and reason
AetherMeshClusterPinPending
warning
5m
the same, reason trust_domain_unknown or tls_not_published
AetherProxyHoldsUnpinnedClusters
warning
15m
acknowledged unpinned greater than published unpinned, per job and node
The for: that rides out an agent start is 5 minutes, on the two reasons that can occur at a start:
Measured (read-only, a five-node test cluster): all five running agents had their SVID within 0.5 s of asking (aether_agent_spire_wait_seconds, every observation in the lowest bucket). The agent exports every 60 s, so a normal start is shorter than one export.
From the code: an agent still without an SVID after 2 minutes (DefaultWaitWarnAfter, --spire-wait-warn-after) reports NotReady. That is the agent's own bound on a healthy start.
5 minutes is that bound, plus two exports so the state is seen twice past it, plus one for evaluation jitter.
AetherMeshClusterUnpinned has no start-up window to ride out (since #1482 the same entries are tls_not_published until TLS exists); its 3 minutes are three consecutive exports.
The divergence rule is included, and is sound against #1483. The acknowledged gauge has no series after an agent restart against an in-sync proxy. The rule compares two vectors, and a comparison returns nothing for a (job, node) one side lacks, so it cannot fire on absence. It is one-directional (acknowledged above published: the proxy has not taken the update that pinned the clusters). Its residue is written in the file: during a proxy hot restart the gauge shows the last ACK from either generation, so a late ACK of an older snapshot from the generation that is leaving, on a node where no cluster changes afterwards, would hold it on the older state. That is why it is a warning with a 15 minute for:.
Nothing here names a cluster, a node or a namespace of any installation, and nothing in the maintainer's separate GitOps repository is touched.
Stored metric names
Read back, read-only, from a test cluster's Prometheus on 2026-10-08:
Verified: aether_agent_xds_ack_wait_failures_total exists and is stored with exactly the labels aether_xds_wait, aether_xds_reason, job, node. So the OTLP ingest turns the dots of an attribute key into underscores and adds _total to a counter, like every other agent metric there.
Red, then green. Each production behaviour was seen failing before the code that makes it pass, or by reverting that code; every such edit was reverted and the tree checked clean.
Behaviour
Red
Tests
NACK counter exists at zero before any NACK
before the seeding: before any NACK the counter must already export
TestMetrics_NacksSeededPerTypeURL
wait-failure counter exists at zero
before the seeding
TestMetrics_WaitFailuresSeeded
a NACK increments its own type's series only
same test, after the seeding
TestMetrics_NacksSeededPerTypeURL
an unserved type URL opens no series
the other mapping removed: an unserved type URL must not open a series of its own
TestMetrics_NacksSeededPerTypeURL
the seeded set covers what a snapshot publishes
ExtensionConfigType removed from the list: fails for the node proxy and the edge
a TCP floor entry whose floor cluster is not published is not reported as the gap, and is in the snapshot that publishes it
before the correction: the line named tcp:rawnons… under no_namespace_metadata while the snapshot held no such cluster
TestUnpublishedTCPFloorIsNotTheValidationGap
the trust-domain window keeps its one reason
(guard; green throughout)
TestTLSNotPublishedIsNotTheTrustDomainWindow
no series carries a cluster name
readPinGauge holds both gauges to pin and reason alone on every read; the new requireOnlyClosedReasonSeries holds the counter to reason alone, from the closed set, one series per reason
all gauge tests, TestNoNamespaceIsNotTheValidationGapUntilTLSIsPublished
the soak grade on four series per agent
new fixtures, old expectations: 11 assertions red, all on series counts, no verdict changed
//e2e/soak:harness_test
the alert rules
seven copies of the rule file, each with one change (a shorter for:, critical on every reason, the warning without tls_not_published, a divergence expression that fires on an absent gauge, one that fires in both directions): each fails the promtool test, the unchanged file passes
agent-pin-alerts_test.yml, promtool 3.5.0
Run on the final tree:
bazel test //agent/internal/xds/... //agent/internal/cmd/... //agent/test/envoy_validate/... //e2e/soak:all: 11 of 11 pass
bazel test --config=race on ack_test, cache_test, cachemetrics_test: pass
bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation over //agent/internal/xds/..., //agent/internal/cmd/..., //e2e/soak:all: pass (scoped to the packages touched, not //...)
make format-check: pass; make gazelle: no further change
promtool check rules and promtool test rules (3.5.0, run by hand): pass
No generated xDS resource changes, and no chart changes, so no chart version is bumped.
Not verified
Nothing here has run on a cluster.
The stored name of the NACK counter and its aether_xds_type_url label are derived from its sibling, as above.
The promtool test is not run by CI: this repository has no promtool in its build (the existing rule files' tests live where the rules are deployed from). It was run by hand.
The alert expressions have not been evaluated against real series: the gauges they read do not exist on any cluster yet.
The race that promoteTLSNotPublished closes is forced in a test by storing the identity without the recompute; it has not been observed in a running agent.
A pinned TCP floor entry whose floor cluster is not published is still in the pin="pinned" count (the report keeps no names for pinned entries). It overstates a healthy number and hides nothing; it is not changed here.
The whole-tree lint (//...) and the plain go build ./... were not run locally; CI runs both.
What the first deploy should show, per node agent and for the edge:
aether_agent_xds_nacks_total: seven series at 0 (six type URLs and other) from the first export of each new pod. aether_agent_xds_ack_wait_failures_total: four series at 0. If the label is not aether_xds_type_url, the runbook's expression needs the name the store shows.
aether_agent_snapshot_tls_clusters: five series, pin="pinned" above zero and the four pin="unpinned" series at 0 at rest. aether_agent_identity_cluster_unpinned_total: four series per agent.
Right after an agent start, tls_not_published or trust_domain_unknown may move in the counter for a snapshot or two; no_namespace_metadata must not, unless a service really has endpoints with no namespace. On an agent before this change the same start would have counted under no_namespace_metadata.
prober-grade.sh over a window that includes the agent roll: the same UNPINNED verdict as before, with any movement at the roll now printed as UNPINNED reason=tls_not_published … or reason=trust_domain_unknown ….
With the rules loaded: none of the three alerts pending at rest, and none firing across an agent roll.
…h no TLS published is not reported as the validation gap, and alert rules ship for the SAN-pin state (#1480, #1482, #1481)
#1480: aether.agent.xds.nacks and aether.agent.xds.ack_wait_failures were
created by their first increment, so "no NACKs" was an absent series. Both are
seeded at zero when the tracker is built: one series per resource type the
agent serves (a closed set of six, held to what a snapshot publishes by a test)
plus "other", and the four wait/reason pairs. A NACK of a type outside the set
is counted under "other" and cannot open a series.
#1482: an entry whose endpoints carry no namespace was reported under
no_namespace_metadata before the node agent had its SVID, when nothing it
publishes carries TLS. It now has a fourth reason, tls_not_published, while no
TLS is published, and becomes no_namespace_metadata in the snapshot that first
publishes TLS for it. A snapshot that can publish TLS never reports the benign
reason: the report is corrected after the last builder that reads the node
identity. The same entries are counted as before, so no total changes.
#1481: docs/observability/agent-pin-alerts.yml, with a promtool unit test
beside it: critical on TLS published without a pin, a slower warning on the two
reasons under which no TLS is published, and a warning when the proxy last
acknowledged more unpinned clusters than the agent publishes (it cannot fire on
an absent acknowledged gauge, #1483).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
… not reported as TLS without a pin
Review of #1490. A TCP floor entry stays in the cluster cache whether or not
its "tcp:" cluster is published (only a captured service, or on the edge a
routed one, gets one). With no namespace metadata it was reported under
no_namespace_metadata, the reason the critical alert reads as "TLS on the wire
without a pin". The snapshot build now reports such an entry as
tls_not_published when its floor cluster is not among the ones it built, and
as the gap again in the snapshot that publishes the floor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Stale pod metrics can trigger false positive alerts
docs/observability/agent-pin-alerts.yml:66
The rule can fire after the current agent has already cleared the gap. OTLP emits no staleness marker (as noted below at lines 159-162), and the metric also carries pod; after a pod replacement, the old pod's last positive sample remains selectable for five minutes while the new pod exports zero. This sum drops pod, so the stale value keeps the condition true long enough to satisfy for: 3m and produces a critical false positive. Filter to the freshest pod series (for example with timestamp()) before aggregating, and add a promtool case where an old pod stops positive as its replacement starts at zero.
… tests run, by a pinned promtool in the unit tests (#1492)
Nothing in the build ran promtool, so a rule file under docs/observability
was checked by hand only, and so would be the rule test #1490 adds.
- MODULE.bazel pins the official Prometheus 3.15.0 release archives (linux
and darwin, amd64 and arm64, sha256 from the release's sha256sums.txt), the
way oras and actionlint are pinned. //bazel/promtool selects the host's
promtool; :version_test fails until its EXPECTED moves with a bump.
- promtool_rules_test (//bazel/promtool:defs.bzl) runs `promtool check rules`
on every rule file and `promtool test rules` on every rule test. It fails on
no rule file at all, and on a .yml that sits beside the files it was handed
and was not handed.
- //:observability_rules_test applies it to docs/observability by glob: every
.yml there is a rule file, except <name>_test.yml, which is a rule test.
It is in the root package because a BUILD file in docs/observability would
take that directory's .md files out of the website's inputs.
- //bazel/promtool:check_rules_test holds the checker to fixtures written to
fail: an invalid expression, a file that is not a rule file, a rule test
whose expectation does not hold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
… tests run, by a pinned promtool in the unit tests (#1492) (#1499)
* test(observability): the alert rule files are checked, and their rule tests run, by a pinned promtool in the unit tests (#1492)
Nothing in the build ran promtool, so a rule file under docs/observability
was checked by hand only, and so would be the rule test #1490 adds.
- MODULE.bazel pins the official Prometheus 3.15.0 release archives (linux
and darwin, amd64 and arm64, sha256 from the release's sha256sums.txt), the
way oras and actionlint are pinned. //bazel/promtool selects the host's
promtool; :version_test fails until its EXPECTED moves with a bump.
- promtool_rules_test (//bazel/promtool:defs.bzl) runs `promtool check rules`
on every rule file and `promtool test rules` on every rule test. It fails on
no rule file at all, and on a .yml that sits beside the files it was handed
and was not handed.
- //:observability_rules_test applies it to docs/observability by glob: every
.yml there is a rule file, except <name>_test.yml, which is a rule test.
It is in the root package because a BUILD file in docs/observability would
take that directory's .md files out of the website's inputs.
- //bazel/promtool:check_rules_test holds the checker to fixtures written to
fail: an invalid expression, a file that is not a rule file, a rule test
whose expectation does not hold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(promtool): fixture setup is fatal, so a negative case cannot pass on a missing file
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
---------
Co-authored-by: Claude Opus 5.5 <[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
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 #1480
Closes #1482
Closes #1481
Three follow-ups to #1479 (the unpinned-cluster report). They are one pull request because they share one vocabulary: #1482 adds a
reason, and the alert rules of #1481 and the runbook text of #1480 enumerate the reasons.What
#1480: the NACK counters are seeded
aether.agent.xds.nacksandaether.agent.xds.ack_wait_failureswere created by their first increment. A proxy that never rejected anything had no series, so "no NACKs" could not be told from "this agent reports nothing", and the runbook's published-versus-acknowledged reading of the SAN-pin gauges leans on that counter.Both are now seeded at zero when the tracker is built, the way the unpinned counter is seeded per reason:
aether_agent_xds_nacks_total: seven series per agent. One per resource type the agent serves (Listener, Cluster, ClusterLoadAssignment, RouteConfiguration, Secret, TypedExtensionConfig, each as its fulltype.googleapis.com/…URL) andother.aether_agent_xds_ack_wait_failures_total: four series (present/absentbynack/timeout).The set of type URLs is closed. A NACK of a type outside it is counted under
otherand cannot open a series at runtime (nothing sends one today: the tracker only sees responses the agent's own server wrote). A test in the cache package holds the list to what a snapshot actually publishes, for the node proxy and for the edge, so a resource type added to the snapshot fails the build until it has a seeded series.#1482: no TLS published is not the validation gap
Before the node agent has its SVID nothing it publishes carries TLS (an HTTP cluster goes out bare, the TCP floor cluster is withheld). An entry whose endpoints carry no namespace was still counted and logged under
no_namespace_metadata, the reason that otherwise means "TLS is served and checks no server identity".Choice: a fourth reason,
tls_not_published, not "do not count the entry while no TLS is published". Reasons:unpinned, the counter's sum, the gauge's sum, the soak gate'sincrease) is what it was. Dropping the entries instead would have removed a known-future gap from every signal for as long as a node waits for its SVID, and for good on a node whose SVID never arrives.trust_domain_unknown, which is already a reported state in which the node publishes no TLS (A cluster published with an empty trust domain has no SAN pin at all, silently #832). Hiding one "no TLS yet" state and reporting the other would be two rules for one situation.no_namespace_metadatanow means exactly one thing: TLS published without a pin. That is what lets the alert below be critical on it without firing for an agent that is merely starting.How "never hidden" is kept:
The reason is recorded where the pin is rendered (
renderSANPin), from whether the node can publish TLS (mtlsReady: a served node SVID and a trust domain). The node SVID is already an input of the render memo, so its arrival re-renders the entry tono_namespace_metadatabefore the snapshot that first publishes TLS for it.That is not enough by itself: the TCP floor cluster is built at snapshot time from the node identity in force then, and
SetNodeIdentitystores the identity before it recomputes. A snapshot generated between the two would carry a TLS floor cluster with no pin while its entry still saidtls_not_published. So a snapshot build, after the last builder that reads the node identity, reports everytls_not_publishedentry asno_namespace_metadataif the node can publish TLS (promoteTLSNotPublished). It errs to the loud side: an HTTP entry of that one snapshot that is still published bare is named as the gap one snapshot early. The pin history (and so the acknowledged gauge) is filed with the corrected counts.The other direction, found in review: a TCP floor entry stays in the cluster cache whether or not its
tcp:cluster is published (only a service in the capture TCP set, or on the edge one a route references, gets one). With no namespace metadata it was reported asno_namespace_metadataalthough no TLS for it was in the snapshot. The build now reports such an entry astls_not_publishedwhen its floor cluster is not among the ones it just built (demoteUnpublishedFloors), and as the gap again in the snapshot that publishes the floor. So after both corrections an entry istls_not_publishedexactly when the snapshot carries no TLS cluster for it. This case is not bounded by the SVID: it lasts until the floor is published, and the warning rule then points at the registry data (the rule file and the runbook say so).The trust-domain window is untouched: with no trust domain every entry is
trust_domain_unknown, as before.Every place that enumerates the reasons is updated: the closed set and its seeding, the two gauges (five series per agent, was four), the counter (four, was three), the WARN bound (at most four lines per snapshot), the runbook's reason table,
docs/observability/README.md, the soak grade's fixtures and itsharness_test.shexpectations,e2e/soak/README.md, and the alert rules.The soak gate (
e2e/soak/prober-grade.sh) sums every series whatever its labels, so its verdicts do not change; only comments in the script change. The fixtures of every new-shape scenario gain the fourth series per agent.#1481: alert rules
docs/observability/agent-pin-alerts.yml, where the repository keeps its example rules, with a promtool unit test beside it (agent-pin-alerts_test.yml).for:AetherMeshClusterUnpinnedpin="unpinned", reasonno_namespace_metadataorpin_not_rendered, per job, node and reasonAetherMeshClusterPinPendingtrust_domain_unknownortls_not_publishedAetherProxyHoldsUnpinnedClustersThe
for:that rides out an agent start is 5 minutes, on the two reasons that can occur at a start:aether_agent_spire_wait_seconds, every observation in the lowest bucket). The agent exports every 60 s, so a normal start is shorter than one export.DefaultWaitWarnAfter,--spire-wait-warn-after) reports NotReady. That is the agent's own bound on a healthy start.AetherMeshClusterUnpinnedhas no start-up window to ride out (since #1482 the same entries aretls_not_publisheduntil TLS exists); its 3 minutes are three consecutive exports.The divergence rule is included, and is sound against #1483. The acknowledged gauge has no series after an agent restart against an in-sync proxy. The rule compares two vectors, and a comparison returns nothing for a
(job, node)one side lacks, so it cannot fire on absence. It is one-directional (acknowledged above published: the proxy has not taken the update that pinned the clusters). Its residue is written in the file: during a proxy hot restart the gauge shows the last ACK from either generation, so a late ACK of an older snapshot from the generation that is leaving, on a node where no cluster changes afterwards, would hold it on the older state. That is why it is a warning with a 15 minutefor:.Nothing here names a cluster, a node or a namespace of any installation, and nothing in the maintainer's separate GitOps repository is touched.
Stored metric names
Read back, read-only, from a test cluster's Prometheus on 2026-10-08:
aether_agent_xds_ack_wait_failures_totalexists and is stored with exactly the labelsaether_xds_wait,aether_xds_reason,job,node. So the OTLP ingest turns the dots of an attribute key into underscores and adds_totalto a counter, like every other agent metric there.aether_agent_xds_nacks_total{aether_xds_type_url="type.googleapis.com/envoy.config.cluster.v3.Cluster"}. The NACK counter had no series at all in 30 days on that cluster, which is the defect of agent: the xDS NACK and ack-wait-failure counters are not seeded, so 'no NACKs' is an absent series #1480, so its stored name could not be read.aether_xds_type_url=~".*Cluster": the label name was right. The runbook now spells the exact value, says the counter is seeded, and says which of the two names was read and which was derived.aether_agent_identity_cluster_unpinned_totalcarriesjobandnodefor both the node agent and the edge, so the rules group by(job, node, reason). The cluster runs an agent from before feat(agent): the unpinned-cluster warning gives each cluster its own cause, and gauges record the SAN-pin state published and acknowledged (#1424, #1425) #1479, so the gauges and thereasonlabel are not there to read.Evidence
Red, then green. Each production behaviour was seen failing before the code that makes it pass, or by reverting that code; every such edit was reverted and the tree checked clean.
before any NACK the counter must already exportTestMetrics_NacksSeededPerTypeURLTestMetrics_WaitFailuresSeededTestMetrics_NacksSeededPerTypeURLothermapping removed:an unserved type URL must not open a series of its ownTestMetrics_NacksSeededPerTypeURLExtensionConfigTyperemoved from the list: fails for the node proxy and the edgeTestEveryPublishedResourceTypeHasASeededNackSeries,TestMetrics_NacksSeededPerTypeURLtls_not_published, and the snapshot that first publishes TLS saysno_namespace_metadatano_namespace_metadatawithpinned:0TestNoNamespaceIsNotTheValidationGapUntilTLSIsPublisheda snapshot that carries TLS without a pin must not call it tls_not_publishedTestTLSNotPublishedIsNeverTheReasonOfASnapshotThatCarriesTLStcp:rawnons…underno_namespace_metadatawhile the snapshot held no such clusterTestUnpublishedTCPFloorIsNotTheValidationGapTestTLSNotPublishedIsNotTheTrustDomainWindowreadPinGaugeholds both gauges topinandreasonalone on every read; the newrequireOnlyClosedReasonSeriesholds the counter toreasonalone, from the closed set, one series per reasonTestNoNamespaceIsNotTheValidationGapUntilTLSIsPublished//e2e/soak:harness_testfor:, critical on every reason, the warning withouttls_not_published, a divergence expression that fires on an absent gauge, one that fires in both directions): each fails the promtool test, the unchanged file passesagent-pin-alerts_test.yml, promtool 3.5.0Run on the final tree:
bazel test //agent/internal/xds/... //agent/internal/cmd/... //agent/test/envoy_validate/... //e2e/soak:all: 11 of 11 passbazel test --config=raceonack_test,cache_test,cachemetrics_test: passbazel build --config=lint --@aspect_rules_lint//lint:fail_on_violationover//agent/internal/xds/...,//agent/internal/cmd/...,//e2e/soak:all: pass (scoped to the packages touched, not//...)make format-check: pass;make gazelle: no further changepromtool check rulesandpromtool test rules(3.5.0, run by hand): passNo generated xDS resource changes, and no chart changes, so no chart version is bumped.
Not verified
Nothing here has run on a cluster.
aether_xds_type_urllabel are derived from its sibling, as above.promoteTLSNotPublishedcloses is forced in a test by storing the identity without the recompute; it has not been observed in a running agent.pin="pinned"count (the report keeps no names for pinned entries). It overstates a healthy number and hides nothing; it is not changed here.//...) and the plaingo build ./...were not run locally; CI runs both.What the first deploy should show, per node agent and for the edge:
aether_agent_xds_nacks_total: seven series at0(six type URLs andother) from the first export of each new pod.aether_agent_xds_ack_wait_failures_total: four series at0. If the label is notaether_xds_type_url, the runbook's expression needs the name the store shows.aether_agent_snapshot_tls_clusters: five series,pin="pinned"above zero and the fourpin="unpinned"series at0at rest.aether_agent_identity_cluster_unpinned_total: four series per agent.tls_not_publishedortrust_domain_unknownmay move in the counter for a snapshot or two;no_namespace_metadatamust not, unless a service really has endpoints with no namespace. On an agent before this change the same start would have counted underno_namespace_metadata.prober-grade.shover a window that includes the agent roll: the sameUNPINNEDverdict as before, with any movement at the roll now printed asUNPINNED reason=tls_not_published …orreason=trust_domain_unknown ….An agent wrote this pull request.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr