Skip to content

fix(agent): the inbound-readiness probe requires the inbound to accept the node identity, on TLS 1.3 too - #1735

Merged
bpalermo-agent-bot[bot] merged 5 commits into
mainfrom
fleet/probe-tls13-inbound-ready
Nov 1, 2026
Merged

bpalermo-agent-bot[bot] merged 5 commits into
mainfrom
fleet/probe-tls13-inbound-ready

Conversation

@bpalermo

@bpalermo bpalermo commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Must merge before #1733, per the owner's decision. The 1.41 snapshot's envoyproxy/envoy#48570 makes TLS 1.3 the upstream default, and under TLS 1.3 the old probe reported ready against an inbound that rejected it.

The problem.

  • NewInboundReadyProbeCluster used a connect-only TCP health check over TLS. It passes on the Connected event, which fires when the client's handshake completes.
  • Under TLS 1.2, that is after the server's Finished, so an inbound rejecting the node SVID fails the probe.
  • Under TLS 1.3, the client completes as soon as it has sent its certificate. The server's rejection arrives later, as an alert on an established connection, so the probe passed.

The fix. The preferred direction: the inbound answers the probe itself.

  • The probe is now an HTTP/2 GET of MeshLivePath (/-/-/live). The inbound already answers that path locally with its liveness health_check filter.
  • That filter is the first HTTP filter of the no-SNI h2 chain the probe's ALPN already selects. It is non-pass-through and has no cluster condition, so the application never takes part.
  • No new route or chain was needed. The no-SNI h2 chain exists on every mTLS inbound, raw-TCP pods included.
  • A pass needs a response the inbound sends after accepting the connection. A rejection is a reset, so the check fails on both TLS versions.
  • Any HTTP response passes (expected_statuses 200-599). The inbound connection manager is not exempt from the overload manager: at heap >= 0.95 (stop_accepting_requests) it answers 503 before the health_check filter runs. Requiring 200 would fail every local pod's probe at once and demote every serving pod on the node, the registry flap the health gateway's bypass_overload_manager prevents. A 503 still proves the inbound accepted the node certificate.

Kept unchanged:

  • the probe's own transport socket: node SVID, SAN pin to the pod, no SNI, ALPN h2, max_session_keys: 0;
  • a fresh connection per check. reuse_connection: false is now load-bearing, since an HTTP check would otherwise reuse;
  • per-pod stats, and the 5 s cadence pins;
  • health-check requests stay out of the access log and the destination stats filter. They do add one request per local pod every 5 s to the node-wide http.inbound.* HCM counters.

Works on the current 1.40.0 proxy (measured below) and needs nothing newer.

Tests

  • Live, real Envoy (//agent/test/mtlspool TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity):
    • a destination Envoy runs the inbound listener as the agent builds it, and a probe Envoy runs the probe clusters as the agent builds them;

    • TLS is forced to 1.2 or 1.3, and the node SVID is either one the inbound's client SAN pin accepts or one it rejects (spiffe://<td>/node/…, outside the /ns/ shape).

    • On the connect-only probe (before the change): tls13_rejected reported membership_healthy=1, which is red.

    • With the change (pinned proxy 1.40.0, measured locally):

      case membership_healthy success / failure
      tls13_rejected 0 0 / 3
      tls12_rejected 0 0 / 3
      tls13_accepted 1 3 / 0
      tls12_accepted 1 3 / 0
      connect-only control under TLS 1.3 against the rejecting inbound 1 the hole: shows the harness discriminates
      tls13_accepted_inbound_503 (an inbound answering 503, as when overloaded) 1 3 / 0
      tls12_accepted_inbound_503 1 3 / 0
      tls13_rejected_inbound_503 0 0 / 3
    • The destination's ssl.fail_verify_san > 0 confirms the rejection is real. A direct mTLS GET confirms the second inbound answers 503.

    • Mutation run: without the 200-599 range, both accepted-503 cases go unhealthy.

    • Under --config=race, the test passes in 13 s with no race reported.

  • 1.41-dev: agent/test/envoy_validate/validate-built-proxy.sh also runs this test against the proxy a proxy PR builds. So proxy: Envoy 1.41.0-dev.20261028.011e396 under Bazel 9.3.1; drop aether1054c and aether1074 (proposal 045) #1733's CI, once it carries this change, runs it on the 1.41 snapshot. I ran that invocation by hand against the pinned binary with the same --override_repository, and it passes. The script itself was not run in this environment.
  • Unit (inboundready_test.go): the HTTP check's path, codec (h2) and accepted range (200-599). Also that the probe's path is answered by the first HTTP filter of the chain the probe lands on, with no pass-through and no cluster condition.

Gates

  • make gazelle / make tidy: no diff. make format-check and lint as CI runs it: pass.
  • make test-unit: 482 pass, 18 fail locally, all on the sandbox: Unix sockets not permitted, /tmp read-only, a UDS dial. The ci workflow runs them. The probe's own unit tests and the live test pass.
  • No chart change. docs/runbook.md: the probe's meaning, and how a rejection shows on the probe cluster (measured: TLS 1.3 raises both ssl_handshake and ssl_connection_error; TLS 1.2 raises ssl_connection_error only).

No proposal: this implements the TLS 1.3 mitigation proposal 045 calls for. Proposal 045's text for this probe (replacing the earlier TLS 1.2 pin) lands with #1736.

Written by an agent.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

…t the node identity, on TLS 1.3 too

The probe was a connect-only TCP health check over TLS, which passes on the
Connected event: the CLIENT's handshake completing. Under TLS 1.2 that comes
after the server's Finished, so an inbound rejecting the node SVID failed the
probe. Under TLS 1.3 the client completes as soon as it has sent its
certificate and the server's rejection arrives later on an established
connection, so the probe reported ready against an inbound that refused it.
envoyproxy/envoy#48570, in the 1.41 snapshot proposal 045 moves to, makes TLS
1.3 the upstream default, so this has to land before that bump.

The probe is now an HTTP/2 GET of MeshLivePath that the inbound answers itself:
the liveness health_check filter is the first HTTP filter of the no-SNI h2
chain the probe's ALPN already selects, non-pass-through and with no cluster
condition, so the application never takes part. A pass needs a response the
inbound sends after accepting the connection; a rejection is a reset and fails
the check, on both TLS versions. Kept: the probe's own transport socket (node
SVID, SAN pin to the pod, no SNI, ALPN h2, max_session_keys 0), a fresh
connection per check (now load-bearing: reuse_connection false), per-pod stats,
and the 5 s cadence pins. Health-check requests stay out of the access log
(notHealthCheckFilter) and the destination stats filter.

Tests:
- //agent/test/mtlspool TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity
  runs the inbound listener as the agent builds it and the probe clusters
  against it, with TLS forced to 1.2 or 1.3 and a node SVID the inbound's
  client SAN pin accepts or rejects. Red on the connect-only probe
  (tls13_rejected: membership_healthy=1), green now; a connect-only control
  under TLS 1.3 still reports the hole, so the harness discriminates.
- validate-built-proxy.sh also runs it against the proxy a proxy PR builds, so
  #1733's CI exercises it on the 1.41 snapshot.
- Unit: the HTTP check's path, codec and default status, and that the path is
  answered by the first filter of the probe's chain with no cluster condition.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Copilot AI balanced review requested due to automatic review settings November 1, 2026 17:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the inbound-readiness probe change.

No open issues 🎉

What changed in this PR

This PR fixes Aether’s inbound-readiness probe so readiness requires the inbound listener to accept the node’s client certificate, including under TLS 1.3. It prepares the agent for the Envoy upgrade in #1733 without making readiness depend on the application.

Changes:

  • Replaces the connect-only TLS check with an HTTP/2 liveness request answered by the inbound itself, preserving fresh connections and the existing cadence.
  • Adds unit and live Envoy regression coverage for accepted and rejected identities under TLS 1.2 and TLS 1.3.
  • Extends built-proxy validation and documents the probe’s updated meaning and failure signals.
File Description
docs/​runbook.md Explains certificate acceptance and TLS 1.3 rejection signals.
agent/​test/​mtlspool/​inbound_ready_tls13_test.go Adds live TLS-version and identity-acceptance regression cases.
agent/​test/​mtlspool/​BUILD.bazel Registers the new live test.
agent/​test/​envoy_validate/​validate-built-proxy.sh Runs the regression test against a freshly built proxy.
agent/​internal/​xds/​proxy/​inboundready_test.go Verifies HTTP/2 probe configuration and local liveness handling.
agent/​internal/​xds/​proxy/​cluster.go Changes inbound readiness to an HTTP/2 liveness check.
agent/​internal/​xds/​proxy/​BUILD.bazel Adds the codec-type dependency used by unit tests.

Review effort: Balanced

bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…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

@bpalermo-agent-review bpalermo-agent-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-reviewer: changes @ b07f76b
CI: not complete on this head. race has been running for about an hour and had not finished when this was posted. Everything else passed, including test, which runs the new //agent/test/mtlspool:mtlspool_test against the pinned Envoy, plus coverage, CodeQL and the drop gate. e2e, integration and the proxy workflow's test/shell legs were skipped (no proxy/ change). The changes requested below don't depend on how race finishes.

Previous findings

None (first review).

Findings

  • major (agent/internal/xds/proxy/cluster.go): the probe now makes a request through the inbound HCM, which is not exempt from the overload manager. At heap >= 0.95 (stop_accepting_requests, on by default) every local pod's probe gets a 503 before the health_check filter runs. After that, the agent's liveness loop demotes every already-serving pod on the node. That is the registry flap healthgateway.go sets bypass_overload_manager to avoid. Details are inline.
  • minor (docs/runbook.md): the TLS 1.3 rejection signature ("with no probe-side ssl_* counter") is not measured and probably wrong. Details are inline.
  • minor (docs/proposals/045_envoy-1.41-dev-snapshot.md, not in this PR): the proposal still requires the probe's transport socket to pin tls_maximum_protocol_version: TLSv1_2, with a test asserting the pin (TLS 1.3 and the inbound readiness probe, and Validation step 4). This PR implements a different mitigation. It closes the same hole, and on both TLS versions. Until 045 is amended, step 4's gate names a check that no longer exists. The amendment should land before or with the 1.41 bump, not after the deploy.
  • nit (agent/test/envoy_validate/builders.go:189, not in this PR): the comment still describes the probe as "a TCP (connect-only) active health check". It also says the validate gate proves acceptance of "TCP health check + TLS transport socket". Both are now stale.
  • nit (agent/internal/xds/proxy/cluster.go, CLIENT IDENTITY paragraph): this text predates the PR but is now load-bearing. Details are inline.

Verified

  • The head is still b07f76b. The PR has one commit, and its base is the commit that added proposal 045.
  • The no-SNI h2 chain's first HTTP filter is the non-pass-through liveness health_check filter, which matches :path exactly on /-/-/live and has no cluster condition. Extension filters and the router come after it (buildInboundHCM). Read in the code.
  • Nothing in the chart or the agent calls /healthcheck/fail or uses a drain flags path. So the health_check filter's own 503 (healthCheckFailed) can't fire in normal operation.
  • The probe's transport socket has no tls_params. So on 1.40.0 the probe negotiates TLS 1.2, and on the 1.41 snapshot TLS 1.3. The HTTP check needs a response from the inbound either way, so the mitigation does not depend on the proxy version.
  • The live test forces both TLS versions and covers a rejecting and an accepting node identity. It carries a connect-only control that must report healthy under TLS 1.3, which shows the harness reproduces the hole. It also requires the destination's ssl.fail_verify_san to be above zero. If the probe change were reverted, tls13_rejected would fail. The logic is sound by reading. I did not run the test.
  • validate-built-proxy.sh runs the new test against the binary a proxy PR builds, with set -euo pipefail, the same override, and --nocache_test_results. So once the 1.41 bump PR carries this change, its CI exercises the test on the 1.41 snapshot.
  • The Envoy source (HCM decodeHeaders) sends the overload 503 before it creates the filter chain. liveness.go's inboundRegressed row demotes after livenessDemoteStreak (3 x 5 s).
  • bazel test //agent/internal/xds/proxy:proxy_test passes at this head.

Not run

  • //agent/test/mtlspool:mtlspool_test (it needs the pinned Envoy binary): I relied on CI's test job, which was still pending when this review was written.
  • validate-built-proxy.sh: this PR doesn't change proxy/, so the proxy workflow's test job was skipped and the script change has not run in CI yet. It first runs on the 1.41 bump PR.
  • No live measurement of the overload interaction or of the probe-side SSL counters. Both findings come from reading the code.

Deploy risk

Merging changes the xDS the agent emits: every pod's inboundready_* probe cluster switches from a TCP check to an HTTP/2 check. The new config reaches each node when its agent image rolls. On 1.40.0, behaviour is the same for an inbound that accepts the node identity. The new failure mode is the overload coupling above. Each local pod also adds one request every 5 s to the node-wide http.inbound.* counters.

Notes

The approach is stronger than the pin in the proposal: it doesn't rely on TLS 1.2 staying available to the probe. If the overload coupling is accepted rather than removed, the runbook and the PR description should say so, because it reverses a documented design decision.

Comment thread agent/internal/xds/proxy/cluster.go Resolved
Comment thread docs/runbook.md Resolved
Comment thread agent/internal/xds/proxy/cluster.go Resolved
… overload does not demote every local pod

The inbound connection manager is not exempt from the overload manager: at
heap >= 0.95 (stop_accepting_requests) it answers 503 before the health_check
filter runs. With Envoy's default expected status (200) every local pod's
probe would then fail and liveness.go would demote every serving pod on the
node, the registry flap the health gateway's bypass_overload_manager exists to
prevent. Any HTTP response proves the inbound accepted the node certificate,
and a TLS 1.3 rejection is still a reset, so expected_statuses is now 200-599.

- Live test: a second inbound whose liveness answer is a 503 (verified with a
  direct mTLS GET) stays ready for an accepted identity on TLS 1.2 and 1.3, and
  a rejected identity still fails against it. Without the status range the 503
  cases fail (mutation run). The test also logs the probe-side ssl.* counters.
- Runbook: measured, a TLS 1.3 rejection raises both ssl_handshake and
  ssl_connection_error on the probe cluster (TLS 1.2: connection_error only);
  the earlier 'no probe-side ssl_* counter' was wrong.
- Comments: the CLIENT IDENTITY paragraph names the inbound's /ns/ SAN pin;
  envoy_validate's builders no longer call the probe TCP connect-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Copilot AI balanced review requested due to automatic review settings November 1, 2026 19:15
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…oak checks that cannot pass vacuously (#1736)

* docs(proposals): 045, the TLS-1.3-compatible probe before the bump; soak 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

* docs(proposals): 045, per-pod rates, node-anchored failure sums, TLS 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

* docs(proposals): 045, prove HTTP/3 with QUIC-only signals, not the shared inbound HCM counter

The h2 and QUIC inbound chains share the 'inbound' HCM stat prefix, so its
request counter cannot show that a target's traffic is HTTP/3. Use the source
twin's upstream_rq_total (a QUIC-only cluster) and the pod's own QUIC
listener's downstream_cx_active instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

* docs(proposals): 045, born-in-window counters at full value; handshake 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

* docs(proposals): 045, per-counter born-in-window terms; TLS windows after 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

* docs(proposals): 045, the source identity comes from the h2 target's access log

Neither TLS source logs the caller at the destination: the raw-TCP floor's
tcp_proxy writes no access log and health-check requests are excluded from
the inbound access log. The h2 target's requests, on connections the child
opened, carry downstream_peer_uri_san instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the inbound-readiness probe update.

No open issues 🎉

Review effort: Balanced

@bpalermo-agent-review bpalermo-agent-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-reviewer: approve @ b130a72
CI: green on this head except race, which had just started when this was posted (it took about an hour on the previous head, and passed). test passed, including the live //agent/test/mtlspool:mtlspool_test with the new 503-inbound cases, along with coverage, CodeQL, the drop gate and every other check. e2e, integration and the proxy workflow's test/shell legs were skipped (no proxy/ change). Confirm race is green before merging.

Previous findings (from b07f76b)

  1. major, overload 503 fails every probe: fixed. expected_statuses is now [200, 600). In Envoy's HTTP health checker the range end is exclusive and validated <= 600, so this admits every status from 200 to 599. x-envoy-immediate-health-check-fail is only consulted for a status outside the expected ranges, and retriable_statuses is unset, so no response is retried or excluded. The overload 503 (stop_accepting_requests) is produced in ActiveStream::decodeHeaders, after the TLS handshake (client-certificate validation included) and the h2 codec, with filter-chain creation skipped. A response therefore still proves the inbound accepted the node certificate, and a TLS 1.3 rejection is still a reset. The unit test pins the range. The live test adds a 503-answering inbound: it stays ready for an accepted identity on TLS 1.2 and 1.3 and fails for a rejected one, and it checks the 503 with a direct mTLS GET. With Envoy's default of 200 the two accepted-503 cases would fail. The 503 there comes from the health_check filter rather than from real overload, which is a reasonable stand-in: the probe only sees the status.
  2. minor, runbook probe-side ssl_* claim: fixed. The "no probe-side ssl_* counter" sentence is gone. The section now gives measured per-version behaviour: TLS 1.2 bumps ssl_connection_error only, and TLS 1.3 bumps both ssl_handshake and ssl_connection_error. The test logs those counters. With that, the ssl_connection_error query's "handshake failed" label points the right way. The opening "inboundready alone is 0, the handshake is the problem" line is older wording and is still loose: a warming listener refuses the connection without any handshake. Under any-status, though, it is no longer contradicted by a non-200 path, so I am not raising it again.
  3. minor, proposal 045 text vs this design: moot. Proposal 045, as amended and merged, describes the probe as "a pass needs a response the inbound sends after it has accepted the connection". It never says 200 and does not keep the TLS 1.2 pin, so it matches this head. It does not mention the any-status choice or the overload reason. A one-line follow-up there would help, but nothing conflicts.
  4. nit, envoy_validate builders comment: fixed. It now describes an HTTP/2 health check with any status passing.
  5. nit, CLIENT IDENTITY "no SAN restriction": fixed. The paragraph now names the spiffe://<td>/ns/ client SAN pin and says why the node SVID satisfies it.

Findings

  • minor (inline): any-status covers the stop_accepting_requests rung (heap 0.95) but not the chart's stop_accepting_connections rung (heap 0.98), so the comment's "readiness must not follow overload" overstates what this change does.

Verified

  • Delta b07f76b..b130a72 read in full; the probe doc comment, the runbook section and the chart's overload actions read around it.
  • Envoy HTTP health-checker semantics, from source: range validation, [start, end) matching, the immediate-fail header only on a non-matching status, and retriable_statuses.
  • Overload 503 placement, from source: in HCM decodeHeaders, after TLS and the codec, with the filter chain skipped.
  • Every inbound chain's DownstreamTlsContext comes from one builder that requires a client certificate with the /ns/ SAN pin. A response from any inbound chain, a 404 or RBAC 403 included, therefore still comes after client-certificate acceptance. The server-side SAN pin rules out another listener answering on the address. Which filter answers the path is pinned at config level by the existing unit test.
  • Proposal 045 as merged is consistent with this head.
  • //agent/internal/xds/proxy:proxy_test passes at this head locally. The result came from the local disk cache for identical inputs.

Not run

  • //agent/test/mtlspool:mtlspool_test (the live Envoy test, including the new 503 cases) was not run locally; I rely on CI and the commit's stated mutation run.
  • No independent mutation run of the live test.

Deploy risk

Agent image change: when it rolls out, every node's inbound-readiness probe clusters change from 200-only to any status. Behaviour versus main: overload at heap 0.95-0.98 no longer demotes local pods. A drained inbound whose health_check filter answers 503 now also passes, as the connect-only probe on main did. Must merge before the 1.41 proxy bump, per proposal 045.

Notes

  • The branch is behind main (the proposal 045 amendment has merged since); an update-branch is needed before merge.

Comment thread agent/internal/xds/proxy/cluster.go Resolved
bpalermo and others added 2 commits November 1, 2026 16:30
…stop_accepting_connections

Any-status keeps pods ready under the chart's first overload stage
(stop_accepting_requests, heap >= 0.95), where the inbound answers 503. Under
the second (stop_accepting_connections, heap >= 0.98) the listeners stop
accepting, the probe times out and every local pod is demoted, as with the
connect-only probe before it. The code comment, the test comments and the
runbook now say exactly that, and the runbook names the overload gauge to
check when one node's probes all drop at once. No code change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Copilot AI balanced review requested due to automatic review settings November 1, 2026 19:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The gate affects every local endpoint, but live measurements cover only 1.40.0, leaving the regression on the actual 1.41-dev binary and the fixed-agent rollout unconfirmed before #1733’s proxy upgrade.

No open issues 🎉

Review effort: Balanced

@bpalermo-agent-review bpalermo-agent-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-reviewer: approve @ 80ab30a
CI: green on this head except race, which was still running when this was posted (it has taken about an hour on earlier heads, and passed). test passed, including the live //agent/test/mtlspool:mtlspool_test, along with coverage, CodeQL, the drop gate and every other check. e2e, integration and the proxy workflow's test/shell legs were skipped (no proxy/ change). Confirm race is green before merging.

Previous findings

  • minor, agent/internal/xds/proxy/cluster.go (any-status covers stop_accepting_requests but not stop_accepting_connections): fixed. The ExpectedStatuses comment now says what the 200-599 range covers (the 0.95 stage, where the inbound answers 503) and what it does not (the 0.98 stage, where listeners stop accepting, the 1 s check times out and local pods are demoted). It also says why that is not a regression. The function header, the unit-test comment, the live-test comment and the runbook make the same distinction, and none of them still says "readiness must not follow overload" without qualifying it. The behaviour is unchanged, as intended. Closing the gap is out of scope, and the text says so.

Findings

Two nits on the new runbook text, posted inline. Neither blocks.

Verified

  • Merge 49604b1 brings in only main. git diff b130a72 49604b1 matches git diff <old merge-base> 97099a03 (main's only new commit, #1736, docs/proposals/045_*.md) apart from index lines. The PR's own diff against its new base (97099a03..49604b1) matches the approved diff at b130a72 (<old base>..b130a72) hunk for hunk. No conflict resolution touched the PR's content.
  • 80ab30a is comments and docs only. In the Go files, every added or removed line is a // comment. cluster.go, inboundready_test.go and inbound_ready_tls13_test.go keep the same code, and the probe's Timeout 1 s, Interval 5 s, thresholds 1/2, ReuseConnection: false and ExpectedStatuses 200-599 are unchanged from b130a72.
  • The new text matches the chart (charts/aether/templates/agent-proxy-configmap.yaml): stop_accepting_requests at fixed_heap 0.95 and stop_accepting_connections at 0.98, as threshold triggers. proxy.overload.enabled defaults to true. The health-gateway listener sets bypass_overload_manager, so the agent can still read probe membership at 0.98, and the inbound listener has no such exemption.
  • 0.98 behaviour. The disabled listener stops accepting, so the TLS handshake gets no answer and the HTTP check fails on its 1 s timeout. The earlier connect-only TLS check needed the same handshake to complete and fails the same way, so the "not a regression" claim holds.
  • Demotion. A pod whose probe passed earlier in the epoch and now fails is inboundRegressed, and liveness.go demotes it after livenessDemoteStreak (3 ticks at 5 s). So a sustained 0.98 stage does demote every local pod that is serving. See the nit for the time window.
  • Metric name. Envoy's overload.envoy.overload_actions.stop_accepting_connections.active becomes envoy_overload_envoy_overload_actions_stop_accepting_connections_active in Prometheus, and the chart's stats_matcher doesn't exclude overload.*.

Not run

  • No local build or tests: the delta changes no code, and the code was reviewed at b130a72.
  • I didn't wait for the slow CI jobs to finish.

Deploy risk

Unchanged from the approved head. Merging changes the agent's xDS for the per-pod inbound-readiness probe clusters once a new agent image rolls out, so each pod's probe becomes an h2 GET of /-/-/live every 5 s. There is no chart change. This must merge before #1733, as the PR body says.

Notes

  • The only thing main brought in is proposal 045's text (#1736), which documents this probe.
  • The 0.98 gap remains, and is documented. Covering it would need a separate change, such as a probe path that bypasses the overload manager.

Comment thread docs/runbook.md Resolved
Comment thread docs/runbook.md Resolved
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…entity check that must see traffic, any-status probe (#1737)

* docs(proposals): 045, parenthesised T(C), per-source TLS gates, an identity check that must see traffic

- T(C) carries its outer parentheses: its last operator is or, which binds
  more loosely than + and the comparisons, so unparenthesised sums and == 0
  read only the anchor.
- The TLS gate judges the raw-TCP target (tcp_<ns>/<svc>(_<port>)?) and the
  probes separately, each requiring the expected version > 0 on its own
  nodes, so the probes cannot pass it alone.
- An h2 target with no QUIC twin is part of the required load, and the
  identity check needs at least one access-log line per source node and
  window, every one carrying the source workload's SPIFFE ID.
- The new and changed expressions were run against the reference cluster's
  Prometheus and return one row per node.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

* docs(proposals): 045, the readiness probe accepts any HTTP status (#1735)

Follows #1735's change: an overloaded inbound answers 503 before its
health_check filter and has still accepted the node certificate, so the probe
passes on 200-599; requiring 200 would demote every serving pod on an
overloaded node at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Brings the branch up to date with main (#1737) as the ruleset requires. No
other change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Copilot AI balanced review requested due to automatic review settings November 1, 2026 19:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The probe gates every local pod and depends on Envoy TLS behavior, but neither the live regression against the planned 1.41-dev proxy nor the required agent-before-proxy rollout ordering was independently verified.

No open issues 🎉

Review effort: Balanced

@bpalermo-agent-review bpalermo-agent-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr-reviewer: approve @ faa30f8
CI: green on this head except race, which was still running when this was posted (it has taken about an hour on earlier heads, and passed). test passed, including the live //agent/test/mtlspool:mtlspool_test, along with coverage, CodeQL, the drop gate and every other check. e2e, integration and the proxy workflow's test/shell legs were skipped (no proxy/ change). Confirm race is green before merging.

Previous findings

The two nits from the review at 80ab30a are still open. The merge did not touch docs/runbook.md in this PR's content. Neither blocks.

  • docs/runbook.md (stop_accepting_connections bullet): "every local pod is demoted" reads as immediate. Demotion follows the probe's failure threshold at the 5 s cadence (about 20 s), not the first failed check.
  • docs/runbook.md (the triage line): the ..._stop_accepting_connections_active gauge is 0/1 and can miss a short spike between scrapes. Pair it with fixed_heap_pressure under max_over_time over the demotion window.

Findings

None new.

Verified

  • faa30f8 is a two-parent merge of 80ab30a and main at 7d9175f. Main gained one commit since 80ab30a's merge base (97099a0): #1737, which changes only docs/proposals/045_envoy-1.41-dev-snapshot.md.
  • git diff 80ab30a faa30f8 is byte-identical to main's own change git diff 97099a0 7d9175f.
  • The PR's diff against its new base (git diff 7d9175f faa30f8) is byte-identical to the approved diff at 80ab30a (git diff 97099a0 80ab30a), and matches gh pr diff at this head. The merge resolved no conflicts and changed nothing in the PR's content.
  • Interaction with main's change: #1737 documents this PR's probe and agrees with the code at this head. It describes the any-status probe (ExpectedStatuses 200-599, which is Int64Range{200, 600} in cluster.go), the 503 under stop_accepting_requests, the /-/-/live probe path, the inboundready_ cluster prefix its soak selector matches, and the live test TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity that validate-built-proxy.sh runs. Main changed no code, so no function or assumption in the probe cluster, liveness chain, mtlspool test, envoy_validate builders or runbook section is affected.

Not run

  • No local build or test. The review relies on CI for the live mtlspool test.

Deploy risk

Unchanged from 80ab30a. Merging changes the agent's xDS output for the inbound-readiness probe cluster (TCP connect check becomes an HTTP/2 GET answered by the inbound itself). The change rolls out with the next agent release; nothing deploys on merge alone. Proposal 045 requires this PR to merge before #1733.

Notes

The merge brings in docs only. Re-review is limited to confirming that; the approved code is unchanged.

@bpalermo-agent-bot
bpalermo-agent-bot Bot merged commit d635ad8 into main Nov 1, 2026
45 of 47 checks passed
@bpalermo-agent-bot
bpalermo-agent-bot Bot deleted the fleet/probe-tls13-inbound-ready branch November 1, 2026 20:42
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
Brings #1733 up to date with main, which now carries the TLS-1.3-compatible
inbound readiness probe (#1735) and its live test; validate-built-proxy.sh
runs that test against the 1.41-dev proxy this branch builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
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.

2 participants