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
docs(proposals): 045, the TLS-1.3-compatible probe before the bump; soak checks that cannot pass vacuously - #1736
The check names the stat keys that exist: <ns>/<svc> for an h2 service, tcp_<ns>/<svc>[_<port>] for raw TCP.
The series must exist and be non-zero before "no TLSv1.2" counts, so the check cannot pass on an empty query.
It expects TLS 1.3 from 1.41-dev source proxies and TLS 1.2 from 1.40.0 ones, which covers the baseline and the rollback.
Request failures use Envoy's real reset counters, upstream_rq_rx_reset + upstream_rq_tx_reset (there is no upstream_rq_reset), and absent series default to zero.
Traffic through every node's listener: each node gets a single-endpoint QUIC target with a remote source, verified over HTTP/3 before each roll.
Per-node rates: every rate and increase is taken per node, on series carrying the node label, so another node's traffic cannot mask a failed handoff.
…oak checks that cannot pass vacuously
- Step 4 is now the owner's requirement: the TLS-1.3-compatible inbound
readiness probe (#1735, an HTTP/2 GET the inbound answers itself) merges
before #1733, and its agent is rolled out before the proxy upgrade. The TLS
1.2 pin is gone.
- The TLS check names the keys that exist (<ns>/<svc>, tcp_<ns>/<svc>[_<port>]),
requires the series to exist before "no TLSv1.2" counts, and expects TLS 1.3
from 1.41-dev sources and TLS 1.2 from 1.40.0 ones (baseline, rollback).
- Request failures use Envoy's real reset counters (upstream_rq_rx_reset,
upstream_rq_tx_reset), with absent series defaulting to zero.
- A single-endpoint QUIC target per node, verified over HTTP/3 before each
roll, and every rate taken per node on series carrying the node label.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The preflight checks can falsely confirm HTTP/3 use through shared inbound counters and reject healthy h2 traffic when pooled connections produce no new TLS handshakes.
The reason will be displayed to describe this comment to others. Learn more.
pr-reviewer: changes @ bf15967 CI: green on this head. Every reported check passed: ci, test, race, shell, format, diff, deps-audit, netns, proxy-pin, envoy-api-parity, actionlint, CodeQL, coverage and the proxy gate. e2e, integration and the proxy test legs were skipped, as the change is docs-only. The findings below are about the design text, not CI.
Previous findings
#1732's nit on the TLS 1.3 soak check (it used the key cluster.<svc>.ssl.versions.TLSv1.3, which no aether cluster reports under): fixed. The check now names the keys that exist: <ns>/<svc> for an h2 service, tcp_<ns>/<svc>[_<port>] for raw TCP. It says that nothing is keyed cluster.<svc>, and it requires the series to exist with a non-zero rate before "no TLSv1.2" counts. It also expects TLS 1.2 from a 1.40.0 source, so it no longer fails a healthy baseline or rollback.
Findings
Inline, three. Two of them, the node-only label during a handoff and or vector(0) in per-node sums, mean checks that this PR makes non-vacuous can still read garbage, or pass on a failing node. One minor: the TLS checks' window.
Verified
The new probe text matches #1735 at b07f76b. The probe is an HTTP/2 GET of MeshLivePath (/-/-/live) answered by the inbound's first HTTP filter on the no-SNI h2 chain, with no pass-through and no cluster condition (TestInboundReadyProbePathIsAnsweredByTheInboundItself). It still has its own transport socket, ReuseConnection: false and the 5 s interval. The live test TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity exists, and validate-built-proxy.sh runs it against the built proxy.
The stat keys: TCPStatKey / TCPPortStatKey / QUICAltStatName in agent/internal/xds/proxy/egress.go, and the <ns>/<svc> key for h2 service clusters.
Envoy's cluster stats: upstream_rq_rx_reset, upstream_rq_tx_reset and upstream_rq_rx_reset_no_error exist, and NO_ERROR resets go only to the last one (conn_pool_base.cc). There is no upstream_rq_reset. upstream_rq_5xx is created on first use.
The order in step 4 is coherent with the release flow. Every merge to main publishes agent images and the chart. #1733 starts proxy-release.yml, whose pin pull request auto-merges with no hold. The new probe config is served by the agent, so it also applies to 1.40.0 proxies. Nothing enforces the order, though: #1733 must not be merged until every node's agent runs the #1735 image. The step says so.
Not run
Whether Envoy 1.40.0 already separates upstream_rq_rx_reset_no_error. If it doesn't, the 1.40.0 baseline counts NO_ERROR resets in rx_reset and is more lenient than the 1.41-dev rolls it is compared with. Not checked.
No local tests. The change is docs only.
Deploy risk
None from merging. The change is docs only and triggers no proxy release or chart change. The doc does govern when #1733 merges and how its soak is graded.
Notes
#1735 is still open. This text describes it as merged before #1733, so it should merge after #1735 lands, or together with it.
…windows after the parent exits
- Rates are taken per proxy pod (k8s.pod.name / uid) and then summed by node:
the hot-restart parent and the surge child share the node label, so per-node
series alone interleave two generations' counters.
- The failure sum is one __name__=~ selector summed by node, with an
`or on(node)` zero anchor; a bare `or vector(0)` has no labels and lets a
node with no failure series drop out and pass.
- TLS windows start when the node's parent has exited; ssl.versions counts
handshakes, so the non-zero precondition holds only right after a roll, and
a window with none is inconclusive.
- upstream_rq_rx_reset_no_error exists at v1.40.0 too, so both versions are
graded with the same split.
- The order is explicit: #1733 merges only after every node's agent runs the
#1735 image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Both TCP and QUIC use the same http.inbound request counters (agent/internal/xds/proxy/ingress.go:294–297,472), so HTTP/2 traffic or another pod can make this check pass without the selected target receiving HTTP/3. Verify the generated load in destination-reported access logs, selecting the target's pod identity and requiring protocol="HTTP/3". The aggregate downstream_rq_total check below likewise cannot establish target-specific QUIC progress.
Handle newly appearing failure counters and insufficient samples
A lazily created failure counter first sampled at 1 and then remaining at 1 contributes zero to increase(); with only one sample, it produces no row, which the fallback also replaces with zero. This can omit the first 5xx during a handoff. Define how initial increments are counted, and treat newly appearing nonzero counters or insufficient samples as inconclusive unless a reliable counter baseline is available.
The reason will be displayed to describe this comment to others. Learn more.
pr-reviewer: changes @ 163c16e CI: green on this head. Every reported check passed: ci, test, race, shell, format, diff, deps-audit, netns, proxy-pin, envoy-api-parity, actionlint, CodeQL, coverage and the proxy gate. e2e, integration and the proxy test legs were skipped, as the change is docs-only. The findings below are about the design text, not CI.
Previous findings
node alone does not separate the hot-restart parent and the surge child (major): fixed. The doc now requires the proxy pod (k8s.pod.name / k8s.pod.uid) on these series, takes every increase() / rate() per pod and only then sums by node. docs/observability/metric-labels.md confirms the node proxy's Envoy stats carry both resource attributes.
A bare or vector(0) lets a node with no failure series drop out (major): fixed as stated. The failure sum is now one __name__=~ selector summed by node, with an or on(node) (0 * group by (node) (...upstream_rq_total...)) anchor, so a node carrying load always has a row. A related gap remains: a series that first appears inside the window is not counted. See the new inline finding.
TLS windows: parent overlap and the handshake precondition (minor): partly fixed. The window now starts after the parent exits, and a window with no handshakes is inconclusive rather than a pass. That combination is likely to make most windows inconclusive, though, and a first-ever TLSv1.2 handshake can still read as zero. See the new inline findings.
Findings
Inline. One major (counters that first appear inside a window are invisible to increase()), one minor (TLS windows are likely to see no handshakes) and one nit (the Prometheus form of the QUIC listener series).
Verified
QUICAltStatName (agent/internal/xds/proxy/egress.go) yields <ns>/<svc>@<ns>/<sa>. QUICClusterFrom sets the twin's protocol options to Http3ProtocolOptions, an explicit HTTP/3 config with no fallback, so a twin's upstream_rq_total counts HTTP/3 requests only.
The per-pod QUIC inbound listener is inbound_<ns>_<pod>_h3, with the stat prefix of the same name (agent/internal/xds/proxy/ingress.go). The h2 and QUIC inbound chains both build their HCM with the inbound stat prefix, as the doc says.
In Envoy at 011e396, downstream_cx_active (an Accumulate gauge) and downstream_cx_total on a QUIC listener are maintained by EnvoyQuicDispatcher (source/common/quic/envoy_quic_dispatcher.cc).
In Envoy at 011e396, the OpenTelemetry stat sink exports only metrics whose used() is true, and exports cumulative counters by default. upstream_rq_5xx is a code stat created on first use. A failure counter that has never moved is therefore not exported at all.
The anchor's PromQL is well formed: group by (node) yields 1 per node, 0 * keeps the node label, and or on(node) adds only nodes absent from the left side. increase() drops __name__, so the multi-metric selector sums cleanly by node.
Defaults are drainTime: 10s and parentShutdownTime: 15s (charts/aether/values.yaml). UpstreamIdleTimeout is 30 s.
The step 4 ordering (#1735 merges, every node's agent runs it, then #1733 merges) agrees with the release section's description of what merging #1733 triggers.
Not run
No PromQL was run against a live Prometheus. The increase() behaviour on series that begin inside the range is stated from Prometheus's documented extrapolation rules. It was not measured.
No build or tests. This PR changes documentation only.
Deploy risk
None from this PR: it changes one proposal document. It sets the conditions under which #1733 merges and the soak's pass criteria.
Notes
The readiness-probe paragraph (#48570 says ..., unchanged in this delta) describes #1735 as it currently stands. If review of #1735 changes the probe's path, this paragraph should follow.
…e sources that guarantee TLS samples
- increase() reads a counter series born inside the window as 0 (the OTel sink
exports only used counters, cumulative). Series that existed at the window's
start contribute increase(), series born in it contribute max_over_time():
(increase(X[w]) and X offset w) or (max_over_time(X[w]) unless X offset w).
Applied to the failure sum and to the TLS version counters.
- The TLS checks read two sources that handshake inside every window: a raw-TCP
load target with one connection per request, and the inbound-readiness probe
clusters (a fresh connection to every local pod every 5 s).
- The Prometheus form of the pod's QUIC listener stat.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because the handoff validation can misattribute serving generations, miss initial counter failures, and mistake probe traffic for successful HTTP/3 forward progress.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The proposal’s PromQL rule can hide initial reset failures or produce duplicate-labelset errors, and its specified TLS sources cannot provide the required destination identity log.
The reason will be displayed to describe this comment to others. Learn more.
pr-reviewer: changes @ c2117ad CI: green on this head. Every reported check passed: ci, test, race, shell, format, diff, deps-audit, netns, proxy-pin, envoy-api-parity, actionlint, CodeQL, coverage and the proxy gate. e2e, integration and the proxy test legs were skipped, as the change is docs-only. The findings below are about the design text, not CI.
Previous findings
Born-in-window failure counters read as 0 (major, the failure query): addressed in principle. The rule (increase(X[w]) and X offset w) or (max_over_time(X[w]) unless X offset w) is right for a single counter. Both branches keep every label except __name__, so node survives for the or on(node) anchor. Applied to the four-counter __name__=~ selector, though, the rule either errors or hides a newly created failure counter again. See the new inline finding. For the TLS version counters it works as intended: with use_all_default_tags: false each version is its own metric name.
TLS windows after the parent exits see no handshakes (minor): fixed. Both named sources handshake inside every window. The inbound-readiness probe clusters use interval 5 s and reuse_connection: false (the #1735 head). The chart's stats exclusions keep cluster.inboundready_*.ssl.*. A raw-TCP floor target with one connection per request gets one upstream mTLS connection per request from tcp_proxy. Every node has a probe source, because each node has at least its pinned QUIC target pod.
Prometheus form of the QUIC listener stat (nit): fixed. The aether.namespace / aether.pod stats tags remove _<ns> and _<pod>_h3 from listener.inbound_<ns>_<pod>_h3.*. With the sink prefix envoy and tag-extracted names, the series is envoy_listener_inbound_downstream_cx_active{aether_namespace, aether_pod="<pod>_h3"}.
Node-only label and bare or vector(0) (fixed earlier): not regressed. The per-pod-then-by-node text and the or on(node) anchor still stand.
Findings
Two inline: one major (the four-counter selector defeats the born-in-window rule) and one minor (the TLS window and hot-restart stat merging).
Verified
In Envoy, the parent stops its own stat flushing when the child starts (InstanceBase::shutdownAdmin resets stat_flush_timer_). From then on, its counter deltas reach Prometheus only through the child's merge (exportStatsToChild latches, StatMerger adds), once per child flush until the parent exits. So the born-in-window rule does not double-count the parent's failures across the parent's and the child's series.
and / unless match on the full label set apart from __name__, so increase(...) (name dropped) against X offset w (name kept) matches as intended for a single metric name.
The probe cluster's TLS context sets no tls_params, so it shows the proxy's default client TLS version.
Not run
No PromQL was run against a Prometheus. The duplicate-labelset behaviour and the delayed-name-removal behaviour come from the Prometheus engine's documented semantics, not from a test here. The load generator's one-connection-per-request client is a requirement in the proposal and was not checked against the harness.
Deploy risk
None. The change is documentation only. It sets the pass criteria for the post-bump soak and changes no chart, image or workflow.
Notes
In a series created inside the window, a counter reset (an Envoy restart within the same pod) makes max_over_time() undercount. This is a rare edge and doesn't block.
…fter the last parent merge; live-validated PromQL
- The born-in-window rule is applied per counter and the per-node terms are
added with +, each anchored with 'or on(node)'. A single __name__=~ selector
over several counters is rejected by Prometheus once increase() drops the
name (measured: 'vector cannot contain metrics with the same labelset').
- TLS windows start two 5 s stats flushes after the parent exits: until then
the child merges the parent's latched deltas, which would create a
TLSv1.2 series in a 1.41-dev child. The node proxy's stats are pushed over
OTLP every flush and stamped at export (measured: 60 samples per 5 min, no
up series for job aether-proxy).
- Every expression uses the series names exported today (_total suffixes,
aether_cluster, aether_namespace/aether_pod) and was run against the
reference cluster's Prometheus, returning one row per node. The pod label
the per-pod rule needs is not promoted by the pipeline today; that is now a
stated precondition of the soak.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The TLS gate can pass on probe handshakes alone without validating application traffic, and the required load targets do not guarantee the h2 access logs needed for the source-identity check.
The reason will be displayed to describe this comment to others. Learn more.
pr-reviewer: approve @ 8c52c16 CI: green on this head. Every reported check passed: ci, test, race, shell, format, diff, deps-audit, netns, proxy-pin, envoy-api-parity, actionlint, CodeQL, coverage and the proxy gate. e2e, integration and the proxy test legs were skipped, as the change is docs-only.
major, the born-in-window rule over a four-counter __name__=~ selector: fixed. The rule is now applied to one counter at a time (T(C), line 578), each per-node term is anchored with or on(node) (0 * group by (node) (A{S})), and the four failure terms are added with + (line 596). With one metric name per term, increase()/max_over_time() dropping __name__ can no longer produce duplicate label sets, and and/unless can no longer match one counter's series against another's. Each term carries only node, so + matches one-to-one on node.
minor, the child merging the parent's latched deltas until the parent exits: fixed. Each TLS window now starts two 5 s stats flushes (10 s) after the parent exits (lines 653-675). That holds against the chart: the node proxy pushes stats over OTLP from the open_telemetry stat sink, stats_flush_interval is left at Envoy's 5 s default, and each sample carries its export timestamp, so the last merged delta has a timestamp at or before one flush after the exit. After that point the child's version series exist and stay flat, so increase() reads 0 for the parent's version. The rollback case (a TLS 1.3 series created in a 1.40.0 child) works the same way.
Fixed earlier, checked for regressions: none. The node and per-pod requirement is still there; the doc now says plainly that the pod label is not promoted today and that promoting it is a precondition (lines 546-554). The or vector(0) problem stays replaced by the node anchor. The TLS sources are still the raw-TCP floor and the inboundready_<ns>_<pod> probe clusters. The QUIC twin series is still aether_cluster=~"<ns>/<svc>@.*". The per-generation measurement principle is unchanged.
Findings
Two minor findings, posted inline. Neither blocks.
T(C) is written without outer parentheses, but it ends in an or term. Pasting it in as text into T(a) + T(b) or T(...) == 0 changes what the query means.
The source-identity check in the access log does not require that any lines were logged in the window, and it does not require that every line shows the expected SAN.
Verified (against the code at this head)
TCPStatKey and TCPPortStatKey (agent/internal/xds/proxy/egress.go) produce tcp_<ns>/<svc> and tcp_<ns>/<svc>_<port>. The chart's aether.cluster tag regex ^cluster\.(([^.]+)\.) extracts inboundready_<ns>_<pod> and tcp_<ns>/<svc>, so the TLS selector aether_cluster=~"inboundready_.*|tcp_<ns>/<svc>" matches both sources.
NewInboundReadyProbeCluster / InboundReadyProbeTransportSocket set no tls_params, so the probe handshakes under the proxy's default client TLS settings, as the doc says. They use reuse_connection: false with a 5 s interval and no-traffic interval.
The destination's raw-TCP floor tcp_proxy (ingress.go, buildTCPProxyNetworkFilter) has no access log. The L4 access log is attached only to the source's capture chains (attachL4AccessLog), and it records upstream_peer_uri_san, the server's identity.
The inbound HTTP access log filter includes notHealthCheckFilter. On main the readiness probe is a connect-only TCP check, so it sends no HTTP request at all. Under the HTTP/2 probe this doc depends on, the request goes to the liveness path, which the inbound's health_check filter answers, so the log drops it either way.
downstream_peer_uri_san (%DOWNSTREAM_PEER_URI_SAN%) is the destination reporter's peer-identity field (peerIdentityFields). Once the parent exits, its upstream connections are gone, so the h2 target's requests use connections the child opened.
The chart leaves stats_flush_interval at the default, and the stats path is OTLP push with no scrape.
Not run
No PromQL was run. The doc's measured claims about the live pipeline were not reproduced: the duplicate-labelset error, 60 samples per 5 minutes, no up series, and one row per node. They are consistent with the chart configuration.
The local test gate was not run, because the PR changes only a document.
Deploy risk
None. The PR is a single proposal document, and merging it triggers no build, image or chart release.
Notes
The soak this doc describes depends on two things that are not in place yet. The HTTP/2 inbound-readiness probe is still an open PR. The proxy pod label also has to be promoted on the node proxy's stats. Both are stated in the doc as preconditions.
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.
Docs only. A follow-up to proposal 045 (#1732, merged as 12910b1), fixing the review notes deferred from #1732 before the soak.
/-/-/livethat the inbound answers itself. The TLS 1.2 pin text is removed.<ns>/<svc>for an h2 service,tcp_<ns>/<svc>[_<port>]for raw TCP.upstream_rq_rx_reset+upstream_rq_tx_reset(there is noupstream_rq_reset), and absent series default to zero.nodelabel, so another node's traffic cannot mask a failed handoff.Written by an agent.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx