Skip to content

proxy: Envoy 1.41.0-dev.20261028.011e396 under Bazel 9.3.1; drop aether1054c and aether1074 (proposal 045) - #1733

Merged
bpalermo merged 4 commits into
mainfrom
upgrade/proxy-envoy-1.41-dev
Nov 1, 2026
Merged

bpalermo merged 4 commits into
mainfrom
upgrade/proxy-envoy-1.41-dev

Conversation

@bpalermo

@bpalermo bpalermo commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Implements proposal 045 (merged in #1732 as 12910b1).

Changes

  • envoy/envoy_api 1.40.0.envoy → 1.41.0-dev.20261028.011e396.envoy. Registry a1264b53 → 36d481b01b5d5bd40c9545852b01f0b46d370285, the commit that added the snapshot.
  • Patches:
  • .bazelversion 8.7.0 → 9.3.1. The 1.40.0 closure does not load under Bazel 9, so the move rides with the bump. .bazelrc follows upstream:
  • Dependencies: proxy-wasm-cpp-host → .envoy.1, rules_cc 0.2.25 → 0.2.27, rules_python 2.3.3 → 2.4.5, the versions the new closure selects.
  • Docs:
    • the stale MODULE.bazel comment that called #47893 open is rewritten;
    • the extension count is refreshed to 354 − 35 = 319. Four new upstream extensions compile in, unused by aether and outside the dropped machinery, so the existing policy keeps them;
    • README, Makefile and runbook name the new Bazel version.

Verified

  • Locally:
    • bazel mod graph --depth=1 resolves with no warnings;
    • @envoy_build_config is our local_repository;
    • bazel build --nobuild //... in proxy/ analyses all 30 targets, with @envoy fetched and all five patches applied;
    • scripts/check-envoy-pin.sh passes offline and with --online;
    • bazel aquery on //:envoy shows -rtlib=compiler-rt -unwindlib=libunwind, and --build-id=sha1 is still the last --build-id;
    • make gazelle, make tidy (no diff), make format-check, and lint as CI runs it all pass.
  • CI at 3b8ee28 (the current head, with main merged in): green on both arches, including carried_patch_tests and envoy_validate_test. The latter is aether1733's regression test: it was red on 8ce601a3, before the patch, and is green with it.

Not verified

  • No local Envoy compile or Envoy test run.
  • The Envoy-workspace-only tests did not run: aether1054's quic_http_integration_test case and the http3 conn_pool_test. The sandbox could not reach BuildBuddy RBE, and a local build failed linking a Go exec tool before any test compiled.
  • make test-unit fails locally only on Unix-socket creation in a sandbox without Unix sockets. The ci workflow runs it.

Recorded follow-ups

  • aether1733 in debug builds: getListenSocket()'s ASSERT runs before the null check, so a debug build still aborts in validate mode. Opt builds, which ship and which CI runs, are fine.
  • .github/workflows/proxy.yml:3 still says Bazel 8.7.0. It is deferred to a workflow follow-up, which the owner pushes.

Release and soak (the owner's decision, 2026-11-01): no hold. On merge, proxy-release.yml runs in its normal auto mode: it publishes the image, opens the chart pin PR and arms auto-merge on it. The reference cluster deploys only by a manual helm upgrade of the aether release. The soak validates the deployed full bump there: a same-version baseline roll, then the upgrade (the 1.40.0 to 1.41-dev handoff), then the 8 h soak, then a rollback and forward roll. The owner starts the soak.

Order (proposal 045, step 4), and its status:

  1. fix(agent): the inbound-readiness probe requires the inbound to accept the node identity, on TLS 1.3 too #1735, the TLS-1.3-compatible inbound readiness probe, merges. Done, as d635ad8d.
  2. Its agent runs on every node of the reference cluster. Done: all 5 nodes have run agent sha256:4e9eefacd0d79dbb4eb5301e2ddb789880d364d978e17bfd7a202546994b3152 since 2026-11-01 21:41Z. Envoy stayed at 1.40.0. The 15 minutes after the agent roll compared clean with the 15 minutes before: 0 prober timeouts or HTTP errors, 0 endpoint demotions, and every pod's inbound readiness probe healthy throughout.
  3. Only then does this PR merge.

The order is strict because this PR's chart pin auto-merges. A single helm upgrade from main would then roll the agent and the proxy together, so a node's proxy could speak TLS 1.3 by default while its agent still programmed the old connect-only probe.

Written by an agent.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx

@bpalermo-agent-bot
bpalermo-agent-bot Bot added this pull request to stack #1734 November 1, 2026 12:50

@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 @ 8ce601a
CI: red on this head. Both proxy test legs (amd64 and arm64) failed on //agent/test/envoy_validate:envoy_validate_test, so the required proxy check fails. That is the major finding below, not infrastructure. Every other check passed or was skipped.

Previous findings

None. This is the first review of this PR.

Findings

3 findings: 1 major (inline on proxy/MODULE.bazel), and 2 nits in files this PR does not change, listed here because they cannot take an inline thread.

  1. major (proxy/MODULE.bazel:25, inline): the new pin's binary segfaults in envoy --mode validate on every bootstrap with a QUIC listener. Run 41308410926 shows this on both arches. TestEnvoyValidate/node_bootstrap.json, TestEnvoyValidate/edge_bootstrap.json and TestNodeProxyADSReconnectBackoffIsBounded (which validates the node bootstrap) all die with "Caught Segmentation fault, suspect faulting address 0" in Envoy::Quic::ActiveQuicListenerFactory::initializeWorkerRouting() ← ListenerManagerImpl::initializeWorkerRoutingForUdpListener() ← addOrUpdateListenerInternal() ← ValidationInstance::initialize(). The cause is upstream, introduced by this pin. Details are in the inline thread.
  2. nit: .github/workflows/proxy.yml:3: the header comment still says the proxy module builds with "Bazel 8.7.0". It is 9.3.1 after this PR.
  3. nit: proxy/bazel/build_config/extensions_build_config.bzl:33-34: the comment still describes "the pinned 1.40.0 release" and its "349 upstream extensions - 34 dropped = 315". Between v1.40.0 and 011e396, upstream added extensions (for example envoy.filters.http.priority_load_shed, envoy.load_balancing_policies.host_allowlist, envoy.matching.matchers.uri_template, envoy.ai_protocol_manager.external_buffer.in_memory, envoy.tls.certificate_selectors.dynamic_modules). Each new one that _DROPPED doesn't match is now compiled in. Refresh the count, and confirm the set is what you want.

Not a failure: the FilterStateMatcherValidationError.Key: value length must be at least 1 characters rejection in the same log comes from the deliberate negative case in capture_onehcm_test.go (lines 338-354, "refused as it must be"). Envoy rejected the empty key as that case expects, and TestAgentCaptureListenerAndTableValidate passed. Nothing in the agent generates an empty filter-state key.

Verified

  • Root cause of the segfault (read from source; no Envoy build).
    • envoyproxy/envoy#45504 ("QUIC eBPF hot restart part 0", 2f6040e45b) is in 011e396 and not in v1.40.0. It moves QUIC worker-routing setup into ActiveQuicListenerFactory::initializeWorkerRouting(), behind envoy.restart_features.defer_worker_routing_init, which is on by default.
    • That function loops over factory->getListenSocket(i) for every worker and calls Network::Socket::applyOptions(options_, *socket, STATE_BOUND).
    • In validate mode, the validation listener manager's createListenSocket() returns nullptr by design. The upstream comment there reads "Returned sockets are not currently used so we can return nothing here safely".
    • When concurrency is above 1 (validate mode defaults to the host's core count), initializeCidGeneratorAndWorkerRouting() pushes the BPF reuseport option into options_. applyOptions() then calls setOption() on the null socket, which matches the "faulting address 0" in the log.
    • The bootstraps that crash (node, edge) carry the inbound QUIC listener (InboundQUICUDPListenerConfig). The ones that pass have no QUIC listener: the raw-UDP capture_udp_bootstrap.json takes ActiveRawUdpListenerConfig::initializeWorkerRouting(), which is a no-op, and quic_outbound_bootstrap.json is client-side.
    • No carried patch touches active_quic_listener.cc, listener_manager_impl.cc or the validation listener manager: 47740, 1050, 1054 and 1126 each touch other files. Nothing points at compiler-rt/libunwind or the Bazel 9 flags: the backtrace is symbolized and stops at a null dereference that the source explains.
    • The upstream refs I could read locally (envoy main up to 2026-10-30) have no fix for this.
  • Production exposure (inferred). The chart's node-proxy and edge bootstraps declare only static clusters; listeners arrive over LDS in serve mode, where the sockets are real. So the supervisor's own pre-restart envoy --mode validate (supervisor.go validateConfig) should not hit this path with today's chart. The envoy_validate gate is what catches it, and it is a required part of the proxy workflow.
  • Pin. envoy/envoy_api are at 1.41.0-dev.20261028.011e396.envoy, consumed as envoy bazel-registry modules, so there is no strip_prefix/integrity in this repository. The registry is pinned by full commit 36d481b01b5d5bd40c9545852b01f0b46d370285. The lock file records that commit's envoy MODULE.bazel and source.json hashes, and all 141 registry URLs use that one commit. 011e39616beb75a123b9c4c664c25bdb7806f545 exists in a local Envoy checkout, on main.
  • Version strings. The Bazel and Envoy versions are consistent across Makefile, README.md, proxy/README.md and docs/runbook.md, apart from the two nits.
  • Dropped aether1054c. 2eff6e8ccf (#47868) is in 011e396. Upstream handleReadCallback() has the identical paused-return block, and the test is upstream too.
  • Dropped aether1074. 77b512527c (#47893) is in 011e396. Upstream fixes the same lifetime bug with a shared_ptr held by the HTTP/3 pool, the grid and the cluster manager, and no later commit reverts it.
  • Rebased aether1050 and aether1054. In each, the +/- lines are byte-identical to the old patch; only context and offsets moved. 47740 and 1126 are unchanged. All four apply in order with git apply -p1 to an export of 011e396, and reverse cleanly. aether1050's receive loop composes with #47068 as the new comment says.
  • Bazel 9. The .bazelrc changes match upstream #48608, #48527, #48641 and #47716. rules_cc 0.2.27, rules_python 2.4.5 and proxy-wasm-cpp-host .envoy.1 match Envoy 011e396's MODULE.bazel. The lock file is regenerated (lockFileVersion 24 → 28), and the hashes I spot-checked equal Envoy's own lock.
  • Hot-restart protocol. hot_restart.proto, hot_restart_impl and the parent/child sources are unchanged between v1.40.0 and 011e396. HOT_RESTART_VERSION is 11 at both.
  • Commit. Author and committer are the maintainer's identity. This repository does not use DCO.

Not run

  • No Envoy build. The crash cause above is read from source and matched against the CI backtrace; I did not reproduce it.
  • bazel mod graph, bazel build --nobuild and scripts/check-envoy-pin.sh were not re-run.
  • I did not check that Bazel 9.3.1 accepts the .bazelrc flags upstream doesn't carry (--enable_bzlmod, --noenable_workspace, and the :ci/:bb-cache flags); the local check was refused. For the same reason I did not check which of the new upstream extensions _DROPPED excludes.
  • I did not read the registry's envoy source.json, which needs a network fetch.

Deploy risk

  • Once this reaches main, proxy-release.yml builds, signs and pushes a new proxy image and opens the chart pin pull request. The soak gate from proposal 045 applies at that pin, not at this merge.
  • With today's chart, the crash is limited to validate mode on bootstraps that carry static QUIC listeners (inferred, see Verified). Any future change that puts a QUIC listener in a static bootstrap, which the supervisor validates on the node, would make every hot restart fail validation until this is fixed.
  • The remaining runtime changes are unchanged from proposal 045: compiler-rt/libunwind, the TLS 1.3 default, #45504's deferred worker routing in serve mode, and QUICHE.

Notes

  • The base is the proposal pull request (#1732). Merge them as a stack.
  • The PR body said the Envoy-workspace test run did not happen. #45504's path is not covered by any carried-patch test, so the CI envoy_validate gate is what found this.

Comment thread proxy/MODULE.bazel Resolved
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
… a QUIC listener

#1733's proxy workflow (run 41308410926, both arches) failed
//agent/test/envoy_validate:envoy_validate_test: `envoy --mode validate` of
node_bootstrap.json, edge_bootstrap.json and the ADS reconnect test's
bootstrap died with SIGSEGV in
Quic::ActiveQuicListenerFactory::initializeWorkerRouting().

envoyproxy/envoy#45504, in the 011e396 snapshot, moved the QUIC listener's
socket options there (behind envoy.restart_features.defer_worker_routing_init,
default true) and applies them to every worker's listen socket. Validation
mode creates no sockets (ValidationListenerComponentFactory::createListenSocket
returns nullptr), so *socket dereferences null. Upstream main still has it.
The proxy-supervisor's check before every hot restart on a changed bootstrap
is `envoy --mode validate`, so this would have blocked every bootstrap change
in production.

The patch skips a null socket, which only validation mode produces, as
validation did before #45504. Regression test: envoy_validate_test in the
proxy workflow, red on 8ce601a. Not reported upstream (on hold).

The "FilterStateMatcherValidationError.Key: value length must be at least 1
characters" line in the same log is TestAgentCaptureListenerAndTableValidate's
expected rejection ("refused as it must be"); that test passed.

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 13:14

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 Envoy/toolchain upgrade affects TLS, QUIC hot restart, and linked runtimes, while both-architecture CI, Envoy-workspace regression tests, and the required owner-run eight-hour soak still need human validation.

No open issues 🎉

What changed in this PR

Implements proposal 045 by moving Aether’s separate proxy workspace to the Envoy 1.41 development snapshot and Bazel 9.3.1, while maintaining its carried fixes.

Changes:

  • Updates Envoy, registry and dependency pins, plus Bazel configuration.
  • Removes two fixes now included upstream, refreshes two patches, and adds a QUIC validation-mode null-socket guard.
  • Updates patch-test documentation and build guidance. Release remains contingent on the owner-run eight-hour soak.
File Description
README.md Updates the documented proxy Bazel version.
proxy/​README.md Documents the snapshot, patch inventory and toolchain changes.
proxy/​MODULE.bazel Updates dependencies and the carried patch list.
proxy/​bazel/​patches/​envoy-aether1733-validate-quic-null-socket.patch Adds a null-socket guard for QUIC validation mode.
proxy/​bazel/​patches/​envoy-aether1074-quic-persistent-info-lifetime.patch Removes the QUIC lifetime fix now included upstream.
proxy/​bazel/​patches/​envoy-aether1054c-paused-udp-listener-no-read.patch Removes the paused-listener fix now included upstream.
proxy/​bazel/​patches/​envoy-aether1054-http3-drain-idle-connections.patch Refreshes idle-drain patch context for the snapshot.
proxy/​bazel/​patches/​envoy-aether1050-hotrestart-nonblocking-forward.patch Refreshes hot-restart patch context for the snapshot.
proxy/​bazel/​patches/​BUILD.bazel Reorganizes test entries and updates coverage comments.
proxy/​.bazelversion Pins Bazel 9.3.1.
proxy/​.bazelrc Updates the registry pin and aligns toolchain flags with upstream.
Makefile Updates the Bazel version in a comment only.
docs/​runbook.md Updates the documented proxy Bazel version.

Review effort: Balanced

bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…ot risk, release hold, TLS 1.3 probe

- Hot restart across 1.40.0 and 1.41-dev, both directions: the evidence that
  they interoperate (HOT_RESTART_VERSION 11 at both pins, hot_restart.proto and
  the IPC sources unchanged, #47068 the only receive-loop change, identical
  carried IPC patches), and a validation step rolling one node 1.40 -> 1.41 ->
  1.40 under the prober.
- The risk of a dev snapshot in production: no backport branch; fixes arrive
  by a later snapshot, the 1.41.0 release (the pin moves to 1.41.0.envoy when
  published) or a carried patch.
- QUICHE: #48288 (132bfd9) and #48484 (67bce2e, what ships).
- TLS 1.3 vs the connect-only inbound readiness probe: the failure mode from
  the upstream release note, and a pre-release mitigation (the probe pins TLS
  1.2, a separate agent PR). A TCP-routed soak check for the TLS version and
  the source identity.
- A release hold: proxy-release.yml publishes and arms auto-merge on the
  chart pin; the owner disables it and soaks the published digest first.
- Rollback: the guards are read only when a TLS context or listener is built;
  a static runtime layer plus a proxy roll is the lever, /runtime_modify is not.
- aether1733 (the validate-mode crash #1733's CI found) added to the patch
  set; the soak points to proposal 042 and the external harness; aether relies
  on hot_restart_propagate_stat_tags' default rather than setting it; the
  local-gate claims say what the sandbox could and could not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…proxy-envoy-1.41-dev

Restacks #1733 on #1732's new head with a merge instead of a rebase, so the
branch moves forward without a force-push.

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 13:22

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 Envoy/toolchain upgrade changes TLS and QUIC hot-restart behavior, requiring human review with pending dual-architecture CI results, QUIC tests, and owner-run cross-version roll and soak validation.

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 @ 3146bf8
CI: green on this head. Both proxy test legs (amd64 and arm64) passed, including envoy_validate_test, which failed at 8ce601a. So CI confirms the aether1733 fix. Every other check passed. e2e and integration were skipped.

Previous findings

  1. major, proxy/MODULE.bazel:25, --mode validate segfault from envoyproxy/envoy#45504: fixed in code. envoy-aether1733-validate-quic-null-socket.patch skips a null socket in ActiveQuicListenerFactory::initializeWorkerRouting(), which was option (a). It is the only per-worker socket dereference #45504 added: of the getListenSocket / applyOptions lines that commit adds, this loop is the only one. initializeCidGeneratorAndWorkerRouting() builds the CID generator and the BPF option without touching a socket. The new patch is listed last in patches, after aether1126. The proxy workflow's envoy_validate step hasn't reported on this head yet, so CI hasn't proven it.
  2. nit, .github/workflows/proxy.yml:3 still says "Bazel 8.7.0": still open at this head.
  3. nit, proxy/bazel/build_config/extensions_build_config.bzl:33-34 had a stale 1.40.0 count: fixed by 05fce09.
    • The upstream count at 011e396 is 354, up from 349 at v1.40.0.
    • The five new names match exactly.
    • envoy.tls.certificate_selectors.dynamic_modules is caught by the existing "dynamic_module" pattern.
    • The BUILD files of the four extensions that compile in have no direct wasm, dynamic-module or Rust dependency. I checked direct deps only.

Findings (2 total, both nits: 1 inline, 1 in this body)

  1. nit (inline, the new patch): the null check runs after ListenSocketFactoryImpl::getListenSocket() has asserted sockets_[i] != nullptr. A build with debug assertions still aborts under --mode validate. In serve mode, a null socket would silently skip the BPF option.
  2. nit (body): the PR description still says "all four patches applied" (line 20). It doesn't mention aether1733 or the --mode validate regression it fixes.

Verified

  • Head is 3146bf8514bd29cd5781b8c13cf0e34057044005. Since 8ce601a it adds three commits: 73a28fc (the new patch), 05fce09 (comment and README wording, and the extension count), and 3146bf8 (a merge of the base branch).
  • The merge brings in only the base PR's doc changes. Against its first parent it changes docs/proposals/045_envoy-1.41-dev-snapshot.md and nothing else. Its second parent 077afbc is #1732's current head, and the old base 778d9e3 is an ancestor of it.
  • The PR's diff against its base is the expected 15 files: the Envoy pin, Bazel 9.3.1, the lockfile, four carried patches plus the new one, the two dropped patches, the README, the runbook and Makefile mentions, and the extension count. No proposal file is in this PR's diff.
  • Proposal 045 at the new base now records aether1733: the decision text, the patch table row, and its own section.
  • The patch is unchanged since 73a28fc. Its preimage blob bb6a554dc5 is exactly source/common/quic/active_quic_listener.cc at 011e396. The hunk context matches lines 416-421, and no other carried patch touches that file. That it applies in order is inferred, not run (see Not run).
  • Root cause at 011e396: ValidationListenerComponentFactory::createListenSocket() returns nullptr, and initializeWorkerRouting() dereferences *socket for every worker. Upstream main still has the unguarded loop, as of a 2026-10-31 local mirror.
  • In serve mode a null never reaches this loop. ProdListenerComponentFactory returns either a socket or an error, and the factory constructors fail on error. The release build and the CI build (-c opt) compile the ASSERT out, so the shipped binary reaches the null check.
  • Exposure wording from 05fce09: the test bootstraps embed static listeners. The node bootstrap in the chart has static clusters and gets its listeners over LDS. I spot-checked the edge configmap: lds_config plus static clusters. A crash in production therefore needs a future static QUIC listener, as the comment now says.
  • The MODULE.bazel comment, the README row and the carried_patch_tests comment use the same name and upstream status. exports_files(glob(["*.patch"])) covers the new patch.

Not run

  • git apply --check of the five patches in order against an archive of 011e396. A command guard refused it, so I didn't retry. Whether the series applies rests on the preimage blob and context match above.
  • No Envoy build or test run.
  • No CI logs read. The proxy test legs were pending when I looked.

Deploy risk

Merging puts this on the stack's base branch (upgrade/proxy-envoy-proposal), not main, so on its own it publishes nothing. Once the stack reaches main, the next proxy image carries Envoy 011e396 under Bazel 9.3.1 with five carried patches. A proxy rollout is a hot restart. Hold the merge until the proxy legs, including envoy_validate, are green on both arches at this head.

Notes

  • If the patch goes upstream, a validation-mode guard ahead of getListenSocket() would be more robust than a null check after an assert that says the socket is never null. So would IS_ENVOY_BUG on a null outside validation. A case in active_quic_listener_test with a factory that returns null sockets would also add coverage inside Envoy.

bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…ss-version roll with QUIC traffic

- The hold is set up before #1733 merges: manual release mode (RELEASE_PAT
  removed from the `release` environment until the soak verdict, so
  proxy-release.yml opens, arms and supersedes no pin), a merge freeze on
  proxy/** (not *.md), bazel/registry/** and proxy-release.yml, and the
  fallback for an armed pin (disable auto-merge on it and on any superseding
  pin, which carries a different, unsoaked digest). Nothing else merges on its
  own: Dependabot opens no PRs, no Renovate, main.yaml only updates pin
  branches, and re-runs are covered by the freeze.
- Step 5 is a cluster-wide roll (1.40.0 -> candidate -> 1.40.0 -> candidate):
  a Helm image override rolls every node and the edge Deployment, DaemonSets
  have no partition, and OnDelete is no handoff. It needs QUIC traffic pinned
  across nodes and connections established before each roll, with per-handoff
  twin-cluster and inbound QUIC listener counters.
- The #45504 risk row names the validate-mode crash, aether1733 and
  envoy_validate_test; the Status line points at the hold; the test-unit
  wording is neutral.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Base automatically changed from upgrade/proxy-envoy-proposal to main November 1, 2026 17:39
bpalermo added a commit that referenced this pull request Nov 1, 2026
…t under Bazel 9 (#1732)

* docs(proposals): 045, move aether-proxy to the Envoy 1.41 dev snapshot under Bazel 9

The pin moves from 1.40.0.envoy to 1.41.0-dev.20261028.011e396.envoy, the only
newer version the envoy bazel-registry publishes. It contains
envoyproxy/envoy#47868 and #47893, so aether1054c and aether1074 drop; 47740
and aether1126 stay as they are, aether1050 and aether1054 with their context
refreshed (aether1050 checked against #47068's change to the same receive
loop). The proxy workspace moves to Bazel 9.3.1 in the same change: the
1.40.0 closure does not load under Bazel 9. Lists the upstream changes that
touch aether (#45504, the TLS 1.3 client default, CDS warming, ODCDS, GRO) and
the validation: the proxy workflow, the Envoy-workspace tests, and an 8 h soak
before release.

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

* docs(proposals): 045, review fixes: cross-version hot restart, snapshot risk, release hold, TLS 1.3 probe

- Hot restart across 1.40.0 and 1.41-dev, both directions: the evidence that
  they interoperate (HOT_RESTART_VERSION 11 at both pins, hot_restart.proto and
  the IPC sources unchanged, #47068 the only receive-loop change, identical
  carried IPC patches), and a validation step rolling one node 1.40 -> 1.41 ->
  1.40 under the prober.
- The risk of a dev snapshot in production: no backport branch; fixes arrive
  by a later snapshot, the 1.41.0 release (the pin moves to 1.41.0.envoy when
  published) or a carried patch.
- QUICHE: #48288 (132bfd9) and #48484 (67bce2e, what ships).
- TLS 1.3 vs the connect-only inbound readiness probe: the failure mode from
  the upstream release note, and a pre-release mitigation (the probe pins TLS
  1.2, a separate agent PR). A TCP-routed soak check for the TLS version and
  the source identity.
- A release hold: proxy-release.yml publishes and arms auto-merge on the
  chart pin; the owner disables it and soaks the published digest first.
- Rollback: the guards are read only when a TLS context or listener is built;
  a static runtime layer plus a proxy roll is the lever, /runtime_modify is not.
- aether1733 (the validate-mode crash #1733's CI found) added to the patch
  set; the soak points to proposal 042 and the external harness; aether relies
  on hot_restart_propagate_stat_tags' default rather than setting it; the
  local-gate claims say what the sandbox could and could not run.

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

* docs(proposals): 045, aether1733: corrected production exposure, alternatives, upstream text

The validate-mode crash needs concurrency > 1 (the BPF reuseport option);
today's chart bootstraps have static clusters only, so production does not
crash today, but a future static QUIC listener would fail the supervisor's
pre-restart check and every hot restart. Records why the runtime guard and
--concurrency 1 were set aside, that the FilterState key rejection in the
same log is an expected negative case, and the upstream issue/PR text,
prepared for the owner to post.

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

* docs(proposals): 045, an enforceable release hold; a cluster-wide cross-version roll with QUIC traffic

- The hold is set up before #1733 merges: manual release mode (RELEASE_PAT
  removed from the `release` environment until the soak verdict, so
  proxy-release.yml opens, arms and supersedes no pin), a merge freeze on
  proxy/** (not *.md), bazel/registry/** and proxy-release.yml, and the
  fallback for an armed pin (disable auto-merge on it and on any superseding
  pin, which carries a different, unsoaked digest). Nothing else merges on its
  own: Dependabot opens no PRs, no Renovate, main.yaml only updates pin
  branches, and re-runs are covered by the freeze.
- Step 5 is a cluster-wide roll (1.40.0 -> candidate -> 1.40.0 -> candidate):
  a Helm image override rolls every node and the edge Deployment, DaemonSets
  have no partition, and OnDelete is no handoff. It needs QUIC traffic pinned
  across nodes and connections established before each roll, with per-handoff
  twin-cluster and inbound QUIC listener counters.
- The #45504 risk row names the validate-mode crash, aether1733 and
  envoy_validate_test; the Status line points at the hold; the test-unit
  wording is neutral.

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

* docs(proposals): 045, the soak validates the deployed full bump; no release hold

The owner decided on 2026-11-01 that the soak runs only after the full bump:
the release goes out through proxy-release.yml in its normal auto mode, and the
three-layer hold (manual mode, merge freeze, fallback) is removed.

- The cross-version hot restart is folded into the soak: a same-version
  baseline roll that is actually run, the upgrade (the deploy), the 8 h soak,
  then rollback and forward, all cluster-wide (the chart has no node-scoped
  proxy canary).
- Pass criteria that tell a clean handoff from a broken one: reset-aware
  increases (counters are per generation), forward progress on the destination
  inbound's downstream_rq_total and the source twin's upstream_rq_total,
  request failures (5xx, resets, cx destroyed with active requests, the load
  generator's errors) and prober misses bounded by the baseline's worst
  handoff; downstream_cx_total only as a diagnostic, since it counts new
  sessions.
- A QUIC destination on every node with a remote source, so every inherited
  listener carries traffic through its own handoff.
- The twin's stat key is <ns>/<svc>@<ns>/<sa> (QUICAltStatName), not quic:...
- Auto mode described accurately; rollback by reverting the pin or the
  implementation, and the static runtime layer for a behaviour.

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]>
bpalermo and others added 3 commits November 1, 2026 14:39
…er1054c and aether1074 (proposal 045)

- envoy/envoy_api 1.40.0.envoy -> 1.41.0-dev.20261028.011e396.envoy, registry
  a1264b53 -> 36d481b01b (the commit that added the snapshot).
- Dropped patches: aether1054c (envoyproxy/envoy#47868, 2eff6e8ccf) and
  aether1074 (envoyproxy/envoy#47893, 77b512527c), both in the snapshot.
- aether1050 refreshed from envoyproxy/envoy#47834's head against its merge
  base, which already contains #47068: the +/- lines are unchanged, only the
  test file's context moved. aether1054 refreshed by hand: two one-line
  insertions whose neighbouring runtime guards were removed upstream. 47740
  and aether1126 apply unchanged.
- .bazelversion 8.7.0 -> 9.3.1 (Envoy's own; the 1.40.0 closure does not load
  under Bazel 9, so the move cannot land first). .bazelrc follows upstream:
  merge_fixed_and_default_shell_env removed, system_include_paths and the
  rules_rust linker_messages flags added, the toolchains_llvm compiler-rt and
  libunwind overrides dropped (the envoy module links compiler-rt + libunwind
  since envoyproxy/envoy#48641).
- proxy-wasm-cpp-host .envoy -> .envoy.1, rules_cc 0.2.25 -> 0.2.27,
  rules_python 2.3.3 -> 2.4.5: what the new closure selects.
- The MODULE.bazel comment that still called #47893 open is rewritten.

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

#1733's proxy workflow (run 41308410926, both arches) failed
//agent/test/envoy_validate:envoy_validate_test: `envoy --mode validate` of
node_bootstrap.json, edge_bootstrap.json and the ADS reconnect test's
bootstrap died with SIGSEGV in
Quic::ActiveQuicListenerFactory::initializeWorkerRouting().

envoyproxy/envoy#45504, in the 011e396 snapshot, moved the QUIC listener's
socket options there (behind envoy.restart_features.defer_worker_routing_init,
default true) and applies them to every worker's listen socket. Validation
mode creates no sockets (ValidationListenerComponentFactory::createListenSocket
returns nullptr), so *socket dereferences null. Upstream main still has it.
The proxy-supervisor's check before every hot restart on a changed bootstrap
is `envoy --mode validate`, so this would have blocked every bootstrap change
in production.

The patch skips a null socket, which only validation mode produces, as
validation did before #45504. Regression test: envoy_validate_test in the
proxy workflow, red on 8ce601a. Not reported upstream (on hold).

The "FilterStateMatcherValidationError.Key: value length must be at least 1
characters" line in the same log is TestAgentCaptureListenerAndTableValidate's
expected rejection ("refused as it must be"); that test passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
…ner; refresh the extension count

- The aether1733 comment (MODULE.bazel, README) overstated the exposure: the
  chart's bootstraps carry static clusters only (listeners come over LDS), so
  the supervisor's pre-restart `--mode validate` does not crash today. A future
  bootstrap with a static QUIC listener would fail it, and every hot restart.
  The crash needs concurrency > 1 (the BPF reuseport option); raw-UDP
  listeners are unaffected.
- extensions_build_config.bzl: 354 upstream extensions - 35 dropped = 319 at
  011e396. The five new ones are named; tls.certificate_selectors.dynamic_modules
  is dropped by the existing pattern, and the four that compile in
  (priority_load_shed, host_allowlist, uri_template matcher,
  ai_protocol_manager in-memory buffer) are unused by aether and reach none of
  the wasm, dynamic-module or Rust machinery, so the policy keeps them.

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:39
@bpalermo
bpalermo force-pushed the upgrade/proxy-envoy-1.41-dev branch from 3146bf8 to 486248c Compare November 1, 2026 17:39

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 prerelease Envoy upgrade changes QUIC initialization and TLS negotiation, while cross-version hot restart/rollback behavior and Envoy-only tests remain unverified and require owner runtime validation.

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 @ 486248c
CI: green on this head. Both proxy test legs (amd64 and arm64) passed, which include envoy_validate_test, and so did the proxy gate. ci, test, race, shell, netns, diff, deps-audit, CodeQL, coverage and the drop gate passed. e2e and integration were skipped. Early codeql/coverage/gate failures came from duplicate runs cancelled at start; the reruns on this head passed.

Previous findings (reviewed at 3146bf8)

The rewritten history changes no reviewed content. The tree at 486248c differs from the tree at 3146bf8 only in docs/proposals/045_envoy-1.41-dev-snapshot.md, which now comes from main (#1732, merged as 12910b1). Against its new base, the PR touches the same 15 files, and every one is byte-identical to what was approved.

  1. major, proxy/MODULE.bazel:25, --mode validate segfault from envoyproxy/envoy#45504: still fixed. envoy-aether1733-validate-quic-null-socket.patch is unchanged and is the last entry in single_version_override(patches = …), after aether1126. The comment block and the carried_patch_tests note in bazel/patches/BUILD.bazel both point to //agent/test/envoy_validate:envoy_validate_test as its regression test.
  2. nit, aether1733 patch line 9, the null check runs after getListenSocket()'s ASSERT: still open, because the patch is unchanged. The PR body now lists it as a follow-up and says opt builds are unaffected. It does not block.
  3. nit (body), "all four patches applied" with no mention of aether1733: fixed. The body now says "all five patches applied" and describes aether1733 under added.
  4. nit (body), .github/workflows/proxy.yml:3 still says Bazel 8.7.0: still open in the file, which this PR does not touch. The body now lists it as a deferred workflow follow-up. It does not block.

Findings

  • nit (body): the description's first line still reads "Implements proposal 045 (#1732, the PR below this one in the stack)". #1732 has merged and this PR now targets main, so the stack wording is stale.

Verified

  • The head is 486248c and the base is main. #1732 is merged.
  • The diff against main (12910b1) is the 15 files, identical to the content approved at 3146bf8. The only difference between the two trees is the proposal, which main now owns.
  • The patch list holds 47740, aether1050, aether1054, aether1126 and aether1733. aether1054c and aether1074 are deleted and no longer referenced.
  • The PR and proposal 045 (as on main) agree on the release: there is no hold. On merge, proxy-release.yml (triggered by proxy/**, excluding *.md) builds, signs and pushes the image, then opens the chart pin PR and arms auto-merge on it. The soak follows the deploy: a same-version baseline roll, then the upgrade roll, the 8 h soak, and a rollback and forward roll.
  • The proposal's "revert restores … the six patches" matches the 1.40.0 set: 47740, 1050, 1054, 1054c, 1074 and 1126.

Not run

  • No local build, Envoy compile or test run. No new local verification: the content is unchanged from the approved head.

Deploy risk

Merging publishes. proxy-release.yml pushes a new aether-proxy image (Envoy 1.41-dev, Bazel 9.3.1 toolchain), and in auto mode opens the chart pin PR, which merges by itself once its checks pass. After that, main's chart points at the 1.41-dev proxy. Nothing in CI deploys to a cluster: the reference cluster changes only on a manual Helm upgrade, and that roll is the first 1.40.0 → 1.41-dev hot-restart handoff on every node.

Preconditions in proposal 045:

  • Before the deploy, not before the merge: the readiness-probe mitigation (the probe's transport socket pins tls_maximum_protocol_version: TLSv1_2) must be in the agent image the bump deploys with. It is not on main yet: agent/internal/xds/proxy/ sets no maximum TLS version anywhere.
  • Once the pin auto-merges, any Helm upgrade of the chart from main, made for any other reason, deploys the new proxy. Hold chart upgrades of the reference cluster until that agent PR has landed and been released.
  • The soak order is: baseline roll first, then the upgrade. The baseline must be taken on 1.40.0 before the upgrading Helm upgrade.

Rollback: revert the auto-merged pin PR (the fast path), or revert this PR. Either way, every node goes through the reverse handoff.

Notes

  • The Envoy-workspace-only tests (aether1054's quic_http_integration_test case, the http3 conn_pool_test) did not run, and the body says so. Proposal 045's Validation step 3 only asks the PR to report whether they ran, so this meets it.

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-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]>
bpalermo-agent-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…t the node identity, on TLS 1.3 too (#1735)

* fix(agent): the inbound-readiness probe requires the inbound to accept 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

* fix(agent): the inbound-readiness probe passes on any HTTP status, so 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

* docs(agent): the readiness probe covers stop_accepting_requests, not 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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Copilot AI balanced review requested due to automatic review settings November 1, 2026 21:58

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 snapshot bump changes TLS defaults, QUIC initialization, and runtime components, while cross-version hot-restart/rollback and QUIC integration remain unverified and require owner-led validation.

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 @ 3b8ee28
CI: green on this head. Both proxy test legs (amd64 and arm64) passed. They now include the live inbound-readiness probe test run against the 1.41-dev build. ci, test, race, shell, netns, diff, format, deps-audit, proxy-pin, envoy-api-parity, CodeQL, coverage, the drop gate and the proxy gate also passed. e2e and integration were skipped.

Previous findings (review at 486248c)

  • aether1733 debug-build ASSERT ordering (nit): open. The patch is byte-identical at this head; the null check still follows getListenSocket(), whose ASSERT fires first in debug builds. Opt builds (shipped, and what CI runs) are unaffected. The PR body records it as a follow-up.
  • .github/workflows/proxy.yml:3 still says Bazel 8.7.0 (nit): open. Unchanged at this head; deferred to a workflow follow-up per the PR body.
  • Body said "the PR below this one in the stack" (nit): fixed. The first line now reads "Implements proposal 045 (merged in #1732 as 12910b1)."
  • --mode validate segfault (major, fixed earlier): still fixed. envoy-aether1733-validate-quic-null-socket.patch is present, unchanged, listed in proxy/bazel/patches/BUILD.bazel and applied from proxy/MODULE.bazel.

Findings

  • minor (PR body, no file): the "Release and soak" paragraph says the TLS-1.3-compatible probe "is merged before this PR, and its agent is rolled out before the proxy upgrade." Proposal 045 on main (since #1736/#1738) makes the order a gate on this merge: #1735 merges, its agent image is deployed and every node's agent runs it, and only then does #1733 merge. The proposal explains that "rolled out before the proxy upgrade" is not enough: once this PR is on main, the chart pin auto-merges and a single helm upgrade from main rolls the agent and the proxy together. Suggest restating the body's precondition as the proposal's three-step order, so the merger checks the rollout before merging.
  • nit (PR body, no file): "CI at 3146bf8: green on both arches" names a SHA that isn't among this PR's commits, and the head has moved since. Point it at the current head once its proxy jobs finish.

Verified

  • The head is a two-parent merge of the approved 486248c and main at e52fa8d (#1738). Its tree is identical to what a clean git merge-tree of those two commits produces, so no conflicts were resolved by hand.
  • The PR's diff against its new merge base (e52fa8d) matches the approved diff against 12910b1 line for line: same 15 files, same hunks. The only difference is the blob index line of docs/runbook.md, which both sides touched in separate hunks. The PR's own content is unchanged.
  • What main brought in (12910b1..e52fa8d): #1736, #1737, #1738 (proposal 045 and runbook docs) and #1735 (agent cluster.go: the inbound-readiness probe becomes an HTTP/2 GET of the inbound's own /-/-/live, any status passing, over the SAN-pinned mTLS context; new live test agent/test/mtlspool/inbound_ready_tls13_test.go; validate-built-proxy.sh now also runs TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity against the built proxy).
  • Interaction with the bump: proxy.yml's test job runs validate-built-proxy.sh against the Envoy this PR builds. On this head, that means the live probe test (TLS 1.2 and 1.3 cases, plus the connect-only control that must report HEALTHY under TLS 1.3) runs against the 1.41-dev proxy for the first time. Those jobs are still running.
  • Proposal 045's precondition that the probe be on main before the bump is met: #1735 (d635ad8) is an ancestor of this head. The proposal now says "There is no TLS 1.2 pin". The PR adds none (its diff is proxy/ and docs only), and the agent's proxy code still sets only tls_minimum_protocol_version (TLSv1_2) with no maximum.
  • The rest of the body is still accurate: no chart change; on merge proxy-release.yml publishes the image and opens and auto-merges the chart pin PR.

Not run

  • No local build or test; no Envoy compile.
  • I could not verify the reference-cluster agent rollout of #1735, which the proposal requires before this merge.
  • No CI logs read: the proxy jobs are still running.

Deploy risk

Merging triggers proxy-release.yml in auto mode: it signs and pushes the 1.41-dev image by digest, opens the chart pin PR and arms auto-merge on it, so main's chart points at the new proxy within minutes. The reference cluster changes only on a manual helm upgrade. Per proposal 045, every node's agent must already run the #1735 image before this PR merges, not just before the proxy rolls. Otherwise a helm upgrade from main would pair TLS-1.3-default proxies with the old connect-only probe on some nodes.

Notes

  • Approval is of the code, which is unchanged from the approved revision. Merge only after the proxy workflow's test (amd64) and test (arm64) pass on this head. They carry the new live probe run against the 1.41-dev build.
  • Inferred, not a finding: the proxy workflow's warm-up step pre-fetches only envoy_validate's dependencies, so the added mtlspool_test run fetches its own repositories without the warm-up's retries. A fetch failure there would be infrastructure, not a probe regression.

@bpalermo
bpalermo merged commit eeb52bc into main Nov 1, 2026
33 checks passed
@bpalermo
bpalermo deleted the upgrade/proxy-envoy-1.41-dev branch November 1, 2026 22:29
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