Skip to content

ci/dependency: Allow module updates with the registry bump - #48870

Merged
phlax merged 3 commits into
envoyproxy:mainfrom
phlax:ci-registry-updates
Nov 9, 2026
Merged

phlax merged 3 commits into
envoyproxy:mainfrom
phlax:ci-registry-updates

Conversation

@phlax

@phlax phlax commented Oct 30, 2026

Copy link
Copy Markdown
Member

Add an update input to the registry task of the dependency workflow, passed through update.sh and do_ci.sh registry to registry_update:

  • * bumps every module (in every nested MODULE.bazel) that has a newer version available in the envoy bazel-registry, as reported by the toolshed module updater after the pin has moved.
  • name bumps that module to its latest registry version, name=1.2.3 to that version; specs are space separated and applied in every module that declares them, as deps.update does.
  • * is rejected when combined with other specs, and update is rejected for the bazel and lockfiles tasks.

Inside the build container the command is exec'd unquoted, where a bare * would glob, so update.sh passes it as all; registry_update accepts either. Lockfiles are regenerated once at the end.

@phlax
phlax requested a balanced review from Copilot October 30, 2026 14:08
@phlax phlax changed the title ci/dependency: Allow module updates with the registry bump [WIP] ci/dependency: Allow module updates with the registry bump Oct 30, 2026
@phlax
phlax marked this pull request as draft October 30, 2026 14:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Stale lockfile registry URLs can cause named updates to fail and bulk updates to silently skip nested workspaces after a registry pin change.

2 open issues
What changed in this PR

This PR extends the dependency workflow so registry pin bumps can also update module versions across Envoy’s nested Bazel workspaces.

Changes:

  • Adds an update input supporting all-module updates or space-separated module/version specs.
  • Passes update specs through the CI scripts, translating * to all to prevent container-shell globbing.
  • Applies module updates after the registry bump, with lockfile regeneration at the end.
File Description
ci/​do_ci.sh Captures registry update arguments and forwards them to registry_update.
ci/​dependency/​update.sh Validates update specs and passes them safely into the container command.
ci/​bazel_fun.sh Adds named and all-module update paths after registry pin changes.
.github/​workflows/​envoy-dependency.yml Exposes, validates, and forwards the new workflow input.

Review effort: Balanced

Comment thread ci/bazel_fun.sh Resolved
Comment thread ci/bazel_fun.sh Resolved
@phlax
phlax force-pushed the ci-registry-updates branch 3 times, most recently from b56ccec to b3368a6 Compare November 6, 2026 12:03
@phlax
phlax force-pushed the ci-registry-updates branch from b3368a6 to c5f32b1 Compare November 9, 2026 17:08
@phlax
phlax requested a balanced review from Copilot November 9, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The documented * dispatch input becomes an invalid bare YAML alias, causing the workflow to fail before wildcard registry updates can run; the dependency input must be serialized as a quoted scalar.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/envoy-dependency.yml Resolved
@phlax phlax closed this Nov 9, 2026
@phlax phlax reopened this Nov 9, 2026
@phlax
phlax force-pushed the ci-registry-updates branch from e8bd813 to f5a1a6b Compare November 9, 2026 17:27
@phlax
phlax requested a balanced review from Copilot November 9, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Successful Bazel runs with no module changes are treated as errors, and distinct dependency updates sharing a registry commit collide on the same branch identifier.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread ci/dependency/update.sh Resolved
Comment thread ci/dependency/update.sh Resolved
Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
  version available in the envoy bazel-registry, as reported by the
  toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
  to that version; specs are space separated and applied in every module
  that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
  rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the ci-registry-updates branch from f5a1a6b to 26357c5 Compare November 9, 2026 17:43
@phlax
phlax requested a balanced review from Copilot November 9, 2026 17:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The dependency-update automation changes have no active review issues.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@phlax phlax changed the title [WIP] ci/dependency: Allow module updates with the registry bump ci/dependency: Allow module updates with the registry bump Nov 9, 2026
@phlax
phlax marked this pull request as ready for review November 9, 2026 17:50
Literal backticks in single quotes trip SC2016; escape them in double quotes instead.

Signed-off-by: Ryan Northey <[email protected]>
Comment thread ci/dependency/update.sh
fi
;;
registry)
name=bazel-registry

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: unlike the bazel task, nothing here checks that the explicitly requested specs actually changed. _deps_update_mod skips names that aren't declared, so a misspelt foo (or one that's already current) silently produces a plain registry-bump PR. Would it be worth failing (or at least warning) when a named spec (other than *) isn't in changed_names?

Comment thread ci/bazel_fun.sh Outdated

report_path="$(mktemp)"
# shellcheck disable=SC2064
trap "rm -f '${report_path}'" RETURN

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: a RETURN trap set inside a function isn't scoped to it. It stays installed after the function returns and fires again on later returns at the caller level. It's harmless here (rm -f on an already-removed file), but consider clearing it, e.g. trap "rm -f '${report_path}'; trap - RETURN" RETURN.

A requested dependency that did not change (already current, or not declared, eg misspelt) is
now an error for the registry task too, rather than a plain registry bump that silently leaves
it out. The check is per dependency, so it also covers one of several for the bazel task.

Clear the RETURN trap in `_registry_modules_update_all_mod` once it has fired, as it is not
scoped to the function that sets it.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax merged commit 439a8c4 into envoyproxy:main Nov 9, 2026
26 of 27 checks passed
oschaaf added a commit to We-Amp/envoy that referenced this pull request Nov 10, 2026
VirtualHostImpl route resolution linearly scans every configured route
per request; with many routes nearly all of them fail on the path
condition. Build a config-time index over route positions: an
exact-path hash map and a prefix trie (honoring case sensitivity and
path-separated prefixes) for exact / prefix / path-separated-prefix
routes, and an ordered side list of positions for regex, URI-template,
connect and other route kinds the index cannot represent.

At request time only candidate positions are visited, always in
ascending configured-route order, so first-match semantics, route
specifiers and callback 'no more routes' statuses are exactly those of
the linear scan. The index only produces candidates: every candidate is
re-validated by the route's matches(), which preserves correctness for
query stripping, path-separated boundaries and case-insensitive
matching. Single-route virtual hosts keep the linear scan.

docs: Replace envoy-build-ubuntu with the envoy-build images (#49135)

CI has used the envoyproxy/envoy-build images, built from toolshed and
pinned in .github/config.yml, since 1.37; envoy-build-ubuntu and the
envoy-build-tools repository that built it are being archived. Point the
install and build docs, ci/README and the dockerhub_envoy role at the
current images and their source.

Signed-off-by: Ryan Northey <[email protected]>
test: Shard dynamic_modules abi_impl_test (#49141)
[cache_v2] Fix upstream reset crash and stats (#48814)

Commit Message: [cache_v2] Fix upstream reset crash and stats
Additional Description: Cache filter could crash if an upstream reset
while more than one downstream was waiting on it (subject to a race
going the wrong way). This makes it so an upstream reset fails harder,
preventing the crash, and also fixes that there was previously no path
to the upstream_reset metric being updated.
Risk Level: WIP filter
Testing: Yes
Docs Changes: Yes
Release Notes: Yes
Platform Specific Features: Filter is already disabled for Windows

---------

Signed-off-by: Raven Black <[email protected]>
mobile/ci: Run the Android jobs in the default build image (#49134)

The Android SDK (platform 30, build-tools 35.0.0) and NDK r29 come from
the hermetic-android-toolchains module, and the Android tools from the
remote android_tools extension, so the mobile image's JDK, cmdline
tools, NDK, platform and build-tools (1.6 GiB over the default image)
are no longer used by the build. The emulator jobs already run on the
runner with its own SDK.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 417c07d (+envoy_toolshed) (#49138)

- `envoy_toolshed` -> 0.5.20.envoy

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Co-authored-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
coverage: Postprocess inside the test action, with toolshed's lcov tools (#49130)

Each coverage test action uploaded its raw profile (141MB for an
integration test, 89% of it a copy of the binary's symbol table) for a
separate postprocessing action to download again: ~160GB in and out of
the CAS and 7 worker-hours of postprocess actions per full run, plus a
9GB merge on the runner.

Run the postprocessing inside the test action instead, and use
toolshed's coverage tools for it: `llvm-cov` exports line coverage for
workspace sources only (function and branch records, and external code,
are never read by the report), and the lcov merger strips what remains
and removes the coverage directory's intermediates before the test's
outputs are uploaded.

Measured on a full run (1,597 tests, 96.9% before and after): CAS
uploads 133GB -> 1.35GB, no postprocess actions, coverage phase 838s ->
650s, critical path 346s -> 287s, report merge 107s -> 27s.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Added X509_VERIFY_PARAM_set_time() implementation (#49137)

Added `X509_VERIFY_PARAM_set_time()` implementation, needed by
`spiffe_validator_fuzz_test.cc`

Signed-off-by: Ted Poole <[email protected]>
router tests: Use Protobuf::DynamicCastMessage instead of dynamic_cast (#49048)

Prefer Protobuf::DynamicCastMessage instead of
dynamic_cast as lite-proto builds (!ENVOY_ENABLE_FULL_PROTOS) won't
compile.
Risk Level: none
Testing:  bazel test //test/common/router:retry_policy_impl_test
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Michal Kielan <[email protected]>
deps: Bump `bazel-registry` -> e66ede8 (+protoc-gen-validate) (#49136)

- `protoc-gen-validate` -> 1.3.3.envoy.1

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
ci: Stop caching the build image (#49133)

Since 2026-11-09T22:58Z restoring the cached build image intermittently
leaves Docker unable to start on GitHub's hosted runners ("Job for
docker.service failed"), failing jobs in their first 20s. The cache blob
(primed 2026-10-21), the runner image (20261101.360 since 2026-11-03)
and the restore path are unchanged, so this is on the runner side, and
the restore action discards the journal that would say why.

Since #48963 the CI build image is 275 MiB in six layers, pulled in
seconds, so the cache saves nothing worth stopping Docker and swapping
/var/lib/docker under sudo on every job. Drop the restore from the run
workflow and stop priming the cache; the cache-build-image inputs are
kept so callers need not change.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 2308406 (+rules_rust) (#49132)o

- `rules_rust` -> 0.74.0.envoy.1

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
reverse_tunnel: downstream admin handler (#47689)

## Commit Message
reverse_tunnel: downstream admin handler

## Description
Add an admin handler on the downstream side for reverse tunnels which
returns the number of tunnels per src node, cluster, tenant.
Lazily aggregates across workers using the runOnAllThreads.

## Testing
Unit + Integ tests.

---------

Signed-off-by: aakugan <[email protected]>
on_demand: add discovery stats and filter state for access logs (#48391)

Commit Message: on_demand: add discovery stats and filter state for
access logs
Additional Description: Adds stats under `http.<stat_prefix>.on_demand.`
for on-demand route (VHDS/SRDS) and cluster discoveries: counters
`route_discovery_{requested,found,not_found,cancelled}` and
`cluster_discovery_{requested,available,missing,timeout,cancelled}`,
gauges `{route,cluster}_discovery_pending`, and histograms
`{route,cluster}_discovery_duration` (ms). `cancelled` means the stream
was destroyed before the discovery completed. A route-config update that
completes synchronously inside `decodeHeaders()` (nothing to discover)
is not counted as `requested`. `route_discovery_found` means the virtual
host / route config was delivered, not that a route matched.

The duration histograms only record successful discoveries (found /
available): a timed out cluster discovery always lasts about the
configured timeout, and a missing cluster or not-found route is a quick
negative answer, so including them would make the percentiles
meaningless. Failures are visible through the counters. VHDS has no
timeout, so during a control plane outage requests keep waiting;
`route_discovery_pending` and `route_discovery_cancelled` are the
signals then (documented).

For access logs, the filter stores a request-lifespan filter state
object `envoy.filters.http.on_demand.discovery` (only when a discovery
was started) with fields `host`, `vhost` (for VHDS `<route config
name>/<domain>`), `cluster`, `route_status`, `cluster_status`,
`route_discovery_duration_us` and `cluster_discovery_duration_us`,
usable with `%FILTER_STATE(...:FIELD:<name>)%`. Durations are set for
every outcome, so a timed out discovery shows how long the request
waited. The cluster name and host are intentionally not part of any stat
name, to keep stat cardinality independent of them. No API/proto change.

Related: #48122 (od-cds per-cluster discovery time).
Risk Level: Low (new stats and filter state only; no behavior change)
Testing: Unit tests in `on_demand_filter_test`, and integration tests in
`on_demand_integration_test` (VHDS: found / not found, with an access
log using the filter state) and `odcds_integration_test` (CDS: available
/ timeout / missing, with an access log using the filter state). Relying
on CI.
Docs Changes: Statistics and filter state sections in the on-demand
filter docs.
Release Notes:
changelogs/current/new_features/on_demand__added-discovery-stats-and-timing.rst
Fixes #47945

---------

Signed-off-by: xuanmin-zhu <[email protected]>
Co-authored-by: Claude <[email protected]>
dynamic_modules: add load shed point support to filters (#49111)

## Description

This PR adds load shed point support to dynamic module HTTP, network,
listener and UDP listener filters. A filter gets an overload manager
load shed point by name and checks it to shed load.

A filter on a listener that bypasses the overload manager gets no load
shed point, and neither does an upstream HTTP filter.

---

**Commit Message:** dynamic_modules: add load shed point support to
filters
**Risk Level:** Low
**Testing:** Added Tests
**Docs Changes:** Added
**Release Notes**: Added

Signed-off-by: Rohit Agrawal <[email protected]>
cds: track SotW CDS resources so that OD-CDS clusters are not removed (#48675)

Commit Message: cds: track SotW CDS resources so that OD-CDS clusters
are not removed
Additional Description:
A SotW CDS update removes every dynamic cluster that is missing from the
update, which includes the clusters added by on-demand CDS. This causes
extra load on the management servers, and `cluster_not_found` responses
until the clusters are discovered again.

#41117 added tracking of the clusters received through SotW CDS
(`sotw_resource_names_`), but enabled it only when xDS-TP config sources
are configured. This PR enables the tracking for all configurations,
behind the `envoy.reloadable_features.cds_sotw_track_resources` runtime
guard (default `true`). A SotW CDS update then removes only the clusters
that were previously received through the same CDS subscription.

The names are recorded even when the guard is disabled, so enabling it
at runtime does not leave clusters that were added earlier unknown to
the next SotW update.

This is the option 1 from #42551. It is meant to be compatible with the
xDS resource manager work in #24773: the tracking is the same per-source
state that the xDS-Cache layer is expected to provide, and the existing
`TODO` about removing it once that layer lands is kept.

Risk Level: low-medium. Behavior change for setups that use SotW CDS
together with ODCDS and no xDS-TP: dynamic clusters that were not
received through CDS are no longer removed by a CDS update. Can be
reverted with the runtime guard.
Testing: Unit tests in `cds_api_impl_test` (guard enabled, guard
disabled, guard enabled at runtime). Integration tests in
`odcds_integration_test` (file-based SotW CDS update keeps an ODCDS
cluster, and removes it when the guard is disabled). All pass locally on
Linux (aarch64).
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: `envoy.reloadable_features.cds_sotw_track_resources`
Fixes #42551

---------

Signed-off-by: xuanmin-zhu <[email protected]>
Co-authored-by: Claude <[email protected]>
deps: Bump `bazel-registry` -> b1d19aa (+envoy_toolshed) (#49124)

- `envoy_toolshed` -> 0.5.19.envoy

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
dynamic_modules: add synchronous feedback to resource monitors (#49110)
spiffe: add a fuzz test for the SPIFFE cert validator (#49012)

Commit Message: spiffe: add a fuzz test for the SPIFFE cert validator

Adds a proto fuzzer that builds the SPIFFE cert validator from fuzzed
config and verifies a fuzzed peer certificate chain. It covers both
config forms (inline PEM trust domains and the JSON trust bundle map),
SAN matchers, the allow-expired and suppress-CA-list options, and
doVerifyCertChain on the downstream side (workload trust domain in
connection filter state) and the upstream side (shared filter state and
the SAN override). Each input also calls addClientValidationContext,
updateDigestForSessionId, daysUntilFirstCertExpires and
getCaCertInformation.

Additional Description:

First step for #17723: promoting this extension to
robust_to_untrusted_downstream needs fuzz coverage. The security_posture
change is left for a follow-up once the fuzzer has run on OSS-Fuzz. The
8 seeds cover successful verification in both trust bundle formats, on
both sides and through an intermediate, plus failures on an empty chain,
a CA certificate used as the leaf, a workload trust domain mismatch and
an invalid x5c entry.

Fixes #17723 only partly; I'd leave the issue open for the posture
change.

Risk Level: Low (test only)
Docs Changes: N/A
Release Notes: N/A

AI usage: AI helped write the fuzzer, the corpus and its certificate
generation. I have reviewed and understand the change.

---------

Signed-off-by: Boteng Yao <[email protected]>
test/kv_store: Fix the shutdown race in the restart helper (#49080)

`shutdownAndRestartTestServer()` posted `server.shutdown()` itself,
waited only for that call to return, and then reset the test server.
Once `shutdown()` returns, `Server::InstanceImpl::run()` returns on the
server thread and the server, a stack object in
`createAndRunEnvoyServer()`, is destroyed; `~IntegrationTestServerImpl`
meanwhile posts to `server_->dispatcher()` through its still-set raw
pointer. When the server thread wins, that is a use-after-free:

  Caught Segmentation fault, suspect faulting address 0x48
  #1: Envoy::IntegrationTestServerImpl::~IntegrationTestServerImpl()
#2:
KeyValueStoreXdsDelegateIntegrationTest_BasicSuccess_Test::TestBody()

The destructor already does the shutdown and waits for the server thread
to finish, so just reset the test server.

Signed-off-by: Ryan Northey <[email protected]>
test/fuzz: Create health check fuzz mocks on demand (#49025)

The health check fuzz harness pre-allocated a mock connection and codec
whenever it predicted that the next interval would create a new client.
The prediction mirrors the health checker's internal state by hand and
diverges from it: the gRPC harness sets its `received_no_error_goaway_`
on every NO_ERROR GOAWAY, while the checker only does so when a probe is
in flight. After a timeout (no probe), a GOAWAY and a completed response
the harness allocates a fresh pair, the checker reuses its connection,
and the pair is never adopted, so gmock reports leaked mocks at exit and
the fuzz coverage job fails (eg
https://github.com/envoyproxy/envoy/actions/runs/41770754226).

Create the connection and codec mocks inside the
`createClientConnection_` and `createCodecClient_` default actions
instead, so they only exist when the health checker asks for them and
are always owned by it. This removes the `expect_client_create` guessing
from `triggerIntervalTimer()` for all three harnesses, along with the
connection/codec index queues. The `newStream` default action is
installed per codec and clears the shared encoder's callbacks for each
new stream, as `expectStreamCreate()` did.

Add a corpus entry for the GOAWAY-without-probe sequence; it reproduces
the leak on the previous harness.

Signed-off-by: Ryan Northey <[email protected]>
dynamic_modules: add resource monitor support (#49108)

## Description

This PR adds a dynamic module resource monitor for the overload manager.
At each refresh the module reports the pressure of a resource. A module
can also leave an update pending and report it later from any thread
through a scheduler.

---

**Commit Message:** dynamic_modules: add resource monitor support
**Risk Level:** Low
**Testing:** Added Tests
**Docs Changes:** Added
**Release Notes:** Added

Signed-off-by: Rohit Agrawal <[email protected]>
rust_sdk: allow iterating response flag mask values  (#49065)

Commit Message:
Attach `strum` derive macros and add inherent methods to the
envoy_dynamic_module_type_response_flag type to enable converting from a
response flag enum value into its bit flag, and from a mask of set bits
back into an iterator over the equivalent flags values.

This improves usability in calling code.

Additional Description:
Risk Level: low
Testing: added and ran unit tests
Docs Changes: none
Release Notes: none
Platform Specific Features: n/a

---------

Signed-off-by: Alex Bakon <[email protected]>
test: Deflake network ext_proc connection-close assertions (#49024)

GrpcStreamFailure, ConnectionStatusCloseHandling and
ConnectionStatusRSTHandling asserted that a write fails immediately
after waiting for a stats counter. The counter is incremented on the
worker thread before the connection is closed, and the test thread only
does a single non-blocking dispatcher run on an empty write, so it can
observe the write succeeding before the FIN arrives. Wait for the
disconnect first; the write then fails deterministically.

Signed-off-by: Ryan Northey <[email protected]>
ci/dependency: Allow module updates with the registry bump (#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
test/wasm: Drop the filter integration test size, sharding and pool (#49076)

The target is marked "enormous" (a one hour timeout), split into 16
shards and run on the large RBE pool. Since #48681 it runs one engine
per build (all engines only across the compile-time-options legs), which
leaves it with 24-31 cases per leg. Measured in CI: 2s of cases in opt,
10s under coverage and in the wamr leg, 56s in the wasmtime leg and 65s
under tsan, so none of the three does anything but spread ~30 cases over
16 large executors.

Signed-off-by: Ryan Northey <[email protected]>
ci/dependency: Add a release-images task (#49106)

Add a `release-images` task to the dependency workflow that updates the
base images pinned in `distribution/docker/Dockerfile-envoy` (the
`BUILD_OS:BUILD_TAG@sha256:BUILD_SHA` args and any pinned `FROM ... AS
envoy-<name>` stage) to the current digest of their tag, and opens a PR
with the result.

The update is done by `ci/dependency/release_images.sh`, which only
needs docker (buildx) and jq, so it can also be run locally.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Add post-merge ASAN build of compat/openssl tests (#49007)

Added post-merge ASAN build of the OpenSSL compatibility layer utests.

Signed-off-by: Ted Poole <[email protected]>
docker/release: Bump container images (#49105)

- `ubuntu:22.04`: 5ec03bb -> 076e7bf
- `gcr.io/distroless/base-nossl-debian13:nonroot`: 6a2a334 -> e6b0f82

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Revert "hot_restart: hold UDP forwarding listener configs as weakptrs… (#49109)

… (#49019)"

This reverts commit 56adfb49c5cbec1d17bb3060c8c8c1a3150b6573.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> f500f99 (+envoy_toolshed) (#49104)

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
config: consolidate resource state transitions in DeltaSubscriptionState (#48577)

Commit Message: config: consolidate resource state transitions in
DeltaSubscriptionState
Additional Description:
Consolidates the resource state mutation logic in
`DeltaSubscriptionState`:
- Extract a shared `bool removeResourceStateFromServer(absl::string_view
resource_name)` helper used by both `handleGoodResponse` (for
`message.removed_resources()`) and `ttlExpiryCallback` (for `expired`
resources).
- Route all resources in `handleGoodResponse` through
`addResourceStateFromServer(resource)` instead of branching between
`requested_resource_state_.contains(resource.name())` and
`requested_resource_state_.contains(Wildcard)` at the call site.

Companion PR to deduplication in #48576.
Risk Level: Low
Testing: Unit tests (`//test/extensions/config_subscription/grpc/...`)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: antoniovleonti <[email protected]>
lua: read the filter context without copying it (#49083)

Commit Message: lua: read the filter context without copying it

Every `handle:filterContext()` call built a `MetadataMapWrapper` that
copy-constructed the whole `filter_context` Struct, nested lists and
maps included, once per handler per request. The wrapper can now borrow
its Struct when passed with `std::cref()`, and `luaFilterContext()`
does. The context is owned either by the filter's config, which the
filter holds, or by route configuration, which the stream's route config
snapshot holds. A per-route script's VM already depends on the latter.
Route and virtual host metadata keep the copy here. A cleared route
stays alive until the stream ends, so they could borrow the same way in
a follow-up.

Additional Description:

In a production profile of ours, that copy alone was about 0.4% of
Envoy's CPU. This adds `BM_FilterContextGet` to the Lua speed test. Its
argument is the length of a list in the context that the script never
reads.

Medians of five alternating base/PR rounds, `-c opt` binaries,
`--benchmark_repetitions=5 --benchmark_enable_random_interleaving=true`,
macOS arm64. Base is `1329291ccc`, the merge base, built with this PR's
benchmark file.

| Case | Base | This PR | Change | Rounds won |
| ---------------------------- | -------: | ------: | -----: |
---------: |
| `FilterContextGet/0` | 3081 ns | 2111 ns | -31.5% | 5/5 |
| `FilterContextGet/16` | 4673 ns | 2122 ns | -54.6% | 5/5 |
| `FilterContextGet/256` | 25899 ns | 2123 ns | -91.8% | 5/5 |
| `NoopBoth` (unchanged) | 1630 ns | 1630 ns | +0.0% | 2/5 |
| `HeaderMetadata` (unchanged) | 3794 ns | 3781 ns | -0.3% | 4/5 |

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low

Testing:
```
bazel test //test/extensions/filters/common/lua:wrappers_test //test/extensions/filters/http/lua:lua_filter_test
```
The new `LuaMetadataMapWrapperOwnershipTest` fails on the base for the
borrowed case.

Docs Changes: N/A

Release Notes: N/A

Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
hot_restart: hold UDP forwarding listener configs as weakptrs (#49019)

Commit Message: hot_restart: hold UDP forwarding listener configs as
weakptrs
Additional Description:

`HotRestartingChild::UdpForwardingContext::listener_map_` in
`HotRestartImpl` held a shared ptr to every UDP listener config and
never erased entries, so configs outlived their listeners.
`HotRestartImpl` is destroyed after the server and stats store. With
quic-lb and SDS, ~SdsApi released its stats scope into the freed store
and Envoy crashed on exit.

The map now holds weak ptrs to configs instead and drops expired entries
on lookup.

Risk Level: Low
Testing: Unit test, manual
Docs Changes: N/A
Release Notes: Added bugfix
Platform Specific Features: N/A
Fixes #48758

Signed-off-by: Filip Cacky <[email protected]>
test/drain_close: Shorten the HCM drain timeout (#49072)

A drain-close keeps the connection open for the HCM's drain_timeout (5s
by default) after the response that announced it, for HTTP/1 as well as
HTTP/2: `startDrainSequence()` only moves to Closing from
`onDrainTimeout()`. Every drain-closing case in this test waits for that
close, so 35 of its 45 cases took 5s each (~180s per run) for a grace
period none of them is testing. Set it to 100ms in the fixture and drop
the test size.

Signed-off-by: Ryan Northey <[email protected]>
test/protocol: Stop waiting on the stats flush and drain timer, drop … (#49075)

…the size

Of the 1613 cases this target runs in an opt CI job, 48 take 5s and the
other 1565 average 0.14s:

- `Retry`, `ReqRespSizeStats` and `UpstreamRequestsPerConnectionMetric`
wait for histogram samples, which only reach the parent store on the
stats flush (5s by default). Flush every 100ms in those tests.
- The HTTP/2 cases of `MaxRequestsPerConnectionReached` and
`TestDownstreamResetIdleTimeout` wait for the connection to close after
a GOAWAY, which happens from the HCM drain timer (5s by default). Set it
to 100ms in those tests.

The target was marked "enormous" (a one hour timeout) on 16 shards; its
shards run 25-40s in opt and under 200s under tsan, which has a 600s
"medium" timeout. Drop the size.

Signed-off-by: Ryan Northey <[email protected]>
router: add per mirror policy statistics (#48470)

Commit Message: router: add per mirror policy statistics

Request mirroring is fire and forget, so the only signal is the mirror
cluster's upstream stats. Those miss mirrors that are selected but never
sent (no `cluster_header` value, unknown cluster, local reply on the
primary), and do not tell how many mirrors a policy should have sent.

Add `RequestMirrorPolicy.stat_prefix`. When set, the router emits
counters under `mirror.<stat_prefix>.`: `rq_sampled`, `rq_no_cluster`,
`rq_started`, `rq_success` (2xx), `rq_failure` (non-2xx or failed) and
`rq_cancelled`.

Additional Description:
For policies with `stat_prefix`, the shadow writer allocates a callbacks
object per mirror that records the outcome and deletes itself (deferred)
from `onBeforeFinalizeUpstreamSpan()`. It holds the stats scope, so a
route update does not free counters still in use. Policies without
`stat_prefix` are unchanged and allocate nothing.

The counters are rooted at `mirror.<stat_prefix>.` rather than under the
route stats, because a mirror policy can be set on the route
configuration, a virtual host or a route. Open to another namespace.

Risk Level: Low. New optional field; no change when unset.
Testing: Unit tests in `shadow_writer_impl_test`, `router_test` and
`config_impl_test`; integration tests in
`shadow_policy_integration_test`. Also run under ASAN.
Docs Changes: API docs and a mirror policy statistics section in the
router filter docs.
Release Notes: Added.
Platform Specific Features: N/A
[Optional API Considerations:] New `stat_prefix` field on
`RouteAction.RequestMirrorPolicy`.

AI assistance: prepared with AI assistance (Cursor agent). We reviewed
and understand all of it.

---------

Signed-off-by: William Dauchy <[email protected]>
datadog: log trace context extraction errors at debug level (#49026)

Commit Message: datadog: log trace context extraction errors at debug
level

When a request carried trace context headers that dd-trace-cpp could not
parse, for example `x-datadog-trace-id: nope`, the Datadog tracer logged
an error and started a new trace. Downstream clients control these
headers, so any client could make Envoy log one error per request.

The message is now logged at debug level, and these errors are counted
in a new `tracing.datadog.extraction_errors` counter so they stay
visible. A request without trace context is not counted.

Additional Description:
Same reasoning as the body size limit filter change in
`changelogs/current/bug_fixes/http__body-size-limit-log-level.rst`.

Risk Level: Low. Only the log level changes, and a counter is added.
Testing:
- `tracer_test`: an invalid trace context logs at debug level and
increments the counter; a valid or missing trace context does not. The
log assertion fails with the previous implementation.
- `tracer_stats_test` covers the new counter.
- `//test/extensions/tracers/datadog/...`, `check_format` and
`check_spelling_pedantic` pass on Linux x86_64.
Docs Changes: N/A (the Datadog tracer stats are not documented).
Release Notes: Added under `bug_fixes`.
Platform Specific Features: N/A

Signed-off-by: William Dauchy <[email protected]>
datadog: copy the request path instead of referencing it (#48999)

Commit Message: datadog: copy the request path instead of referencing it

`AgentHTTPClient::post()` set the `:path` header with
`setReferencePath()`, so the request pointed at the path string of the
URL passed in by dd-trace-cpp. That URL belongs to dd-trace-cpp's
`DatadogAgent`, whose destructor flushes one last request and then frees
it, before `ThreadLocalTracer` cancels the request with `shutdown()`.
Nothing reads the header in between today, but the request should not
depend on that.

The path is now copied. The agent paths (`/v0.4/traces`, `/v0.7/config`)
fit in the inline header buffer, so the copy does not allocate.

Additional Description:
Follow-up to #48209 and #48480.

Risk Level: Low. Same header value, now owned by the request.
Testing:
- New `agent_http_client_test` case: overwrite and destroy the URL after
`post()` returns, then check the path of the sent request. It fails with
the previous implementation.
- `//test/extensions/tracers/datadog/...`, `check_format` and
`check_spelling_pedantic` pass on Linux x86_64.
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

AI disclosure: a Cursor agent helped write and test this change. I have
reviewed it and understand it.

---------

Signed-off-by: William Dauchy <[email protected]>
bazel: Select RBE pools per configuration (#49081)

`rbe_pool` pins one EngFlow pool for every action of a target in every
build. Measuring every compile, link and test of `//test/...` under opt,
asan, tsan, msan and gcc showed that the need is per configuration and
per kind of action: compiles over 3GiB are common under clang and more
so under gcc, the tsan and gcc links of the largest binaries run 9-12GB,
and tests fit the default pool everywhere except a few dozen under msan.
One pin for everything either over-provisions the test action and the
other configurations or under-provisions the one that needs it.

This makes the selection configuration- and action-aware, in a shared
`bazel/envoy_rbe.bzl`:

- `rbe_pool` still takes a pool name (every action, every configuration,
as before) and now also a dict keyed by
`default`/`asan`/`msan`/`tsan`/`coverage`/`gcc`; a configuration not
named uses `default`.
- each value is a pool name or `{"build": pool, "test": pool}`: `build`
covers compile and link (`Pool`), `test` the test action (`test.Pool`).
A build-only pin leaves the test action on the platform default; a
test-only pin leaves compiles and links there.
- the non-test macros (`envoy_cc_library`, `envoy_cc_binary`,
`envoy_cc_test_library`, `envoy_cc_test_binary`, a fuzz test's library)
ignore test pools; a fuzz test's library now gets the pin, previously
only its binary did.
- each configuration gets its own single-key `select()` in a fixed
precedence order, so configurations enabled together (fuzz coverage:
coverage + asan) never meet in one `select()`.

Existing string pins land every action on the pool they do today;
nothing changes until a pin uses the new forms. #49078 regenerates the
tree's pins from the measurement using them.

Signed-off-by: Ryan Northey <[email protected]>
compat/openssl: Build OpenSSL with rules_cc from the BCR module (#49058)

Switch the `openssl` dependency from the registry's `3.5.9.envoy`
module, which builds OpenSSL with `rules_foreign_cc` `configure_make`,
to BCR's `3.5.9.bcr.1` module, which builds it natively with `rules_cc`.

The BCR module only provides static `@openssl//:crypto` and
`@openssl//:ssl` libraries, so bssl-compat now builds what it needs
itself:
- `:libcrypto` and `:libssl` (`cc_shared_library`) produce
`libcrypto.so.3` and `libssl.so.3`, replacing `@openssl//:libs` as a
data dependency.
- `:openssl_include` (new `openssl_include_dir` rule) collects the
`openssl/*.h` headers for the prefixer, replacing `@openssl//:include`.
- `ossl_dlutil.c` loads the libraries from `OSSL_RUNFILES_LIB_DIR`
instead of probing several `openssl`/`openssl+` runfiles paths.

The BCR module has no legacy provider, which was only used by the
bssl-compat unit tests, so drop it: remove the provider config from
`test/main.cc` and the `OPENSSL_MODULES` setup from `ossl_dlutil.c`, and
leave the PKCS#12 tests that rely on RC2-40 (`TestCompat`,
`TestEmptyPassword`, `TestNullPassword`, `TestUnicode`, ...) disabled.

Signed-off-by: Jonh Wendell <[email protected]>
Co-authored-by: Copilot <[email protected]>
test/lua: Fix the drain test, shard the integration test, drop its si… (#49077)

…ze and pool

`lua_integration_test` runs 36 tests over a 20-way protocol/filter
position matrix (720 cases); every case boots an Envoy, ~0.1s in opt and
~1.6s under tsan, i.e. ~900s per tsan run hidden behind `size =
"large"`.

- `DrainConnectionUponCompletion`: the HTTP/2 variants wait for the
connection to close after the GOAWAY, which happens from the HCM drain
timer (5s by default): 10 cases x 5s per run for a grace period the test
is not about. Set it to 100ms.
- Shard the target four ways instead of sizing it.
- Drop the large RBE pool: measured in CI the test never uses more than
one core (0.2 in opt, 1.0 under tsan) and peaks at 1.5GB RSS under asan,
against the pool's 8 cores and 12GiB limit; the default pool's 3GiB
covers it twice over.

Signed-off-by: Ryan Northey <[email protected]>
feat: impl apply_on_stream_done for local rate limit (#48530)

<!--
!!!ATTENTION!!!

If you are fixing **any** crash or **any** potential security issue,
**do not
open a pull request**.

Instead, please
[open a GitHub Security
Advisory](https://github.com/envoyproxy/envoy/security/advisories/new)
(preferred). Alternatively, you may email
[email protected].

Thank you in advance for helping to keep Envoy secure.

!!!ATTENTION!!!

For an explanation of how to fill out the fields, please see the
relevant section
in
[PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/main/PULL_REQUESTS.md)

!!!ATTENTION!!!

Please check the [use of generative AI
policy](https://github.com/envoyproxy/envoy/blob/main/CONTRIBUTING.md?plain=1#L41).

You may use generative AI only if you fully understand the code. You
need to disclose
this usage in the PR description to ensure transparency.
-->

Commit Message: feat: impl apply_on_stream_done for local rate limit
Additional Description: Implement `apply_on_stream_done` feature for
local rate limit, similar to the existing feature in global rate limit.
Note that unlike in global rate limit, `apply_on_stream_done` does't
apply to route/vhost level rate limit descriptors for local rate limit
filter. For such behavior `typed_per_filter_config` can be used instead.
Risk Level: Low (new API)
Testing: Unit and Integration testing
Docs Changes: Yes
Release Notes: Yes
Platform Specific Features: N/A
Fixes #37790

---------

Signed-off-by: Rudrakh Panigrahi <[email protected]>
tracing: add configurable B3 and W3C propagation to opentelemetry tracer (#48711)

Adds `incoming_trace_context` and `outgoing_trace_context` to
`OpenTelemetryConfig`, so the tracer can read and write W3C Trace
Context, the B3 single header, or B3 multiple headers. Default stays W3C
only.

Additional Description:
- Extraction tries formats in order; the first valid one wins and
malformed ones are skipped. If headers are present but none are valid,
the request is not traced, as with a malformed `traceparent` today.
- Injection writes every configured format and leaves other headers
alone.
- B3 parsing follows the OpenTelemetry B3 spec and the Zipkin tracer's
leniency. It lives in the OpenTelemetry tracer because Zipkin already
depends on this library.
- Out of scope: injecting only the extracted format (#40977), GCP and
AWS formats, baggage.

AI disclosure: written with AI assistance (Cursor). I have reviewed and
understand all of the code.

Risk Level: Low. Opt-in; the default config is unchanged.
Testing: New unit, driver, and config tests. All OpenTelemetry and
Zipkin tracer tests pass locally.
Docs Changes: Proto docs and a tracing architecture overview entry.
Release Notes:
`changelogs/current/new_features/tracing__opentelemetry-b3-propagation.rst`
Platform Specific Features: N/A
Fixes #39412
Related to #27384
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]
Adds one enum and two repeated fields (11 and 12) to
`envoy.config.trace.v3.OpenTelemetryConfig`.

---------

Signed-off-by: Wan Afiq <[email protected]>
Co-authored-by: Wan Afiq <[email protected]>
router: consolidate on-demand VHDS callback handling in RouteConfigUpdateReceiverImpl (#48767)

Both `RdsRouteConfigProviderImpl` and
`StaticRouteConfigProviderImpl::VhdsContext` maintained duplicate
on-demand VHDS callback management:
- `UpdateOnDemandCallback` struct definition
- `config_update_callbacks_` queue and `still_alive_` deallocation guard
- `requestVirtualHostsUpdate(...)` posting to main thread, local alias
cache check, and callback queuing
- publish loop iterating through callbacks in `onConfigUpdate()` and
`onConfigWarmed()`

This change:
1. Adds `requestVirtualHostsUpdate(...)` and `onVhdsConfigPublished()`
to `RouteConfigUpdateReceiver` interface.
2. Moves callback queuing, `still_alive_`, local answer check, and
callback notification into `RouteConfigUpdateReceiverImpl`.
3. Updates `RdsRouteConfigProviderImpl` and
`StaticRouteConfigProviderImpl` to delegate to
`RouteConfigUpdateReceiver`.

Risk Level: Low
Testing: Existing unit and integration tests
(`//test/common/router:config_impl_test`,
`//test/common/router:rds_impl_test`,
`//test/common/router:static_route_provider_impl_test`,
`//test/common/router:vhds_test`,
`//test/integration:vhds_integration_test`)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: antoniovleonti <[email protected]>
Revert "dfp cluster: create new host rather than update address in place when address updated (#48176)" (#49079)

This reverts commit 3ae2dbdfa3bb2408abf82caa5f067bc36bab86f2.

This change needs to be a configuration option. Previous behavior was
equivalent to the LOGICAL_DNS and new behavior is STRICT_DNS. Previous
behavior was not a bug, it is the desired behavior for existing
production deployments.

Signed-off-by: Yan Avlasov <[email protected]>
connect_grpc_bridge: align unary HTTP status mappings with Connect spec (#49011)

Commit Message: connect_grpc_bridge: align unary HTTP status mappings
with Connect spec

Update `statusCodeToConnectUnaryStatus()` to return the HTTP status
codes required by the current Connect protocol specification. The
Connect spec amended four mappings in March 2024
(https://github.com/connectrpc/connectrpc.com/pull/130), and the filter
still returned the original values:
- `canceled`: 408 -> 499
- `deadline_exceeded`: 408 -> 504
- `failed_precondition`: 412 -> 400
- `unimplemented`: 404 -> 501

Additional Description: The incorrect HTTP statuses cause access logs,
metrics, 5xx alerting, and HTTP middleware to misclassify these unary
Connect responses (Connect clients themselves read the `code` field from
the JSON error body and are unaffected). All other mappings are
unchanged and match the spec table at
https://connectrpc.com/docs/protocol#error-codes.

No runtime guard was added: `envoy.filters.http.connect_grpc_bridge` is
`status: alpha` in `extensions_metadata.yaml`, and the runtime-guarding
guidance in `CONTRIBUTING.md` applies to non-alpha features. Happy to
add a guard if reviewers would prefer one.

AI disclosure: this patch was prepared with AI coding assistance; I have
reviewed and understand all of the changes.

Risk Level: Low
Testing: Updated the expectations pinned by
`//test/extensions/filters/http/connect_grpc_bridge:end_stream_response_test`
for the four affected statuses. Verified the resulting mapping table
against the Connect spec reference; the full table (all 16 codes plus
the 500 default) now matches
https://connectrpc.com/docs/protocol#error-codes. The Bazel test target
is exercised by CI.
Docs Changes: N/A
Release Notes: Added
`changelogs/current/bug_fixes/http__connect-grpc-bridge-status-mapping.rst`.
Platform Specific Features: N/A
Fixes #49003

Signed-off-by: Santhi Prakash <[email protected]>
listener: preserve buffered data on write half-close (#48677)

Commit Message:
listener: preserve buffered data on write half-close

When an internal socket delivers `Read | Closed`, listener filters
currently handle the close before looking at the buffered data. A client
that sends a payload followed immediately by END_STREAM through HTTP/2
CONNECT can therefore lose the payload and the reply.

Inspect the buffered data first. Queue the close notification before
calling the data callback, so a filter that still needs more bytes
closes on the next iteration. If inspection finishes, resetting the old
file event cancels that queued notification before the connection takes
over.

Additional Description:
The callback may destroy the listener buffer, so the patch does not
access its members after calling it. Close-only events, empty EOF, read
errors and listeners with data callbacks disabled retain their close
behavior.

This patch does not change CONNECT's existing handling of an upstream
that half-closes before the downstream finishes sending.

Risk Level: Medium — this changes event ordering in the shared
listener-filter buffer.

Testing:
- `//test/common/network:listener_filter_buffer_impl_test`: 11 tests
passed, including seven new cases for buffered data, callback
destruction, incomplete inspection, EOF, read errors, EAGAIN and
disabled data callbacks.
- Envoy format and spelling checks passed for both changed C++ files.
- Built a patched Linux arm64 Envoy binary and ran a loopback HTTP/2
CONNECT reproducer with TLS/HTTP inspectors enabled: the stock v1.40.0
binary returns 0 of 64 bytes; the patched binary returns all 64 bytes
after request END_STREAM.
- Repeated immediate request half-close with 64 B, 3,200 B, 64 KiB and 1
MiB payloads, with inspection enabled and bypassed, for 10 rounds. All
replies were complete. An incomplete protocol prefix also closed before
the listener-filter timeout in all 10 rounds.
- Local builds and execution used v1.40.0. Its affected source and
original unit tests are byte-for-byte identical to the main base of this
PR; a full main build is left to CI.

Docs Changes: N/A
Release Notes: Added a listener bug-fix entry.
Platform Specific Features: No new platform-specific API. Local
execution uses Linux arm64.

Fixes #48676

AI assistance was used to prepare and review this patch and its tests.

Signed-off-by: zhaochunlin <[email protected]>
Co-authored-by: zhaochunlin <[email protected]>
reverse_tunnel: add tunnel setup latency stats (#46614)

## Commit Message
reverse_tunnel: add tunnel setup latency stats

## Description
Adds max_tunnel_setup_time on the downstream reverse-tunnel initiator
and emits tunnel_setup_time (histogram) for how long it takes a host to
reach its configured connection count.
Episode timing is reused across retries within an establishment episode
and resets when capacity drops.
Tunnels which cannot be established etc can be tracked by the admin
handler #47689

## Testing
Unit tests + integ tests for the counter and histogram added.

---------

Signed-off-by: aakugan <[email protected]>
header: optimize union storage for header values (#47612)

Commit Message:
Replace the variant storage for header strings with a custom tagged
union type. The existing behavior is preserved, though the size and
capacity of header values are now stored as u32s. The gains come from a)
reducing the memory usage without changing functionality (the u32 size
limit was already functionally present) and b) putting the size of the
string at the same offset whether the value was owned or a reference.

Additional details:
This change was made with the assistance of AI tools. The author fully
understands and takes ownership of the change.

Risk Level: low, does not change public API
Testing: ran unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Alex Bakon <[email protected]>
zstd: correct chunk_size and qatzstd level defaults in api docs (#48700)

Commit Message: zstd: correct chunk_size and qatzstd level defaults in
api docs

Additional Description:
The API docs for the zstd compressor, the zstd decompressor and the
contrib qatzstd compressor say an unset `chunk_size` defaults to 4096.
The factories use zstd's recommended output buffer size instead:

- `source/extensions/compression/zstd/compressor/config.cc:15`:
`PROTOBUF_GET_WRAPPED_OR_DEFAULT(zstd, chunk_size,
ZSTD_CStreamOutSize())`
- `source/extensions/compression/zstd/decompressor/config.cc:13`: `...
ZSTD_DStreamOutSize())`
- `contrib/qat/compression/qatzstd/compressor/source/config.cc:15`: `...
ZSTD_CStreamOutSize())`

`Base` allocates the output buffer at that size
(`source/common/compression/zstd/common/base.cc:8-9`). With the zstd
pinned in `MODULE.bazel:116` (1.5.7), `ZSTD_CStreamOutSize()` is 131591
bytes and `ZSTD_DStreamOutSize()` is 131072, so the default buffer is
about 128 KiB, not 4 KiB. (That default is also above the 65536 maximum
an explicit `chunk_size` may set; this PR only documents the default and
does not change it.)

The same qatzstd file says of `compression_level`: "Value 0 means
default". The field is validated `{lte: 22 gte: 1}`, so 0 is rejected;
an unset level falls back to `ZSTD_CLEVEL_DEFAULT` (3) at
`contrib/qat/compression/qatzstd/compressor/source/config.cc:13`. The
comment now reads "If not set, defaults to 3." The non-QAT zstd proto
keeps its "Value 0 means default" line, since that field has no lower
bound and zstd treats level 0 as its default.

Gzip, Brotli and QATzip document 4096 and do use 4096; they are
unchanged.

Prepared with AI assistance (Claude Code) and reviewed with GitHub
Copilot.

Risk Level: Low (comments only)
Testing: Comment-only change; no build or test run. Default sizes
checked against zstd 1.5.7 (`ZSTD_CStreamOutSize()` 131591,
`ZSTD_DStreamOutSize()` 131072).
Docs Changes: The proto comments above, which generate the API
reference.
Release Notes: N/A
Platform Specific Features: N/A

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: ZainnQureshii <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
stat_sinks: support runtime-dynamic monitored resources in the OpenTelemetry sink (#48518)

Adds `SinkConfig.ConversionAction.resource_conversion`, which reports
the metrics of a conversion under
an OTLP resource of their own instead of the resource of the sink. This
lets an Envoy that serves
several workloads, such as a gateway, report the metrics of each
workload under that workload's
resource, e.g. using tags that the stats access logger sets from
listener metadata:
```
  resource_conversion:
    static_resource_attributes:
    - {key: gcp.resource_type, value: {string_value: k8s_pod}}
    tags_to_resource_attributes:
    - {tag_name: k8s.pod.name, resource_attribute_key: pod_name}
    - {tag_name: k8s.namespace.name, resource_attribute_key: namespace_name}
```
- Each attribute of the resource is either static or set from a stat
tag; nothing is inherited from
the resource of the sink. Setting an attribute more than once, or a
static attribute with an empty
  key or a non-string value, is rejected when the sink is created.
- A stat that lacks one of the tags, or has it with an empty value, is
reported as if there were no
resource conversion: under the resource of the sink, with all of its
tags as data point attributes.
- Within an export request, the metrics of resources with the same
attributes, including the resource
of the sink, are reported under one `ResourceMetrics`. Batching by
`max_data_points_per_request`
  keeps working.
- Fixes a `ConversionAction` without a `metric_name` reporting its
metrics with an empty name, which is
not a valid OTLP metric name. They are now named as if their stats
matched no conversion, so one
conversion can apply to many stats without merging them into a single
metric.
- The aggregator keeps one result per resource, and draining the results
iterates each map once and
moves the metric names instead of copying them, which also speeds up
flushes with
  `custom_metric_conversions`.

Risk Level: Low (resource_conversion is opt-in; for existing configs,
the only change is that a
ConversionAction without a metric_name no longer reports metrics with an
empty name which is invalid)
Testing: Unit tests (config validation, resource registry, aggregator,
request streamer, flusher) and an
integration test that tags stats from listener metadata with the stats
access logger and checks the
per-pod resources of the export, including a listener without metadata.
open_telemetry_benchmark (opt build, one CPU, 9,000 stats with 8 tags
each, ms per flush):
- Without custom_metric_conversions: unchanged (24.9 -> 24.7).
- With custom_metric_conversions: 39.9 -> 31.8.
- With resource_conversion: no slower than plain conversions up to 100
pods, +17-22% with 3,000 pods.

Docs Changes: API docs, and a resource conversion section in the
OpenTelemetry stat sink docs.
Release Notes:
changelogs/current/new_features/stat_sinks__otlp-resource-conversion.rst,
changelogs/current/bug_fixes/stat_sinks__otlp-empty-metric-name.rst
Platform Specific Features: N/A
This change was developed with AI assistance (Google internal
Antigravity); the submitter has reviewed
and understands all of the code.

---------

Signed-off-by: Xuyang Tao <[email protected]>
deps: Bump `c-ares` -> 1.34.9 (#48799)

Created by Envoy dependency bot for @phlax

Signed-off-by: dependency-envoy[bot]
<148525496+dependency-envoy[bot]@users.noreply.github.com>

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
Co-authored-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
bootstrap: add a statusor factory method, deprecate throwing factory (#48863)

Add a non-throwing entrypoint to the bootstrap extension factory
interface and mark the throwing method as deprecated, but retained to
preserve compatibility with out-of-tree extensions. Modify the in-tree
extensions to use the new entrypoint, returning error statuses instead
of throwing exceptions.

Additional Description:
The author used AI to produce this, but has reviewed and understands the
code.

Risk Level: low
Testing: ran unit tests
Docs Changes: none
Release Notes: added
Platform Specific Features: none

---------

Signed-off-by: Alex Bakon <[email protected]>
upstream: bind the context's priority load by reference (#48671)

Commit Message: upstream: bind the context's priority load by reference

`LoadBalancerBase::chooseHostSet()` binds the reference returned by
`determinePriorityLoad()` to `const auto`. So every pick made with a
context copy-constructs both vectors of `HealthyAndDegradedLoad`, and
the router always passes itself as the context. This binds the result by
reference, the way the aggregate cluster already does. The referent is
either the balancer's own `per_priority_load_` or a retry priority's
member, and nothing writes to either before `choosePriority()` reads it.

Additional Description:

This adds a `chooseHost` benchmark for round robin, with and without a
context. Every policy built on `LoadBalancerBase` takes the same path.

Medians of five alternating base/PR rounds, `-c opt` binaries,
`--benchmark_repetitions=5 --benchmark_enable_random_interleaving=true`,
macOS arm64. Base is `b5061f06b4`, the merge base, built with this PR's
benchmark file.

| Case | Base | This PR | Change | Rounds won |
| --------------------------------------- | ------: | ------: | -----: |
---------: |
| `chooseHost`, 1 hosts, with context | 75.6 ns | 36.1 ns | -52.3% | 5/5
|
| `chooseHost`, 1 hosts, no context | 31.7 ns | 33.1 ns | +4.4% | 0/5 |
| `chooseHost`, 100 hosts, with context | 75.7 ns | 36.3 ns | -52.1% |
5/5 |
| `chooseHost`, 100 hosts, no context | 31.8 ns | 33.2 ns | +4.4% | 0/5
|
| `chooseHost`, 10000 hosts, with context | 76.2 ns | 36.2 ns | -52.5% |
5/5 |
| `chooseHost`, 10000 hosts, no context | 31.8 ns | 33.2 ns | +4.4% |
0/5 |

The no-context arm never reaches the changed line. It moved +1.4 ns in
all five rounds, and I don't have an explanation better than code
layout.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low

Testing:
```
bazel test //test/extensions/load_balancing_policies/round_robin:all //test/extensions/load_balancing_policies/common:all //test/extensions/load_balancing_policies/least_request:all //test/extensions/clusters/aggregate:all
```

Docs Changes: N/A

Release Notes: N/A

Platform Specific Features: N/A

Signed-off-by: Derek Argueta <[email protected]>
dynamic_modules: prevent `EnvoyMutBuffer` aliases (#49067)

`EnvoyMutBuffer` is copyable even though it exposes mutable slices, so
safe code can create overlapping mutable references to the same body
chunk.

This PR removes `Clone` and `Copy` and adds a compile-fail doc test.

Risk Level: Low
Testing: Confirmed the regression compiles before the fix and is
rejected afterward. Buffer unit tests, SDK doc tests, Clippy, and
formatting pass.
Docs Changes: Documented exclusive borrowing.
Release Notes: Added a dynamic modules bug-fix fragment.
Platform Specific Features: N/A

AI assistance was used.

Signed-off-by: Gavin Bunney <[email protected]>
dynamic_modules: fix `EnvoyBuffer::new` lifetime (#49063)

`EnvoyBuffer::new` returns a buffer whose lifetime is unrelated to its
input slice. Safe code can return a buffer backed by a local `Vec` and
read freed memory after the `Vec` is dropped.

This PR ties the buffer's lifetime to the slice and adds a compile-fail
doc test for that case.

Risk Level: Low
Testing: Confirmed the regression compiled before the fix and is
rejected afterward. Buffer unit tests and SDK doc tests pass.
Docs Changes: Documented the constructor's borrow.
Release Notes: Added a dynamic modules bug-fix fragment.
Platform Specific Features: N/A

AI assistance was used; I reviewed and understand the changes.

Signed-off-by: Gavin Bunney <[email protected]>
deps: Update QUICHE to 35cbd03 (#49043)

deps: Update QUICHE to 35cbd03

Update QUICHE from f53fd81 to 35cbd03
https://github.com/google/quiche/compare/f53fd81..35cbd03

Registry:
https://github.com/envoyproxy/bazel-registry/commit/05ecd55a93884ef065ade452ddba83bbcef97918

```
$ git log f53fd81..35cbd03 --date=short --no-merges --format="%ad %an %s"

2026-10-27 ricea Separate Balsa tests from quiche_tests
2026-10-27 ricea Merge the BBRv2 and BBRv3 simulator tests into one parameterized test.
2026-10-27 apaseltiner Round Structured Headers decimal ties to even across all in-range values.
2026-10-28 QUICHE team Fix misaligned header pointer access in CreateTcpResetPacket.
2026-10-28 QUICHE team #cana-http 1/2: Pass the HTTP/3 SETTINGS wire order to QuicSpdySession::OnSettingsFrame.
2026-10-28 ricea Add QUICHE_EXPORT to ChunkedBuffer::AppendRegion
2026-10-29 ricea Consolidate Http2StructureDecoder tests into a single test file.
2026-10-29 ianswett No public description
2026-10-29 martinduke Add PUBLISH_STATE_NOTIFY parser/framer and delete request-id from GOAWAY.
2026-10-30 QUICHE team Add a QUIC protocol flag for the ack frequency used during ack decimation.
2026-10-30 ianswett Add tests for key usecases described in go/cid-capacity-experiment
2026-10-30 martinduke Consolidate SubscriptionFilter anchoring and LARGEST_OBJECT validation in Update().
2026-10-30 apaseltiner Use absl::string_view for raw inputs in Structured Headers spec tests.
2026-10-30 martinduke Update kMaxGroupId and kMaxObjectId.
2026-10-30 apaseltiner Default optional fields in Structured Headers spec test structs.
2026-11-02 QUICHE team Enable GFE feature flags rolled out to 100% of production.
2026-11-02 ianswett Improve QUIC ACK Frequency frame handling and validation to draft-ietf-quic-ack-frequency-14.
2026-11-03 jprat Add QuicheCodeCountReader platform API and verify BalsaFrame defect code counters
2026-11-03 jprat Verify BalsaFrame protocol defect code counters in balsa_frame_test
2026-11-03 jprat Add test coverage for require_header_colon_enforced in BalsaFrame
2026-11-03 martinduke Deprecate --gfe2_reloadable_flag_quic_enobufs_blocked.
2026-11-03 jprat Record stray_data_after_chunk_detected code counter at most once per message.
2026-11-03 jprat Add a quiche code count for detecting multiple transfer encoding keys
2026-11-03 jprat Eliminate double counting and redundant Balsa HTTP validation code counts
2026-11-04 asedeno Report synchronous OS bind errors in quic::CreateAndBindServerSocket.
2026-11-04 QUICHE team QBONE packet reader: fix UDP GRO
2026-11-04 apaseltiner Document duplicate-key caveat on `quiche::structured_headers::Dictionary(std::vector<DictionaryMember>)`.
2026-11-04 vasilvv Add proper API to enable receive timestamps.
2026-11-05 ianswett Allow sending up to two probe packets on PTO during the QUIC handshake with the PTO2 connection option.
2026-11-05 ianswett Store QUIC min_ack_delay in microseconds and update naming to draft14.
```

---------

Signed-off-by: Ryan Hamilton <[email protected]>
repo: remove derekargueta from emeritus code owners (#49056)

Active in the project again.

Signed-off-by: Derek Argueta <[email protected]>
tests/coverage: Don't exec bazel in the coverage shim (#49055)

`exec` bypasses the exported `bazel` function from `ci/build_setup.sh`,
dropping the CI startup options (`--output_user_root`/`--output_base`),
so under CI the coverage run used a default output base instead of the
configured one. Call it as a command like the other CI scripts do.

Signed-off-by: Ryan Northey <[email protected]>
test: add fuzz coverage for MCP Filter and JSON-REST Bridge (#49016)

Commit Message: add fuzz coverage for MCP Filter and JSON-REST Bridge
Additional Description: This PR adds dedicated fuzz testing for the MCP
HTTP Filter and MCP JSON-REST Bridge, focusing on MCP 2026-07-28
protocol handling.
The changes include:
MCP Filter: Add a fuzz harness and 19 curated corpus seeds covering
protocol validation, attribute sources (HEADERS, VERIFY, BODY), traffic
modes, header/body consistency, and required request metadata.
MCP JSON-REST Bridge: Add a fuzz harness and 17 curated corpus seeds
covering request validation, MCP-to-REST transcoding, response
transformation, SSE streaming, and legacy compatibility.
Risk Level: Low
Testing:
-MCP Filter and JSON-REST Bridge Bazel tests passed.
-ASan/UBSan fuzzing completed for both targets with no crashes or
invariant failures.
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA

---------

Signed-off-by: Wenwei Zhao <[email protected]>
bazel: Bump -> 9.3.2 (#49054)

Signed-off-by: Ryan Northey <[email protected]>
deps/cve: Ignore CVE-2026-72854 (msgpack-c unpacker, unused) (#49052)

Signed-off-by: Ryan Northey <[email protected]>
ci/cve: Include CVE Program (cvelist) data in the scan/fetch (#49051)o

Pairs with the toolshed scanner change adding cvelistV5 records as a
source for CVEs that NVD has not analyzed: glob the `cve_data/cvelist/`
month files into the scan data, sync the subdirectory from the bucket,
and pass a token for the fetcher's release lookup.

Signed-off-by: Ryan Northey <[email protected]>
deps: Bump `bazel-registry` -> 99aa31e (#49050)

Signed-off-by: dependency-envoy[bot] <148525496+dependency-envoy[bot]@users.noreply.github.com>
dynamic_modules: let a stats sink retain its flush snapshot past the flush hook (#48974)

Commit Message: dynamic_modules: let a stats sink retain its flush
snapshot past the flush hook

The goal of the PR is to introduce 2 new ABI methods that allow a stats
sink dynamic module to process a flush snapshot off the main thread, by
retaining it during the flush hook and releasing it once the module is
done.

Additional Description:

A dynamic module stats sink gets its snapshot in
`envoy_dynamic_module_on_stat_sink_flush`, which runs on the main
thread, and the handle is only valid during that hook. A sink that
formats a large snapshot therefore has to decode every stat name on the
main thread With many clusters that is a lot of main-thread time on
every flush.

This adds two new callbacks:

- `envoy_dynamic_module_callback_stat_sink_snapshot_retain` takes a
reference on every stat in the snapshot and copies the values: counter
values and deltas, gauge values, text readout values, and histogram
sample counts, sums, and buckets. It returns a new handle that every
existing snapshot callback accepts,

- `envoy_dynamic_module_callback_stat_sink_snapshot_release` drops the
handle and its references.

Risk Level: Low. These are new opt-in ABI callbacks, and the existing
flush path behaves the same.
Testing: Unit and integration tests, run locally in the CI build image:
`//test/extensions/dynamic_modules/stat_sink:abi_impl_test` (new cases
for values frozen at retain time, stat references, retaining from a
retained handle, a removed stat kept alive until release, and read plus
release on another thread),
`//test/extensions/dynamic_modules/stat_sink:sink_test`,
`//test/extensions/dynamic_modules:abi_impl_test` (weak stubs),
`//source/extensions/dynamic_modules/sdk/rust:envoy_proxy_dynamic_modules_rust_sdk_test`,
and `//test/extensions/dynamic_modules/stat_sink:integration_test`. The
integration test ran IPv4 only, because IPv6 is disabled in my local
container, so the IPv6 cases are left to CI.
Docs Changes: N/A (ABI header docs updated)
Release Notes: Added
`changelogs/current/new_features/dynamic_modules__stat-sink-snapshot-retain.rst`.
Platform Specific Features: N/A

---------

Signed-off-by: Dev Narula <[email protected]>
Co-authored-by: Isaac <[email protected]>
body_size_limit: add rejection counters (#48773)

Commit Message: body_size_limit: add rejection counters

The filter has no stats, so the only signal that it rejected something
was the access log's
`request_payload_too_large` response code details. #48985 already moved
the rejection log from `error` to `debug`.

This adds `rq_content_length_too_large` and `rq_body_too_large` counters
under
`http.<stat_prefix>.body_size_limit.`, and switches the rejection log to
`ENVOY_STREAM_LOG(debug)` so it carries the connection and stream IDs,
dropping the client address, upstream host and path it no longer needs.

Additional Description: Two counters rather than one because they mean
different things to an
operator: the first is a client announcing a too-large body, the second
is a chunked (or lying)
body that got cut off partway. The filter is alpha, so this isn't a
threat-model issue, but we were
looking at rolling it out on internet-facing listeners and the error log
volume was the thing that
stopped us.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low
Testing: unit and integration tests assert both counters
Docs Changes: added a Statistics section to the filter's docs page
Release Notes: added (new feature)
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
tcp_proxy: remove http stream reset mapping runtime guard (#48763)

Commit Message:
Remove `envoy.reloadable_features.map_http_stream_reset_to_tcp_rst` and
its obsolete fallback path. Preserve the enabled-by-default mapping of
remote HTTP stream reset reasons to `RemoteClose`/`RemoteReset` before
response completion; local resets and remote resets after response
completion continue to use `LocalClose`/`Normal`.

Additional Description:
- Remove disabled-guard unit and integration tests while retaining
default-path tunneling coverage.
- Extend unit coverage to include `RemoteResetNoError` and all four
mapped remote reset reasons after response completion across HTTP/1,
HTTP/2, and HTTP/3 codec parameters.
- This branch is based directly on main and is independent of the
upstream reset propagation guard cleanup.

Risk Level: Low; preserves the existing default behavior and removes the
ability to opt out.
Testing:
- Repository format checks, C++ formatting checks, and `git diff
--check` passed.
- Confirmed no remaining source, test, or documentation references to
the removed guard.
- Attempted focused tests with `bazel test
//test/common/tcp_proxy:upstream_test
//test/integration:tcp_tunneling_integration_test --jobs=2
--test_filter='*HttpUpstreamTest*:*UpstreamRstPropagationThroughTunnel*'
--test_output=errors`; compilation was blocked before tests ran because
the pinned LLVM compiler requires GLIBC_2.32/2.33/2.34, unavailable in
the local environment. Docker was unavailable, so execution n…
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…y#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…y#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
…y#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
…y#48870)

Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 12, 2026
Add an `update` input to the `registry` task of the dependency workflow,
passed through update.sh and `do_ci.sh registry` to `registry_update`:

- `*` bumps every module (in every nested MODULE.bazel) that has a newer
version available in the envoy bazel-registry, as reported by the
toolshed module updater after the pin has moved.
- `name` bumps that module to its latest registry version, `name=1.2.3`
to that version; specs are space separated and applied in every module
that declares them, as `deps.update` does.
- `*` is rejected when combined with other specs, and `update` is
rejected for the `bazel` and `lockfiles` tasks.

Inside the build container the command is exec'd unquoted, where a bare
`*` would glob, so update.sh passes it as `all`; `registry_update`
accepts either. Lockfiles are regenerated once at the end.

---------

Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants