.. _version_history_1.41.0: 1.41.0 (Pending) ================= Incompatible behavior changes ----------------------------- *Changes that are expected to cause an incompatibility if applicable; deployment changes are likely required* * **admin**: The ``/stats/prometheus`` and ``/stats?format=prometheus`` admin endpoints no longer sort the stats by name, which reduces the CPU cost of Prometheus scrapes with many stats. Each metric family is still emitted as one group, but the order of families and series can change between scrapes. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.prometheus_stats_unsorted`` to ``false``. * **bootstrap**: ``Server::Configuration::BootstrapExtensionFactory::createBootstrapExtension`` now returns ``absl::StatusOr`` instead of throwing on configuration errors, matching the non-throwing pattern already used by HTTP/network filter factories. This is a source-breaking change for out-of-tree bootstrap extensions: the interface method is now pure virtual with no default implementation, so every ``BootstrapExtensionFactory`` implementation must be updated to return a status instead of throwing. * **gcp_authn**: Bound token requests (:ref:`bound_jwt ` and :ref:`bound_access_token `) to the GCP metadata server now use HTTP ``POST`` with the full PEM-encoded client certificate chain in the JSON request body (``{"certificate_chain": ""}``), replacing the deprecated HTTP ``GET`` request with the ``bindCertificateFingerprint`` query parameter. * **geoip**: The :ref:`HTTP geoip filter ` now removes every configured geolocation header from the incoming request before the lookup, so a header a client sent is never forwarded upstream as if the lookup had set it. Previously a client-supplied header was kept whenever the lookup had no value for it: an address absent from the database, a database error, a field the database lacks for that address, or a request whose lookup was skipped because the downstream address was not an IP address. Geolocation providers report the headers they are configured to write through the new ``Driver::geoHeaderNames()`` method, which defaults to empty for providers that do not implement it. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.geoip_sanitize_geo_headers`` to ``false``. * **http**: Added the runtime guard ``envoy.reloadable_features.filter_manager_per_filter_buffer``, disabled by default. When enabled, the filter manager buffers the body data stopped at each filter in that filter's own buffer, instead of in a single buffer shared by the whole stream, so a filter only ever replays the data it holds itself. ``decodingBuffer()``, ``addDecodedData()`` and ``modifyDecodingBuffer()`` (and their encoding counterparts) then operate on the calling filter's own buffer: ``decodingBuffer()`` no longer returns body data buffered by other filters in the chain. A filter returning ``StopIterationNoBuffer`` consumes the frame: whatever it leaves in a frame replayed from an earlier filter's buffer is dropped. A body added by several filters while the headers pass through the chain is still sent once, as a single body. The stream buffer limit applies to the total held by all buffers in each direction, and the router drops the request body it kept for retries or internal redirects once it gives up on them, so the kept body no longer counts towards that limit. This fixes a filter resuming iteration ending the stream early, dropping the remaining body, when another filter earlier in the chain was still holding data that it later injected (for example, three ext_proc filters processing the body in ``STREAMED`` mode), and a filter resuming iteration sending on body data still held by an earlier filter before that filter had finished with it, or sending it twice to a filter that keeps it, such as the router with a retry policy. When enabled, the runtime guards ``envoy.reloadable_features.ext_proc_inject_data_with_state_update`` and ``envoy.reloadable_features.filter_manager_forward_added_data_on_continue`` have no effect. * **router**: A TCP upstream that half closes its connection, such as the origin of a terminated CONNECT tunnel, no longer causes an HTTP/2 or HTTP/3 downstream stream to be reset. The half close is propagated downstream as an end of stream, and the stream is closed once the downstream client half closes its own side. Previously the stream was reset, which discarded any response data that had not yet been written to the downstream connection. This change can be reverted by setting the runtime guard ``envoy.reloadable_features.tcp_tunnel_allow_upstream_half_close`` to ``false``. * **stats**: The tag-extracted names of per-worker stats now keep ``worker`` as a separate name segment when the ``worker_id`` tag is extracted: ``server.worker_1.watchdog_miss`` is now extracted to ``server.worker.watchdog_miss`` instead of ``server.worker_watchdog_miss``, and the same applies to the per-worker stats under ``listener.
.``, ``listener_manager.`` and ``thread_local_cluster_manager.``. Prometheus names are unchanged, because ``.`` and ``_`` are both sanitized to ``_`` there. Metric names change only for sinks that emit the tag-extracted name verbatim, such as ``dog_statsd``, ``metrics_service`` and the OpenTelemetry sink. * **tls**: Upstream TLS connections now default to a maximum TLS version of TLS 1.3 instead of TLS 1.2 when :ref:`tls_maximum_protocol_version ` is not set, which also lets them use the default post-quantum key exchange. When the upstream server supports TLS 1.3, an mTLS client certificate rejected by the upstream is reported as a reset after the connection is established rather than as a connection failure. In that case, ``connect-failure`` HTTP retries and TCP proxy :ref:`max_connect_attempts ` don't retry it on another endpoint, connect-only :ref:`TCP health checks ` pass, and the rejection isn't counted in the ``upstream_cx_connect_fail`` cluster statistic. Outlier detection also records the connection as successful, so the host isn't ejected for consecutive local origin failures caused by TCP proxy connections, or by HTTP requests when :ref:`split_external_local_origin_errors ` is enabled. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.default_client_tls_max_version_is_1_3`` to ``false``, or per cluster by setting ``tls_maximum_protocol_version`` to ``TLSv1_2``. * **upstream**: A host health change now re-partitions only the priority that holds the host instead of every priority. EDS clusters are unchanged. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.incremental_health_transition`` to ``false``. * **xds**: The ``envoy_reloadable_features_unified_mux`` is enabled by default after prod testing. Minor behavior changes ---------------------- *Changes that may cause incompatibilities for some users, but should not for most* * **ai_protocol_manager**: The :ref:`AI filters ` now also run on requests parsed under :ref:`parse_unconfigured_routes `, so a catch-all route such as a dynamic forward proxy's can rely on schema validation to detect the API. A payload that parses is re-serialized like a declared endpoint's unless ``reserialize_body`` is ``DISABLE``; one that fails to parse is still forwarded unchanged. An API an AI filter detects is published as ``envoy.ai.llm_protocol.request`` filter state, and the response then runs the AI filters as a declared endpoint's does. * **alts**: The ALTS transport socket's server-side (downstream) handshakes now talk to the ALTS handshaker service through Envoy's async gRPC client instead of blocking gRPC calls. Previously, each call blocked the worker thread until the handshaker service responded, for up to 30 seconds, so a slow or unreachable handshaker service stalled every connection on that worker. A worker now keeps serving its other connections while a handshake waits, a handshake whose connection closes is cancelled, and the handshaker service streams are counted in the ``grpc.alts_handshaker.*`` gRPC client stats. Client-side (upstream) handshakes still make blocking calls. This behavior can be temporarily reverted by setting runtime guard ``envoy.reloadable_features.alts_async_handshaker`` to ``false``. * **build**: GCC builds (``--config=gcc``) now use toolshed's hermetic GCC 13.4.0 toolchain instead of a GCC installed in the build image. GCC uses Envoy's hermetic sysroot (the same as Clang), static libstdc++, and links with hermetic LLD instead of gold. It supports Linux x86_64 only, and ``--config=gcc`` now fails on other platforms instead of building with Clang. The GCC build image, ``--config=libstdc++`` and ``BAZEL_USE_LIBSTDCPP`` are removed. To build with a system GCC, set ``gcc_extension.host(path = "...", toolchains = ["gcc_linux_x86_64"])`` from ``@envoy_toolshed//toolchains/gcc:extensions.bzl`` in the root module. * **build**: The GCC reference build (``--config=gcc``) is now built and tested in Envoy CI with ``-c opt``, for consistency with the Clang build, which is built and tested with ``-c opt``. The new ``gcc-ci`` config builds it as CI does, without debug information (``--fission=no`` and ``-g0``): with GCC, the split debug information that ``-c opt`` adds took compiles and links over the memory of the RBE pools they run on and made the binaries several times larger, and nothing from the GCC build is published. ``--config=gcc`` now links with ``-z nostart-stop-gc``, as ``-c opt`` links with ``--gc-sections``, which otherwise drops the link array sections ``upb`` registers extensions in. It also no longer treats ``-Wnonnull`` and ``-Wstringop-overflow`` as errors, as GCC reports false positives for them with optimization. This has no effect on any production binaries produced by the project, but downstream projects that build with GCC and wish to continue building with ``-c fastbuild`` may require some adjustment. * **cares**: Changes the default value of ``envoy.restart_features.shared_cares_dns_resolver`` to ``false``. Turn this on if ``qcache_max_ttl`` is set in c-ares config and sharing the query cache across DNS clusters is desired. * **config**: When a new SDS watch is added for a secret name that another watch on the same delta gRPC mux (or SotW gRPC mux with ``envoy.reloadable_features.unified_mux`` enabled) already subscribes to, and the new watch has not received any update yet, Envoy now delivers the last received version of that secret to the new watch instead of waiting for the management server to send it again. Previously the new watch received nothing until its ``initial_fetch_timeout`` expired or the server pushed a new version, for example after a listener or cluster update that only changed an ``sds_config``. Other resource types are not cached. This behavior can be temporarily reverted by setting the runtime flag ``envoy.reloadable_features.xds_replay_cached_resources`` to ``false``. * **config**: xDS resource types that may be subscribed to while a config update is being applied are now paused centrally for every subscription, regardless of its transport (gRPC, REST or filesystem), instead of by each xDS API. As part of this change, Virtual Host Discovery Service (VHDS) requests are now also paused while a Route Discovery Service (RDS) update is being applied, so that the VHDS subscriptions created by the update are batched into a single request. * **contrib**: The Istio peer metadata conversion now takes a peer's app name and version from the ``app`` and ``version`` labels again, and uses ``app.kubernetes.io/name`` and ``app.kubernetes.io/version`` only when those labels are absent or empty. A workload's own stats always use ``app`` and ``version``, so giving the ``app.kubernetes.io/*`` labels precedence made ``source_app``, ``destination_app``, ``source_version`` and ``destination_version`` reported by a peer differ from the values the workload reports for itself, and the same workload showed up under two names. This restores the label precedence Istio proxies used before ``app.kubernetes.io/*`` labels were preferred. * **dns**: The c-ares resolver (c-ares 1.34.9) now clamps DNS record TTLs that do not fit in a signed 32-bit integer to its maximum value (2147483647 seconds) instead of letting them wrap to a negative value, which Envoy previously treated as a zero TTL. When ``respect_dns_ttl`` is enabled, such records are now cached for the clamped TTL rather than refreshed on the next cycle. * **dns_resolver**: Updated the ``webpki-roots`` and ``rustls-webpki`` crates used by the built-in Hickory DNS resolver dynamic module, so that DNS-over-TLS and DNS-over-HTTPS upstreams no longer trust the compromised eMudhra intermediate CA certificates (see https://emudhra.we-have-a-problem.com/). * **dynamic_modules**: The dynamic modules route specifier no longer records ``specifier_duration`` for a request outside :ref:`runtime_fraction `. * **filter_chain**: The filters of a filter chain that is configured per route in the filter chain filter now get the stats prefix of the enclosing context instead of a hard-coded ``filter_chain.`` prefix. As route specific configurations have no stats prefix today, their stats move from ``filter_chain..*`` to ``.*``. * **grpc_web**: The gRPC-Web filter now limits the ``grpc-message`` built from a non-gRPC response body to 16 KiB also when the body arrives as a single chunk (for example a local reply), as it already did for bodies that arrive in several chunks. * **http**: An HTTP/1 downstream connection that carries no request between the start of a drain sequence and its :ref:`drain timeout `, such as one closed by the connection idle timeout, is now closed without waiting for the :ref:`delayed close timeout `. There is no response on such a connection for the client to read, and while the delayed close was pending Envoy ignored any request a pooling client sent on it, so that request was never answered. This change can be reverted by setting the runtime guard ``envoy.reloadable_features.http1_skip_delayed_close_on_idle_drain`` to ``false``. * **http**: The :ref:`body size limit filter ` no longer counts bytes sent after the upstream accepts an upgrade such as WebSocket, or a CONNECT request. Those bytes are tunneled traffic rather than a request body, and counting them reset long-lived WebSocket connections once their total traffic passed the limit. Bytes sent before the upstream accepts are still counted, and so are raw TCP tunneled over POST on an ``allow_post`` route and CONNECT-UDP that Envoy terminates itself. * **http**: The gRPC statistics filter now applies :ref:`replace_dots_in_grpc_service_name ` to allowlisted methods. Previously, this option only affected statistics emitted with ``stats_for_all_methods`` set to ``true``. When enabled with ``individual_method_stats_allowlist``, dots in service names are now replaced with underscores in emitted metric names. Allowlist entries continue to use the original service names, including dots. Dashboards and alerts that refer to the previous metric names need to be updated. * **jwt_authn**: jwt_authn: when a JWT has no ``kid``, keys whose ``x5t#S256`` (or, failing that, ``x5t``) differs from the JWT header's are skipped. Keys without a thumbprint are still tried. This behavior can be reverted by setting runtime guard ``envoy.reloadable_features.jwt_authn_select_key_by_x5t`` to ``false``. * **listener**: A State-of-the-World (SotW) Listener Discovery Service (LDS) update now removes only the listeners that were previously received through LDS, instead of every dynamic listener that is not part of the update. Listeners that other components add are therefore no longer removed when a SotW LDS update arrives, and a listener whose name differs from its resource name, such as an entry of a filesystem collection, is no longer drained and added again on every SotW update. This behavior can be reverted by setting ``envoy.reloadable_features.lds_sotw_track_resources`` to ``false``. Independently of this runtime guard, LDS now generates the name of a listener that it receives without a name, so one update can add several such listeners instead of rejecting all but the first as duplicates. * **listener**: A TCP listener that has filter chains from the Filter Chain Discovery Service (FCDS) and no :ref:`filter_chains ` is now updated in place in the same cases as the other listeners, instead of always being drained and replaced. The connections on the FCDS filter chains that the update keeps remain open. This behavior can be temporarily reverted by setting runtime guard ``envoy.reloadable_features.listener_in_place_address_update`` to ``false``. An in place update of any listener also drains its connections on the FCDS filter chains that the update drops. When the ``envoy.reloadable_features.use_connection_event_drain`` runtime guard is disabled, these connections are only closed once the drain completes. * **listener**: A TCP listener update that adds or removes addresses, and otherwise changes at most the filter chains, no longer drains the entire listener. The listener keeps accepting connections on the remaining addresses, and the connections accepted on the removed addresses are drained along with those of the removed filter chains. The new :ref:`total_listener_addresses_draining ` listener manager gauge counts the removed addresses until their drain completes. Such an update of a listener with :ref:`enable_reuse_port ` disabled is also no longer rejected with a duplicate address error. If the listener fails to listen on an added address, it drops the update and keeps serving its addresses instead of removing the listener. See :ref:`filter chain only update ` for the requirements. This behavior can be temporarily reverted by setting runtime guard ``envoy.reloadable_features.listener_in_place_address_update`` to ``false``. * **listener**: A listener whose Filter Chain Discovery Service (FCDS) configuration has no config source is no longer rejected. Instead it waits, without a timeout, for an extension, such as a bootstrap extension, to add its filter chains by name. When Envoy creates such a listener before it starts its workers, server initialization waits too. A filter chain name is either discovered through FCDS or added by an extension, and Envoy rejects a listener that requests a name of the other kind. A listener keeps its names until it is removed and has finished draining, so an update that sets or clears the config source of a listener must use new filter chain names. * **load_balancing**: Allowed :ref:`use_hostname_for_hashing ` for ``STATIC`` and ``EDS`` clusters in addition to ``STRICT_DNS`` clusters. The optional :ref:`hostname ` field of the endpoint is used as the hash key, and hosts without a hostname fall back to hashing by the resolved address. * **logging**: Fault descriptions and backtraces are now written directly to stderr from the fatal signal handler, and are no longer emitted to configured log sinks such as :option:`--log-path`. Deployments that collect crash backtraces from the log file need to capture stderr instead. * **mcp**: Removed the 10MB (10485760 bytes) upper bound on the MCP filter's :ref:`max_request_body_size ` and the per-route :ref:`max_request_body_size `. Any ``uint32`` value is now accepted; the 8KB default is unchanged. * **mcp**: Updated ``POST`` ``Content-Type`` validation in the :ref:`MCP filter ` to match ``application/json`` case-insensitively and accept ``;``, space, tab, or ``,`` parameter/value delimiters. * **network_ext_proc**: Promoted the :ref:`network external processing filter ` and its v3 API from work-in-progress to ``stable`` status, with security posture set to ``requires_trusted_downstream_and_upstream``. * **on_demand**: On-demand cluster discovery (ODCDS) can now answer repeated requests for a cluster the server has already reported as missing immediately from that remembered answer, instead of starting another discovery and waiting for the response or the discovery timeout. The answer is remembered per config source, only for explicitly requested clusters, and is withdrawn as soon as an update delivers the cluster. Requests answered this way are counted in the new :ref:`cluster_manager.odcds.known_missing_answers ` counter. This behavior is off by default and can be enabled by setting the runtime guard ``envoy.reloadable_features.odcds_missing_cluster_cache`` to ``true``. * **quic**: QUIC listeners now create the connection ID generator factory and apply its worker-routing socket option when the socket factory config is loaded, instead of when the listener config is loaded. This behavior can be reverted by setting runtime guard ``envoy.restart_features.defer_worker_routing_init`` to ``false``. * **rbac**: The default stats tag-extraction rules now extract tags from the RBAC network filter's stats (``.rbac.*``): the rules/shadow rules stat prefix is extracted as the new ``envoy.rbac_rules_prefix`` tag, and the policy name of per-policy stats is extracted as ``envoy.rbac_policy_name``. The policy name is now also extracted for the upstream HTTP RBAC filter's per-policy stats (``cluster..rbac.*``). Previously these tags were only extracted for the downstream HTTP filter's stats. Flat stat names are unchanged; only the tag-extracted names and tags visible to tagged stats sinks (e.g. Prometheus) change. * **reverse_tunnel**: Updated the reverse-tunnel upstream HTTP/2 codec so when :ref:`enable_drain_with_goaway ` is enabled, upstream-initiated graceful drains (such as via ``/reverse_tunnel/drain_clusters``) emit a connection-level (stream 0) METADATA frame carrying ``envoy.reverse_tunnel.drain: true`` before the final GOAWAY, replacing the previous drain-start client GOAWAY (which never reached the wire because nghttp2 rejects client GOAWAYs with an odd last stream ID and oghttp2 drops client GOAWAYs, yet ``reverse_tunnel_upstream_codec.goaway_sent`` counted it). Replaced ``reverse_tunnel_upstream_codec.goaway_sent`` with ``reverse_tunnel_upstream_codec.drain_started`` to count each drain start, while the cluster's ``http2.goaway_sent`` stat tracks the final GOAWAY sent after the drain window. The server-side drain-aware HTTP connection manager now observes that METADATA frame when :ref:`enable_drain_with_goaway ` is enabled and dials a replacement tunnel before the final GOAWAY arrives. Emitting and observing the drain METADATA frame requires ``http2_protocol_options.allow_metadata`` on both sides. * **spiffe_validator**: The SPIFFE certificate validator now rejects a ``trust_domains`` entry whose ``trust_bundle`` parses but contains no certificate, for example a bundle holding only a CRL. Such a trust domain previously loaded successfully but had no trust anchor, so every handshake for it failed at verification time instead. This matches the behavior of the ``trust_bundles`` (SPIFFE bundle map) configuration, which already rejects a trust domain with no certificate. This change can be reverted by setting the runtime guard ``envoy.reloadable_features.spiffe_validator_reject_empty_trust_bundle`` to ``false``. * **stats**: Added the new ``envoy.upstream_from_zone`` and ``envoy.upstream_to_zone`` tags, extracted by the default stats tag-extraction rules from a cluster's upstream per-zone stats (``cluster..zone...*``). Flat stat names are unchanged. * **tls**: Parsed TLS certificate chains and private keys are now cached and shared across TLS contexts that reference identical PEM material, so each distinct certificate and key is parsed once instead of once per context. Password-protected private keys are not cached. This change can be reverted by setting the runtime guard ``envoy.reloadable_features.cache_parsed_tls_certificates`` to ``false``. * **tls**: Removed the ``AAA Certificate Services`` and ``emSign ECC Root CA - G3`` roots from the root certificate bundle built into Envoy Mobile. Both roots issued or cross-signed eMudhra intermediate CA certificates whose private keys were compromised (see https://emudhra.we-have-a-problem.com/). Servers whose certificate chains only lead to these roots are no longer trusted by Envoy Mobile when it uses its built-in bundle. * **tls**: The :ref:`SPIFFE certificate validator ` has been promoted to stable status. * **udp**: Updated the GSO UDP packet writer, used by QUIC and UDP listeners, to send datagrams larger than 1452 bytes through ordinary UDP sends instead of failing with ``EMSGSIZE``. Multi-slice datagrams also use ordinary sends, after flushing any older batch. Blocked writers now return ``EAGAIN`` without accepting new datagrams. The ``internal_buffer_size`` gauge now sums buffered bytes across writers sharing a statistics scope instead of reporting the last writer's value. * **upstream**: A State-of-the-World (SotW) CDS update now removes only the clusters that were previously received through that same CDS subscription, instead of every dynamic cluster that is not part of the update. Clusters added by on-demand CDS (ODCDS) are therefore no longer removed when a SotW CDS update arrives, which previously caused ``cluster_not_found`` responses until the clusters were re-discovered. This behavior can be reverted by setting ``envoy.reloadable_features.cds_sotw_track_resources`` to ``false``. * **upstream**: EDS and static cluster hosts now share endpoint and locality metadata only when it serializes to the same bytes. Endpoints and localities whose :ref:`typed_filter_metadata ` holds equal messages encoded differently, for example by a control plane that does not serialize map fields deterministically, no longer share one in-memory copy of that metadata, while an update still treats endpoint metadata as unchanged. * **vhds**: When a virtual host discovered through :ref:`VHDS ` has the same :ref:`name ` as a virtual host defined in the RDS :ref:`virtual_hosts `, the VHDS virtual host now replaces the RDS one in the merged route configuration. Previously both virtual hosts were kept. Removing the VHDS virtual host restores the RDS one. This behavior change can be reverted by setting the runtime guard ``envoy.reloadable_features.vhds_overrides_rds_virtual_hosts_with_same_name`` to ``false``. Bug fixes --------- *Changes expected to improve the state of the world and are unlikely to have negative effects* * **admin**: Reduced repeated field mask parsing in ``/config_dump`` requests. * **admin**: Route and scoped route config dumps now skip expired entries during provider destruction. * **admin**: Sanitize histogram names rendered as JSON into the inline scripts of the admin ``/stats?format=html&histogram_buckets=detailed`` page, so that a stat name cannot close the script element and inject markup. This change is guarded by the runtime guard ``envoy.reloadable_features.sanitize_html_stats_names``. * **ai_protocol_manager**: Fixed ``LLMBinding`` ``uri_pattern`` parsing to reject invalid HTTP header characters in the query string. * **ai_protocol_manager**: Fixed ``ai_protocol_manager`` SSE token usage extraction misclassifying oversized SSE events when the ``event:`` header line straddled a data frame boundary. Classification now inspects the full ``max_sse_event_size`` prefix across frame boundaries so skippable oversized events do not falsely mark token usage as degraded. * **ai_protocol_manager**: Fixed the ``request_info`` AI filter to accept string values (e.g. ``"256"``) in addition to numbers for ``maxOutputTokens`` / ``max_output_tokens`` in Gemini ``generateContent`` requests. * **ai_protocol_manager**: Fixed the ``transcoder`` AI filter to rewrite the request ``:path`` to ``/v1/chat/completions`` by default when transcoding requests to OpenAI Chat Completions. * **ai_protocol_manager**: Fixed the streaming JSON parser used by ``ai_protocol_manager`` not latching its error state. After ``feed()`` returned an error raised part-way through a chunk (handler error, nesting limit, duplicate key, malformed input), the next call resumed with stale token offsets and could index past the end of the new chunk, aborting the process. The first error is now sticky: every later call returns the same status without re-entering the decoder. * **ai_protocol_manager**: Fixed the streaming JSON parser used by ``ai_protocol_manager`` so the 64-byte number length limit is enforced when a number finishes parsing, rather than only when an incomplete number at the end of a chunk exceeds 64 bytes. * **alts**: Fixed ALTS connections holding their handshaker service stream until the connection closed. With a gRPC client that limits concurrent calls per connection (gRFC A105), each open ALTS connection used up one slot on the handshaker channels, so once enough connections were open, new handshakes waited until their deadline, blocking the worker thread, and then failed. The handshaker is now released as soon as the handshake completes. * **alts**: Fixed the ALTS transport socket dropping the peer's end of stream when it arrived together with the peer's last handshake message. The end of stream is now reported once the handshake completes. * **basic_auth**: Fixed the basic auth filter to match the ``Basic`` authentication scheme case-insensitively, as RFC 9110 requires. Before this fix, the filter rejected credentials sent with a scheme such as ``basic`` or ``BASIC``. With :ref:`allow_missing ` set, the filter passed these requests through without authentication. * **cache**: Fixed the ``cache_v2`` filter so that idle cache sessions expire. Each lookup checked only the first session in the table, so idle sessions and the ``cache_sessions_entries`` gauge could grow while that session stayed in use. * **cache**: Fixed the cache_v2 filter to recheck cacheability after merging a 304 validation response. Responses that become uncacheable, including those with ``Cache-Control: private`` or ``no-store``, are evicted and fetched again without cache validators, preventing their headers from being shared with other requests. * **composite**: Fixed a use-after-free in the :ref:`composite ` filter when it is configured through :ref:`config_discovery ` and an ECDS update replaces its configuration while a stream is paused in an earlier filter. The filter instances created from the previous configuration now share ownership of the filter stats, and the match tree and named filter chains they hold are released on the main thread, so that the delegated filter configurations are not destroyed on a worker thread. * **compressor**: Fixed compression of empty request and response bodies when no ``content-length`` header is present. The compressor now waits for nonempty body data before enabling compression for these streams. This change can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.compressor_skip_empty_body`` to ``false``. * **config**: Reduced the cost of protobuf redaction, applying resource field masks in ``/config_dump``, reading Lua typed metadata, and loading filesystem collections by reusing protobuf's generated message factory. * **contrib**: Fixed a crash in the ``rocketmq_proxy`` network filter (contrib) where a request whose custom header failed to decode (for example a request frame with the RPC flag set, which routes decoding to the response-header path) left the typed custom header null. The request handlers then dereferenced the null header. The handlers now reject such requests with a system error response instead of crashing. * **contrib**: Fixed a use-after-free in the ``kafka_mesh`` network filter (contrib). A Fetch request that finished while its downstream connection was closing delivered its answer through a dispatcher callback that held a raw pointer to the request and called the filter directly, so the callback ran on the freed request and filter. The callback now only runs if the request is still alive, and reaches the filter only while the filter has not abandoned the request. * **contrib**: Fixed a use-after-free in the ``sip_proxy`` network filter (contrib). The per-worker transaction table only marked an ended transaction as deleted and removed it later, so an upstream response with that transaction's branch, arriving on an upstream connection shared with another downstream connection, was delivered to the freed transaction. Ended transactions are now removed right away, an upstream request no longer refers to a transaction that has moved away from it or ended, and a late response after all transactions on an upstream connection have ended is dropped instead of dereferencing a null pointer. * **dns_cluster**: Fixed a regression in the new DNS cluster implementation (``envoy.reloadable_features.enable_new_dns_implementation``) where a logical DNS cluster replaced its host whenever the resolved addresses changed, draining all connection pools to the host on every change. This caused heavy connection churn for DNS servers that rotate their answers, e.g. for load balancing. The host's addresses are now updated in place, as the legacy logical DNS cluster did. The previous replace-and-drain behavior can be restored by setting the new :ref:`skip_draining_on_resolution ` field to ``false``. * **dns_resolver**: Fixed a data race and cross-thread resolver sharing introduced with the ``envoy.restart_features.shared_cares_dns_resolver`` runtime guard. The shared resolver cache lived on the process wide c-ares DNS resolver factory and was consulted by every caller, without synchronization. Callers that create resolvers on worker thread could therefore race on the cache, and could be handed a resolver bound to another thread's dispatcher. Moving the shared logic into the upstream cluster similar to the default shared resolver eliminates any future issues and avoid locking in the worker thread. Also switch default for ``envoy.restart_features.shared_cares_dns_resolver`` to false. * **dynamic_forward_proxy**: Fixed a race in the dynamic forward proxy cluster where a request arriving while DNS resolution for a cold host was completing could receive a spurious 503 (``UH``) with the successful resolver detail string even though resolution succeeded. The cluster now re-selects the host from its host map after observing a completed cache entry instead of treating a cache hit following a host-map miss as a failure. As part of this change, host selection that completes with no DNS host info now reports ``no_host`` as the response code details instead of an empty string. * **dynamic_modules**: Fixed dynamic module filter state setters, such as ``set_filter_state_bytes``, returning ``true`` for a key already stored at a different life span, for example by another filter at ``Request`` life span. Envoy refused such a write with an ``ENVOY_BUG``, which aborts debug builds. The setters now return ``false`` and keep the stored value. * **dynamic_modules**: Fixed dynamic module metric IDs. The first metric defined with labels got the same ID as the first one defined without labels, and metrics of different types also shared IDs. A module that recorded a metric with the wrong number of label values, or through the call of another metric type, then changed a different metric instead of getting an error. Every metric now has its own ID. * **dynamic_modules**: Fixed legacy ``udpa.type.v1.TypedStruct`` dynamic module configuration being delivered as protobuf bytes instead of JSON. * **dynamic_modules**: Fixed the Rust SDK's ``EnvoyBuffer::new`` so buffers cannot outlive their input slice. * **dynamic_modules**: Fixed the gRPC status of local replies sent by HTTP dynamic modules. ``send_response`` passed ``grpc-status: 0`` (OK) for every status code, so a gRPC client denied with, for example, a 403 was told the call succeeded. A 200 reply still maps to OK; any other code now maps to the matching gRPC status, as for other local replies (403 to ``PERMISSION_DENIED``, 429 to ``UNAVAILABLE``). * **dynamic_modules**: Fixed the upstream HTTP TCP bridge (``envoy.upstreams.http.dynamic_modules``) loading its dynamic module and creating its bridge configuration on worker threads, where two workers could run ``envoy_dynamic_module_on_program_init`` at the same time or use the module before it returned. The bridge now loads its module and calls ``envoy_dynamic_module_on_upstream_http_tcp_bridge_config_new`` once on the main thread when the cluster is created, as the ABI documents, and a module or bridge configuration that fails rejects the cluster instead of failing its requests. * **dynamic_modules**: Removed ``Clone`` and ``Copy`` from the Rust SDK's ``EnvoyMutBuffer`` to prevent overlapping mutable references. * **formatter**: Fixed a performance issue where metadata command operators such as ``%DYNAMIC_METADATA(...)%`` copied the whole metadata each time they produced a typed value, for example for the fields of a :ref:`json_format ` access log. * **golang**: Fixed the Go HTTP filter dropping buffered body data when an asynchronous ``DecodeData`` or ``EncodeData`` returned ``StopAndBuffer`` after the trailers had arrived and the trailers were then handled synchronously. The trailers were forwarded without the buffered body. * **golang**: Fixed the Go HTTP filter forwarding buffered body data with ``end_stream`` set when the filter resumed processing the trailers, for example after an asynchronous ``StopAndBuffer`` returned once the trailers had already arrived. The trailers were then sent after the stream had ended, which asserted in debug builds. * **golang**: Fixed the Go HTTP filter's access log callbacks not seeing the request headers when an earlier filter sent a local reply before the Go filter decoded them. Reading the request headers in ``OnLog`` panicked with an invalid phase error, and request properties such as ``request.referer`` were not found. * **grpc_field_extraction**: Fixed the ``grpc_field_extraction`` filter corrupting streaming gRPC requests when the data chunk completing the first message also carried the head of the next pipelined message. The filter buffers request data internally to extract fields from the first message but never forwarded the buffered leftover bytes once extraction completed, so the remainder of the next message was delivered without its gRPC frame header and the stream was corrupted. The leftover bytes are now forwarded after extraction completes. * **grpc_sidestream**: Address lifetime errors in the gRPC sidestream when the graceful stream closure is enabled by setting the ``envoy.reloadable_features.ext_proc_graceful_grpc_close`` runtime flag to true. * **http**: Changed the log level from ``error`` to ``debug`` for the message the :ref:`body size limit filter ` logs when it rejects a request for exceeding the configured limit. Downstream clients trigger this message, so logging it at ``error`` level could cause excessive logging. * **http**: Fixed a bug in filter manager trailer forwarding where a filter resuming from ``StopAllIterationAndBuffer`` or ``StopAllIterationAndWatermark`` that re-buffers the body in ``decodeData()`` / ``encodeData()`` before returning ``Continue`` from ``decodeTrailers()`` / ``encodeTrailers()`` dropped the buffered body on the nested continuation. Guarded by ``envoy.reloadable_features.filter_manager_forward_held_trailers``. * **http**: Fixed a bug where a filter manager body buffer dropping below its low watermark after a too large body had triggered a local reply (rather than backpressure) released backpressure that was never applied, e.g. resuming reads on the connection or calling the downstream low watermark callbacks without a matching high watermark. * **http**: Fixed downstream span finalization to run after ``onStreamComplete`` so filter-set span tags are exported instead of silently dropped. * **http**: Fixed filter manager handling of trailers held by a filter, either added by it (``addDecodedTrailers()`` / ``addEncodedTrailers()``) or received while it stopped all iteration. Added response trailers skipped a later filter that stopped iteration on the data, which could hold the whole response when that filter waits for the end of the stream, and added request trailers could be decoded twice by the later filters when a filter stopped on headers continued on the data. Trailers are now forwarded exactly once from the filter holding them, once it iterates, and reach every later filter. This change can be reverted by setting the runtime guard ``envoy.reloadable_features.filter_manager_forward_held_trailers`` to ``false``. * **http**: The :ref:`connect_grpc_bridge filter ` now maps the ``canceled``, ``deadline_exceeded``, ``failed_precondition`` and ``unimplemented`` gRPC statuses to the HTTP status codes defined by the current Connect protocol specification (``499``, ``504``, ``400`` and ``501`` respectively, previously ``408``, ``408``, ``412`` and ``404``). * **http**: grpc: fixed core retry policy conversion so ``retry_back_off.max_interval`` is no longer used as the per-try timeout. A dedicated :ref:`per_try_timeout ` field can now be configured independently. * **http**: http: fixed a crash in the cache v2 filter when a late callback from a failed cache insertion affected a subsequent request for the same entry. Aborted insertions now reset waiting requests, and subsequent requests use a new cache session. Lookups aborted without a response source now increment the cache ``upstream_reset`` event counter. Upstream resets during cache validation reset waiting lookups while preserving existing cached readers. * **http2**: Fixed oghttp2 (``envoy.reloadable_features.http2_use_oghttp2``) dropping trailers when the body exactly exhausted the peer's flow-control window before the trailers were encoded, for example a 65535-byte gRPC response to a client using the default initial window. The stream was ended by an empty DATA frame and the client never received the trailers. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.http2_trailers_after_exhausted_window`` to false. * **http2**: Fixed oghttp2 (``envoy.reloadable_features.http2_use_oghttp2``) sending outbound DATA frames as large as the peer's ``SETTINGS_MAX_FRAME_SIZE``, which caused legitimate flow-control ``WINDOW_UPDATE`` traffic from clients that acknowledge data in small increments to be misclassified as a flood (``http2.inbound_window_update_frames_flood``) and the connection to be closed. Outbound DATA frame payloads are now capped at 16 KiB, matching nghttp2. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.http2_oghttp2_cap_data_frame_payload`` to false. * **http3**: Fixed an ``ENVOY_BUG`` and premature transition to ``Ready`` in upstream HTTP/3 connection pools when a 0-RTT connection exhausted its cached stream limit (entering ``Busy``) and the server subsequently advertised a higher ``initial_max_streams_bidi`` during the TLS handshake before handshake completion. The connection now transitions back to ``ReadyForEarlyData`` until the handshake finishes. * **listener**: Fixed a use-after-free during worker shutdown. When a connection handler was destroyed with connections still open, closing those connections could re-enter the handler, e.g. an upstream connection pool reconnecting to an internal listener, and look up the already destroyed internal listener map. This could crash Envoy or make the worker thread spin forever and hang shutdown. * **listener**: Fixed filter chains from the Filter Chain Discovery Service (FCDS) to warm until the init targets of their transport sockets, such as SDS secrets, are ready. A filter chain that FCDS delivered after startup added them to the initialized server init manager, which failed a debug assertion. Release builds activated the filter chain without waiting, and never fetched an SDS secret that no other TLS context used. * **listener**: Fixed the listener manager to notify its listener update callbacks of an update that replaces an active listener before the workers start. When destroying the replaced listener finished the server initialization, the workers started first and the update was not reported, so a bootstrap dynamic module with ``enable_listener_lifecycle`` missed its ``on_listener_add_or_update`` notification. * **listener**: listener: fixed buffered data being discarded when a listener filter receives combined read and close notifications, such as when a peer half-closes an internal-listener connection before protocol inspection completes. * **logging**: Fixed fatal signal backtraces re-entering the logger mutex, which could abort or deadlock when the mutex was already held on the crashing thread or inherited locked across a fork. Native and coroutine backtraces now write directly to stderr in fatal signal handlers, preserving fault descriptions and backtrace headers and stack decoder compatibility without using the logging infrastructure. The alternate signal stack is sized using the runtime ``_SC_SIGSTKSZ`` minimum with headroom for nested fatal signals. * **matching**: Fixed :ref:`ServerNameMatcher ` to convert both the configured domains and the incoming domain to lowercase before comparing them, since domain names are not case-sensitive. * **mcp**: Fixed handling of MCP ``2026-07-28`` requests whose ``params._meta["io.modelcontextprotocol/protocolVersion"]`` is missing or is not a string. The :ref:`MCP filter ` in ``REJECT_NO_MCP`` mode and the ``mcp_json_rest_bridge`` HTTP filter now reject them with HTTP ``400`` and JSON-RPC error ``-32602``. Previously, the MCP filter accepted missing metadata and rejected non-string metadata as a ``-32020`` header mismatch counted in ``header_mismatch``, and the bridge handled requests with an ``MCP-Protocol-Version: 2026-07-28`` header but without valid metadata as legacy requests. * **mcp**: Fixed the :ref:`MCP filter ` treating JSON-RPC messages that contain both ``method`` and ``result`` (or ``error``) as responses. Such messages are now treated as requests, so in ``REJECT_NO_MCP`` mode they can no longer skip the required MCP ``2026-07-28`` ``params._meta`` fields, and their ``method`` dynamic metadata is no longer replaced with ``__jsonrpc_response``. * **mcp**: Fixed the MCP filter's per-route :ref:`McpOverride ` resetting listener settings that it does not set. An override which only sets ``traffic_mode`` now keeps the listener's ``clear_route_cache``, ``parser_config``, ``request_storage_mode`` and ``reject_duplicate_keys``, as before ``1.40``. ``parser_config`` applies only when set, and ``request_storage_mode`` applies only when not ``MODE_UNSPECIFIED``. * **mcp**: Fixed the ``mcp`` filter's streaming JSON field extractor losing track of the current field path after an object with an empty key (``{"": {}}``). The empty-key object popped its parent's path segment, so every field that followed it, such as ``params.name``, was resolved against the wrong path and not extracted. Push and pop of the path stack are now paired for every object regardless of its key. * **mcp_json_rest_bridge**: Fixed MCP header Base64 decoding so values with an incomplete Base64 wrapper are treated as literals, and an empty Base64 payload correctly decodes to an empty string. * **mcp_json_rest_bridge**: Fixed the ``mcp_json_rest_bridge`` HTTP filter per-route configuration validation to reject duplicate ``(host, path)`` endpoint configurations instead of silently merging tools and ignoring subsequent ``tool_list_http_rule`` or ``tool_list_local`` settings. * **mcp_json_rest_bridge**: Fixed the ``mcp_json_rest_bridge`` HTTP filter so that a ``POST`` request that ends at the headers, such as an HTTP/1 request with ``Content-Length: 0`` or an HTTP/2 request whose ``HEADERS`` frame carries ``END_STREAM``, is rejected with HTTP ``400 Bad Request`` and a JSON-RPC ``-32700`` parse error, as requests with an empty body already were. Previously, such requests hung until the stream idle timeout. * **mcp_json_rest_bridge**: Fixed the ``mcp_json_rest_bridge`` HTTP filter to reject unsupported JSON-RPC notifications, i.e. messages without an ``id`` whose method starts with ``notifications/``, as unsupported methods with an HTTP error status, as required by the Streamable HTTP transport. Previously, they got HTTP ``200 OK`` with a JSON-RPC ``-32600`` error for the missing ``id``. Rejected legacy notifications now get HTTP ``400 Bad Request``, and MCP ``2026-07-28`` notifications keep the existing HTTP ``404 Not Found`` for unsupported methods. A ``notifications/initialized`` message with an ``id`` is now validated as a request instead of getting ``202 Accepted``. * **mcp_json_rest_bridge**: Fixed the ``mcp_json_rest_bridge`` HTTP filter to respond with HTTP ``404 Not Found`` instead of ``200 OK`` when a stateless MCP ``2026-07-28`` request uses a method that the bridge does not implement, as required by the Streamable HTTP transport. The JSON-RPC error code is unchanged (``-32601``). This also applies to the legacy ``initialize`` and ``notifications/initialized`` methods sent as stateless requests. Requests that use MCP ``2025-11-25`` or earlier still receive ``200 OK``. * **mcp_router**: Added optional ``session_signing_key`` to the ``mcp_router`` HTTP filter. When set, composite session IDs minted by the filter carry an HMAC-SHA256 of the session blob and a presented session whose MAC does not verify is rejected with a 400 error. Previously the session blob was Base64 encoded only, so the ``ENFORCE`` session identity check compared the authenticated request identity against a subject read out of the client-supplied, editable blob, and did not bind the session to the authenticated principal. The ENFORCE integration tests were also fixed: the test helper inserted the subject unencoded, so the parsed subject was always empty and the accept path was never exercised. * **memory**: Fixed jemalloc memory accounting so that reserved memory includes retained pages, matching tcmalloc semantics and preventing underflow in physical memory calculations. * **network_ext_proc**: Fixed the :ref:`network external processing filter ` accepting :ref:`ProcessingResponse ` messages carrying data for a direction configured as ``SKIP`` in :ref:`processing_mode `, or setting both ``read_data`` and ``write_data``. Such responses are now ignored and counted under ``spurious_msgs_received``. This change can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.network_ext_proc_enforce_processing_mode`` to ``false``. * **overload_manager**: Fixed a use-after-free that could crash a worker thread during Envoy shutdown when a TCP listener is configured with :ref:`exact_balance ` and the ``envoy.resource_monitors.global_downstream_max_connections`` overload manager resource monitor is configured. A connection accepted on one worker could be handed off to a different worker via connection balancing while still holding a reference into the *originating* worker's thread-local overload state; because worker threads shut down independently with no ordering guarantee relative to one another, the destination worker could destroy the connection after the originating worker had already torn down its own thread-local state, dereferencing freed memory. The connection's overload state reference is now rebound to the receiving worker's own thread-local state once the connection has settled on its final worker, so it is always valid for as long as the connection itself is. * **quic**: Fixed a use-after-free in HTTP/3 upstream connections after their cluster was removed. The per-cluster QUIC state (including the clock and alarm factory the connections use) was destroyed with the cluster, while the cluster's connection pools were only drained, so a connection with active streams read freed memory on its next write or timer and crashed the process. The state now lives as long as any connection pool using it. * **quic**: Fixed the HTTP/3 upstream connection pool during 0-RTT when the stream limit resumed from cached transport parameters is zero. QUICHE only reports increases, so the pool kept its optimistic capacity until the handshake completed and could attach a stream QUICHE had no stream ID for. This change can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.quic_report_zero_stream_limit_before_handshake`` to ``false``. * **quic**: Fixed the QUIC-LB connection ID generator (``envoy.quic.connection_id_generator.quic_lb``) accepting an SDS update that changed ``encryption_key`` without changing ``configuration_version``, while its workers kept using the previous key until Envoy restarted. The new key is now applied, with a warning: connection IDs already issued under the previous key may no longer be routed to this server by a load balancer holding the new one, which changing ``configuration_version`` with the key avoids. A secret update that keeps the key and configuration version is now a no-op. * **ratelimit**: Fixed local cluster rate limit sharing when the shared cost of a request is larger than ``max_tokens``, for example when the local cluster has more members than ``max_tokens``. Before this fix, every such request was rejected. Now, a request that fits in the bucket without sharing passes when the bucket holds ``max_tokens`` tokens. The request still consumes its full shared cost, so the bucket can go below zero and the next request waits until the bucket refills. The aggregate rate across the local cluster stays at the configured rate, but the aggregate burst can be one request for each member. Requests that cost more than ``max_tokens`` without sharing remain rejected, and ``max_tokens: 0`` continues to reject every request. This behavior can be temporarily reverted by setting runtime guard ``envoy.reloadable_features.local_ratelimit_local_cluster_preserve_one_request`` to ``false``. * **reverse_tunnel**: Fixed the reverse connection cluster picking, for a cluster ID, a node whose sockets are all in use, such as a draining initiator still serving long requests. Such a node cannot take a new connection, so every request routed to it failed with ``fallback_no_reverse_socket`` until its last request ended. Round-robin now skips to the next node with an idle socket, and falls back to the old behavior when no node has one. * **reverse_tunnel**: Fixed the reverse tunnel responder spreading a node's new sockets across workers by the number of sockets each worker had ever accepted for it, a count that never went down. As sockets were used or closed, a worker could be left with no idle socket for a node while others held several, and requests on that worker failed with ``fallback_no_reverse_socket``. New sockets now go to the worker holding the fewest idle sockets for the node, among the workers of the same upstream socket interface extension. * **reverse_tunnel**: reverse_tunnel: added listener draining behavior behind the runtime guard ``envoy.reloadable_features.reverse_tunnel_listener_drain``, which defaults to false. When enabled, initiators stop pending handshakes and replacement dials when the whole listener begins draining, independently of ``enable_drain_with_goaway``. With that option enabled, admin drains close unused tunnels, while in-place filter-chain updates request replacements and preserve HCM's existing idle drain grace. Full listener replacement and hot restart also retain unused tunnels' existing drain grace. With the guard enabled and ``envoy.reloadable_features.use_connection_event_drain=false``, the drain-aware HCM's drain decision follows the listener direction, so an ``INBOUND`` listener participates in ``drain_listeners?inboundonly``. The default connection-event mode already respects that scope. When the responder also enables ``ReverseTunnelUpstreamCodecOptions.enable_drain_with_goaway``, node selection excludes initiators whose remaining tunnels have received GOAWAY or sent the final GOAWAY during ``/reverse_tunnel/drain_clusters``. Existing streams continue on those tunnels. Requests with no eligible initiator fail with HTTP 503 and response flag ``UH`` (no healthy upstream), instead of the previous fallback connection failure with ``UF``. This local response does not trigger ``connect-failure`` retries that could retry the previous connection failure. These requests increment ``cluster..upstream_rq_all_tunnels_draining`` instead of ``fallback_no_reverse_socket``. Drain METADATA received from an initiator still only notifies the reporter. Regardless of the guard, listener teardown cleans up pending and queued tunnel gauges, emits ``connection_closed`` access logs for queued tunnels, and logs the stop at info level. * **router**: Fixed ``cluster_header`` routes to re-evaluate the target cluster from the configured request header when ``refreshRouteCluster()`` is called (for example, when ``refresh_cluster_on_retry`` is enabled). * **router**: Fixed a bug in Scoped RDS (SRDS) where a single invalid scope in an update batch aborted processing of the remaining scopes in the push and left already-processed scopes in the main-thread map without propagating them to worker threads. When enabled, valid scopes in a partially rejected push are applied to worker threads while failed scopes are skipped and NACKed. Guarded by runtime guard ``envoy.reloadable_features.srds_partial_acceptance`` (disabled by default). * **router**: Fixed a crash in ``Filter::addDownstreamSetCookie()`` when the router is invoked without a downstream connection (e.g. ``Http::AsyncClient``-driven paths such as ``ext_authz`` or ratelimit side calls, mirror/shadow, and health checks) and a cookie hash policy is configured. Previously the function would unconditionally dereference ``downstreamConnection()`` to compose the per-connection seed for the generated cookie value. When the connection pointer was null the worker would crash. The function now skips the connection-derived seed and returns an empty cookie value in that path, preserving hash-stability for those async invocations. * **router**: Fixed a leaked upstream stream and a use-after-free crash when an upstream HTTP filter sent the response itself through ``encodeHeaders()`` / ``encodeData()`` after the connection pool had attached a connection. The codec stream stayed open and kept its connection, and a later close of that connection called into the destroyed upstream request. The upstream codec filter now resets an unfinished codec stream when the upstream filter chain is destroyed. * **router**: Fixed the stats prefix that the router passes to its upstream HTTP filters to keep its trailing dot (``http..``). Upstream HTTP filters that appended their own name to it directly, such as the Lua, compressor and admission control filters, emitted stats under names like ``http.lua.*`` instead of ``http..lua.*``. * **server**: Fixed a crash on shutdown when hot restart is enabled and a QUIC listener uses the QUIC-LB connection ID generator with SDS encryption parameters. * **server**: Fixed a deadlock between the two main threads of a hot restart: the parent forwarded UDP/QUIC packets to the child with a blocking send from its main thread, while the child's main thread waited for the parent's replies (stats merge, listen socket hand-off) with a blocking receive and read no forwarded packets meanwhile, so once the child's forwarding socket filled up both processes stopped handling admin, xDS, timers and signals for good. The parent now forwards through a bounded non-blocking queue, the child keeps servicing forwarded packets while it waits and gives up on a parent that stops answering, and the hot restart sockets carry send/receive timeouts. New ``server.hot_restart_udp_forwarding_datagrams``, ``server.hot_restart_udp_forwarding_retries`` and ``server.hot_restart_udp_forwarding_dropped`` statistics report that path. * **server**: Fixed a heap buffer overflow in the hot restart IPC receive path: a datagram whose length prefix is within 8 bytes of ``UINT64_MAX`` wrapped the receive buffer size computation to a near-zero value, causing the next ``recvmsg()`` to overflow the buffer. Oversized datagrams are now dropped and the stream state reset, so both blocking and non-blocking receives continue with the next datagram. * **server**: Fixed the ``server.seconds_until_first_ocsp_response_expiring`` statistic, which kept reporting the expiration of the last OCSP response once no TLS context had an OCSP response, for example after a certificate with an OCSP staple was replaced by one without a staple or its listener was removed. It now drops to 0, its value before the first OCSP response. * **sockets**: Fixed a listener with a ``network_namespace_filepath`` leaving the main thread in that network namespace when setting up its socket failed, for example because the address was already in use. The main thread then kept creating its sockets in that namespace, such as those of other listeners and of xDS and health check connections. Worker threads started afterwards inherited it as well. * **sockets**: Fixed internal listener connections retaining response buffers when a blocked write flush outlived its peer. Closing a user-space socket now wakes its peer's pending write so the connection can finish closing. * **sockets**: sockets: fixed shutdown hangs in the opt-in experimental ``io_uring`` socket interface when a peer stops reading or a partial write races with cancellation, and premature socket close while cancellation completions remain outstanding. The write timeout must be greater than zero when configured. * **stat_sinks**: Fixed the OpenTelemetry stats sink reporting the metrics of a :ref:`ConversionAction ` without a ``metric_name`` with an empty name, which is not a valid OTLP metric name. Such metrics are now named as if their stats matched no conversion. * **stats**: CDS, RDS, and LDS updates that re-declare existing counters, gauges, histograms, and text readouts use less CPU, especially with custom ``stats_tags``. Stat names and tags are unchanged. Skipping repeated tag extraction also makes ``server.stats_recent_lookups`` grow more slowly. Workers also use less CPU the first time they record each histogram. * **tcp_proxy**: Fixed :ref:`tcp_proxy ` in ``upstream_connect_mode: ON_DOWNSTREAM_DATA`` leaving a downstream connection open until ``idle_timeout`` when the client half-closed without sending any data. Envoy now closes such a connection at once and records ``tcp_proxy_downstream_closed_without_data`` as its downstream local close reason, shown by ``%DOWNSTREAM_LOCAL_CLOSE_REASON%``, and counts it in ``downstream_cx_closed_without_data``. These connections no longer reach ``idle_timeout``. Other connect modes are unchanged. * **tcp_proxy**: Fixed user-space sockets (internal listeners) resetting connections when the peer closes gracefully. A full peer ``close()`` now reads as a clean EOF, so all pending data is delivered with ``end_stream`` and the half-close enabled connection then closes with a normal ``RemoteClose`` instead of a synthesized ``ECONNRESET``. This fixes spurious downstream resets when an internal listener closes before the client half-closes, including :ref:`TCP proxy ` tunneling, TLS over internal listeners, and HCM-terminated ``CONNECT``, while still closing orphaned half-closed peers promptly. This behavior is guarded by ``envoy.reloadable_features.enable_send_rst_on_user_space_socket``. In addition, a terminated ``CONNECT`` stream whose TCP upstream delivers ``end_stream`` and then closes normally is now reset with ``NO_ERROR`` instead of an error and no longer records the ``UC`` response flag. This behavior can be reverted by setting ``envoy.reloadable_features.tcp_upstream_no_error_reset_after_end_stream`` to ``false``. * **tls**: Fixed TLS session resumption across server certificates or filter chains whose names differ but concatenate to the same bytes, for example the DNS SANs ``a.example`` and ``b.example`` versus ``a.exampleb.example``. The session context ID that scopes resumption to a TLS context hashed the common name and subject alternative names of each certificate, and each server name, without their types or lengths. It now hashes the type and length of every field, which changes every session context ID once, so a session established before the upgrade, or by an Envoy instance without this change that shares the session ticket keys, takes a full handshake. This change can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.unambiguous_tls_session_context_id`` to ``false``. * **tls**: Fixed a bug in the TLS inspector's ``JA4`` fingerprint implementation where GREASE values in the ``signature_algorithms`` extension were included in the ``JA4_c`` hash input, contrary to the `JA4 specification `_. GREASE values in ``signature_algorithms`` are now excluded, matching the treatment already applied to cipher suites, extension type IDs, and supported versions. This behavior can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.ja4_filter_grease_signature_algorithms`` to ``false``. * **tls**: Fixed a crash when a :ref:`custom TLS certificate selector ` switched a handshake from a TLS context with session ticket keys to one without them, for example a context that the selector built before the keys arrived over SDS. Such a handshake now completes without a session ticket. The selectors that shipped with earlier Envoy releases were not affected, since they only switched to separately built TLS contexts when session resumption was disabled. * **tls**: Fixed a crash when an upstream TLS context with a :ref:`custom certificate selector ` had an invalid ``common_tls_context``, for example an invalid ``key_log`` address range or an unknown static secret. Envoy created the selector from the partly created configuration, so a selector that built TLS contexts while it was created, such as the ``envoy.tls.certificate_selectors.on_demand_secret`` selector prefetching a secret that was already available, read settings that were never set. Envoy now rejects the configuration before it creates the selector. * **tls**: Fixed certificate selection when a listener has both RSA and ECDSA certificates and allows TLS 1.3. A TLS 1.2 client that sent the ``supported_versions`` extension without TLS 1.3 was treated as a TLS 1.3 client, so it was offered the ECDSA certificate based on ``signature_algorithms`` alone even when it offered no ECDSA cipher suite, and the handshake failed. Envoy now only uses ``signature_algorithms`` alone when ``supported_versions`` lists TLS 1.3, and otherwise also requires an ECDSA cipher suite. This affects, for example, Java clients restricted to TLS 1.2 RSA cipher suites. This behavioral change can be reverted by setting the runtime guard ``envoy.reloadable_features.tls_ecdsa_selection_check_supported_versions`` to ``false``. * **tracing**: Changed the log level from ``error`` to ``debug`` for the message the Datadog tracer logs when it cannot extract the trace context of a request. Downstream clients control the trace context headers, so logging it at ``error`` level could cause excessive logging. These errors are now counted in the new ``tracing.datadog.extraction_errors`` counter. * **tracing**: Fixed the Datadog tracer returning the span ID as the trace ID, for example in the ``%TRACE_ID%`` access log formatter. For a trace continued from an incoming request, the value was the ID of Envoy's span rather than of the trace, and for a trace started by Envoy, it was only the low 64 bits of the trace ID. The trace ID is now the full 128-bit ID as 32 zero-padded hex characters, and ``%SPAN_ID%``, which was always empty with the Datadog tracer, is now the span ID as 16 zero-padded hex characters. This is the same format as the W3C ``traceparent`` header. * **udp**: Fixed UDP listeners enabling the ``UDP_GRO`` socket option when :ref:`prefer_gro ` is false or unset. Coalesced datagrams could previously be forwarded as a single datagram or dropped as truncated. * **udp**: Fixed UDP replies to IPv4 clients through IPv6 dual-stack listeners on macOS, including HTTP/3 listeners using the default UDP packet writer. * **udp**: Fixed a hot restart child reading packets from an inherited UDP socket while its listener was still paused. The QUIC listener injects a read event on its listener to process the handshakes it buffered from packets the parent forwarded, and the listener then read the socket the parent was still serving, so the packets of the parent's connections were dequeued by the child and answered with stateless resets until the clients had reconnected. A paused listener now runs its read-ready callback on such an event without reading the socket. * **upstream**: Fixed HDS to send the current local node, including dynamic context parameters set after startup, each time it (re)connects to the management server. * **upstream**: Fixed a crash (SIGSEGV) in load stats reporting and health discovery responses when EDS removed the last host from a locality after active health checking failed. Both reporting paths now skip empty locality groups. * **zstd**: Added ``max_inflate_ratio`` and ``max_block_size`` to the zstd decompressor. Setting the block allowance to the sender's maximum uncompressed block size allows a small input chunk to complete a buffered block. Each call still forwards the output step that crosses its threshold before returning. * **zstd**: Fixed the zstd compressor holding back data that the compressor filter asked it to flush. Data in a streaming response, such as each message of a gRPC server stream, was not sent until enough of it accumulated to fill a zstd block or the stream ended. The zstd compressor now flushes on every data frame, as the gzip and brotli compressors do. This change can be temporarily reverted by setting the runtime guard ``envoy.reloadable_features.zstd_compressor_flush`` to ``false``. Removed config or runtime ------------------------- *Normally occurs at the end of the* :ref:`deprecation period ` * **config**: Removed runtime flag ``envoy.reloadable_features.xds_legacy_delta_skip_subsequent_node`` and legacy code paths. * **decompression**: Removed runtime flag ``envoy.reloadable_features.enable_compression_bomb_protection`` and legacy code paths. * **dynamic_forward_proxy**: Removed runtime flag ``envoy.reloadable_features.dfp_cluster_resolves_hosts`` and legacy code paths. * **dynamic_forward_proxy**: Removed runtime flag ``envoy.reloadable_features.skip_dns_lookup_for_proxied_requests`` and legacy code paths. * **header_mutation**: Removed runtime flag ``envoy.reloadable_features.header_mutation_url_encode_query_params`` and legacy code paths. * **health_check**: Removed runtime flag ``envoy.reloadable_features.health_check_after_cluster_warming`` and legacy code paths. * **http**: Removed runtime flag ``envoy.reloadable_features.codec_client_enable_idle_timer_only_when_connected`` and legacy code paths. * **http**: Removed runtime flag ``envoy.reloadable_features.http1_close_connection_on_zombie_stream_complete`` and legacy code paths. * **http**: Removed runtime flag ``envoy.reloadable_features.allow_multiplexed_upstream_half_close`` and its code paths. HTTP/2 and HTTP/3 upstreams can no longer half close the stream before the downstream: the stream is reset when the response completes before the request, as it is for HTTP/1 upstreams. Independent half close is kept for TCP upstreams, see ``envoy.reloadable_features.tcp_tunnel_allow_upstream_half_close``. * **listener**: Removed runtime flag ``envoy.reloadable_features.strict_stats_matcher_unpacked`` and legacy code paths. * **mcp**: Removed the runtime guard ``envoy.reloadable_features.mcp_filter_use_new_metadata_namespace`` and the legacy code path it guarded. The MCP filter always publishes its dynamic metadata under the ``envoy.filters.http.mcp`` namespace (and the MCP router reads it from there); the legacy ``mcp_proxy`` namespace is no longer available. * **on_demand**: Removed runtime flag ``envoy.reloadable_features.on_demand_cluster_no_recreate_stream`` and legacy code paths. * **proxy_protocol**: Removed runtime flag ``envoy.reloadable_features.proxy_protocol_allow_duplicate_tlvs`` and legacy code paths. * **rbac**: Removed runtime flag ``envoy.reloadable_features.rbac_match_headers_individually`` and legacy code paths. * **tcp_proxy**: Removed runtime guard ``envoy.reloadable_features.propagate_upstream_rst_through_tunneled_tcp_proxy`` and the legacy code path. Upstream TCP resets are now always propagated to the downstream connection. * **tcp_proxy**: Removed runtime guard ``envoy.reloadable_features.map_http_stream_reset_to_tcp_rst`` and the legacy code path. Remote HTTP stream resets before response completion are now always mapped to TCP resets for HTTP-tunneled TCP connections. New features ------------ * **access_log**: Added the ``%DOWNSTREAM_PEER_CERT_CHAIN%`` :ref:`substitution formatter` which returns the full downstream peer certificate chain in URL-encoded PEM format. * **admin**: Added the runtime guard ``envoy.reloadable_features.admin_filter_yield_between_chunks``, default ``false``. When set to ``true``, the admin server returns to the event loop between the chunks of a large response, such as ``/stats``, so a big response no longer blocks other work on the main thread, like health checks. * **ai_protocol_manager**: Added :ref:`external_buffer_config ` to the :ref:`AI Protocol Manager filter ` (alpha), making the store that offloaded payloads are written to a pluggable ``envoy.ai_protocol_manager.external_buffer`` extension. When unset, :ref:`envoy.ai_protocol_manager.external_buffer.in_memory ` is used; it holds the payload in memory and does not bound its size. * **bootstrap**: Added :ref:`runtime_stats_eviction_interval ` to read the stats eviction interval from a runtime key, allowing it to be changed without restarting Envoy. * **config**: YAML configuration now honors the explicit ``!!float`` tag: a scalar such as ``!!float 5000.0`` is loaded as a JSON number instead of a string, so it stays a number inside a ``google.protobuf.Struct`` (e.g. a ``typed_config`` packed as a ``Struct``). Untagged float literals are unchanged and still load as strings. Non-finite values are loaded as the strings ``Infinity``, ``-Infinity`` and ``NaN``. A ``!!float`` scalar that cannot be decoded as a double now fails configuration loading. See :ref:`special YAML usage `. * **contrib**: Added experimental :ref:`Istio HBONE CONNECT wait ` extensions that defer internal connection readiness and application I/O until HTTP/2 CONNECT acceptance. Transient establishment failures retain connection-failure retries; permanent CONNECT rejections terminate HTTP or TCP requests without retry or outlier failure reporting. CONNECT 401 is exposed as an HTTP 403 with the ``UF`` response flag, retaining the original CONNECT status in failure diagnostics. Single and double HBONE origination are supported, including wrapped TLS and Istio's baggage peer-metadata exchange. * **decompression**: Extended :ref:`the decompressor filter ` to support usage as an upstream HTTP filter. * **dynamic_forward_proxy**: Added :ref:`skip_draining_on_resolution ` to the dynamic forward proxy cluster. It defaults to ``true``, which keeps the existing behavior of updating a host's address in place when DNS resolution changes it. When set to ``false``, the host is replaced by a new host and the old host is published as removed, so connection pools to addresses that are no longer resolved are drained. * **dynamic_modules**: Added :ref:`built_route_cache ` to the dynamic modules route specifier, a per worker cache of the routes a module builds from route templates. A module looks a route up by key with ``lookup_built_route``, also in the Rust SDK, after selecting a template, so a route that is a function of a small key is built once per worker rather than once per request. Templates whose cluster is resolved per request are not cached, and a sampled share of hits set by :ref:`verify_one_in ` is verified against what the module records. With ``config_has_built_route_cache``, ``has_built_route_cache`` in the Rust SDK, a module whose routes rely on the cache can reject a configuration without one. * **dynamic_modules**: Added Go SDK bindings for cluster lifecycle, asynchronous initialization, main-thread scheduling and per-worker events. Register a cluster with ``sdk.RegisterClusterConfigFactories``. Go clusters cannot add hosts yet. * **dynamic_modules**: Added Go SDK support for bootstrap extension lifecycle hooks, asynchronous initialization, main-thread scheduling and shutdown completion. * **dynamic_modules**: Added HTTP filter callbacks that read nested metadata through a path of literal struct keys and list indices. ``envoy_dynamic_module_callback_http_get_metadata_nested_string``, ``envoy_dynamic_module_callback_http_get_metadata_nested_number``, ``envoy_dynamic_module_callback_http_get_metadata_nested_bool`` and ``envoy_dynamic_module_callback_http_get_metadata_nested_list_size`` return a string, a number, a bool or a list size, and a dot in a key is part of the key. The Rust SDK exposes them as ``get_metadata_nested_string``, ``get_metadata_nested_number``, ``get_metadata_nested_bool`` and ``get_metadata_nested_list_size`` on ``EnvoyHttpFilter``. Build paths from keys and indices with ``metadata_path!["claims", "roles", 0]``. * **dynamic_modules**: Added HTTP filter dynamic module callback ``envoy_dynamic_module_callback_http_drain_connection_upon_completion`` and corresponding C++, Go, and Rust SDK methods to initiate graceful draining of the downstream connection when the current HTTP stream completes. * **dynamic_modules**: Added ``access_log`` and ``access_log_options`` to the dynamic module network filter. The filter flushes the access logs when the connection closes, and also on a new connection or at an interval if set in ``access_log_options``. It records when the connection ends and gives the connection a stream ID if it has none. Access logs are not supported on QUIC listeners. A module can also flush them with ``flush_access_log``. A terminal module that reaches its upstream itself can report the upstream, the timing, the bytes and the outcome of the connection with ``set_upstream_host``, ``set_upstream_cluster``, ``set_upstream_local_address``, ``set_upstream_transport_failure_reason``, ``set_upstream_local_close_reason``, ``set_upstream_detected_close_type``, ``set_upstream_request_attempt_count``, ``record_upstream_timing``, ``add_upstream_wire_bytes``, ``add_downstream_wire_bytes``, ``set_response_flag`` and ``add_custom_flag``, so that access logs show them as they do for the TCP proxy. The Rust SDK exposes all of these callbacks as methods of ``EnvoyNetworkFilter`` with the same names. * **dynamic_modules**: Added ``envoy_dynamic_module_callback_bootstrap_extension_run_on_all_workers`` to the dynamic module bootstrap extension. It runs a module hook on every worker thread and then a done hook on the main thread. See :ref:`Running Code on Workers `. The documentation of ``envoy_dynamic_module_on_bootstrap_extension_worker_thread_initialized`` now says that it runs once on the main thread, so per-worker setup belongs in this new callback. * **dynamic_modules**: Added ``envoy_dynamic_module_callback_bootstrap_extension_set_xds_notifications`` and ``envoy_dynamic_module_on_bootstrap_extension_xds_update``, with Rust SDK ``set_xds_notifications`` and ``on_xds_update``, for :ref:`bootstrap xDS outcome notifications `, including rejection error details. * **dynamic_modules**: Added ``envoy_dynamic_module_callback_bootstrap_extension_subscribe_ecds`` and ``envoy_dynamic_module_on_bootstrap_extension_ecds_update``, with Rust SDK ``subscribe_ecds`` and ``on_ecds_update``, for :ref:`bootstrap extension configuration over ECDS `. Conflicting filter ECDS subscriptions on ADS are refused. * **dynamic_modules**: Added ``envoy_dynamic_module_callback_cluster_config_use_persistent_host_partitions`` so a cluster module can opt its cluster into :ref:`use_persistent_host_partitions ` during ``envoy_dynamic_module_on_cluster_config_new``, without the field in the cluster's configuration. * **dynamic_modules**: Added ``envoy_dynamic_module_callback_stat_sink_snapshot_retain`` and ``envoy_dynamic_module_callback_stat_sink_snapshot_release`` to the dynamic modules stats sink ABI. A module can keep a flush snapshot readable after the flush hook returns and read it on another thread, so formatting the stats no longer has to run on the main thread. A retained snapshot holds a reference on each stat and reports the values copied when it was retained. The Rust SDK exposes this as ``MetricSnapshot::retain``, which returns a ``Send`` ``RetainedMetricSnapshot`` that releases the snapshot when it is dropped. * **dynamic_modules**: Added ``set_dynamic_metadata_struct`` and ``set_dynamic_typed_metadata`` to dynamic module network filters, listener filters and cluster load balancers. A module can merge a serialized ``google.protobuf.Struct`` into a dynamic metadata namespace or set the typed metadata of a namespace from a serialized ``google.protobuf.Any``. Unlike the HTTP filter callbacks of the same names, they return whether the call succeeded, and the struct setter does not create the namespace for an empty struct. The typed setter also replaces an existing entry instead of merging into it and rejects an ``Any`` without a type URL. The Rust SDK exposes them on ``EnvoyNetworkFilter``, ``EnvoyListenerFilter`` and ``ClusterLbContext``. The C++ SDK exposes them as ``setMetadataStruct`` and ``setTypedMetadata`` on ``NetworkFilterHandle`` and as ``setDynamicMetadataStruct`` and ``setDynamicTypedMetadata`` on ``ListenerFilterHandle``. The Go SDK exposes them as ``SetMetadataStruct`` and ``SetTypedMetadata`` on ``NetworkFilterHandle`` and as ``SetDynamicMetadataStruct`` and ``SetDynamicTypedMetadata`` on ``ListenerFilterHandle``. * **dynamic_modules**: Added ``set_prefix_rewrite_rule`` to the dynamic modules route specifier and its Rust SDK. It records a prefix rewrite that Envoy applies to the path the request carries when the request headers are finalized, the way a configured route applies its :ref:`prefix_rewrite `, so the route it produces is not specific to the request it was built for. Requests for which neither the rule nor the regex rewrite after it yields a path at that point are counted in ``rewrite_not_applied``. * **dynamic_modules**: Added ``set_virtual_cluster`` to the dynamic modules route specifier and its Rust SDK. It selects the virtual cluster of a request from the names that :ref:`virtual_cluster_override ` declares, and the selected virtual cluster uses the statistics of the virtual cluster of the same name on the virtual host. ``prefer_selection`` chooses whether the router counts the request in the selection or in the virtual cluster the virtual host matches, and the comparisons of the two are counted in ``virtual_cluster_agree`` and ``virtual_cluster_disagree``. * **dynamic_modules**: Added a cluster writer to the dynamic module bootstrap extension. Once a module calls ``envoy_dynamic_module_callback_bootstrap_extension_enable_cluster_writer``, it can add, update and remove clusters, and it learns when each write becomes active. See :ref:`Cluster Writer `. * **dynamic_modules**: Added a dynamic modules resource monitor extension (``envoy.resource_monitors.dynamic_modules``) that lets a dynamic module report the pressure of an overload manager resource at each refresh, or later from any thread through a scheduler. The module creates the scheduler with ``envoy_dynamic_module_callback_resource_monitor_config_scheduler_new``, reports through it with ``envoy_dynamic_module_callback_resource_monitor_config_scheduler_report_resource_usage`` and ``envoy_dynamic_module_callback_resource_monitor_config_scheduler_report_failure``, and deletes it with ``envoy_dynamic_module_callback_resource_monitor_config_scheduler_delete``. The Rust SDK exposes this through the ``resource_monitor:`` arm of ``declare_all_init_functions!``, ``ResourceMonitor::update_resource_usage``, ``EnvoyResourceMonitorConfig::new_config_scheduler``, and the ``report_resource_usage`` and ``report_failure`` methods of ``EnvoyResourceMonitorConfigScheduler``. A module can also enable synchronous feedback with ``envoy_dynamic_module_callback_resource_monitor_config_enable_synchronous_feedback``, so that the load shed points with a trigger on the resource ask it for the pressure each time they decide whether to shed load, and tell it about the load they accept. The Rust SDK exposes this through the ``synchronous_feedback_resource_monitor:`` arm of ``declare_all_init_functions!``, ``SynchronousFeedbackResourceMonitor::resource_usage`` and ``SynchronousFeedbackResourceMonitor::on_load_accepted``. * **dynamic_modules**: Added a filter chain config writer to the dynamic module bootstrap extension. It writes the filter chains that the listeners with ``fcds_config`` find by name. Once a module calls ``envoy_dynamic_module_callback_bootstrap_extension_enable_filter_chain_config_writer``, it can add, update and remove filter chains with ``envoy_dynamic_module_callback_bootstrap_extension_filter_chain_config_writer_add_or_update`` and ``envoy_dynamic_module_callback_bootstrap_extension_filter_chain_config_writer_remove``, and ``envoy_dynamic_module_on_bootstrap_extension_filter_chain_config_writer_update_done`` reports when each write becomes active or why it failed. The Rust SDK exposes these as ``enable_filter_chain_config_writer``, ``filter_chain_config_writer_add_or_update`` and ``filter_chain_config_writer_remove`` of ``EnvoyBootstrapExtensionConfig`` and ``on_filter_chain_config_writer_update_done`` of ``BootstrapExtensionConfig``. See :ref:`Filter Chain Config Writer `. * **dynamic_modules**: Added a listener writer to the dynamic module bootstrap extension. Once a module calls ``envoy_dynamic_module_callback_bootstrap_extension_enable_listener_writer``, it can add, update and remove listeners with ``envoy_dynamic_module_callback_bootstrap_extension_listener_writer_add_or_update`` and ``envoy_dynamic_module_callback_bootstrap_extension_listener_writer_remove``, and ``envoy_dynamic_module_on_bootstrap_extension_listener_writer_update_done`` reports when each write becomes active or why it failed. The Rust SDK exposes these as ``enable_listener_writer``, ``listener_writer_add_or_update`` and ``listener_writer_remove`` of ``EnvoyBootstrapExtensionConfig`` and ``on_listener_writer_update_done`` of ``BootstrapExtensionConfig``. See :ref:`Listener Writer `. * **dynamic_modules**: Added configuration snapshots for bootstrap dynamic modules, with provider selection, resource name filtering and sensitive-field redaction, through ``envoy_dynamic_module_callback_bootstrap_extension_config_snapshot_new``, ``envoy_dynamic_module_callback_bootstrap_extension_config_snapshot_serialize`` and ``envoy_dynamic_module_callback_bootstrap_extension_config_snapshot_delete``. The Rust SDK exposes ``EnvoyBootstrapExtensionConfig::get_config_snapshot`` and ``EnvoyBootstrapExtensionConfigSnapshot::into_json``; dropping the snapshot releases it. See :ref:`configuration snapshots `. * **dynamic_modules**: Added helpers to the dynamic module SDKs that check a header name or value before a module passes it to Envoy: ``is_valid_header_name`` and ``is_valid_header_value`` in the Rust SDK, ``IsValidHeaderName`` and ``IsValidHeaderValue`` in the Go SDK, and ``Utility::isValidHeaderName`` and ``Utility::isValidHeaderValue`` in the C++ SDK. Envoy does not check the header names and values that modules pass unless a callback's documentation says it does, so a module that builds a header from request data should check it first. The ABI header now documents this. * **dynamic_modules**: Added memory tracking to the dynamic modules Rust SDK. A module that declares ``TrackingAllocator`` as its global allocator counts the memory that it allocates through that allocator, which ``TrackingAllocator::allocated_bytes`` returns. ``MemoryResourceMonitor`` reports this memory as the pressure of a dynamic modules resource monitor (``envoy.resource_monitors.dynamic_modules``), so that the overload manager can act when the module exceeds its budget. On Linux, a module that uses the allocator stays loaded, so a new build of the module needs a new path. The allocator can also refuse the allocations beyond a limit that ``TrackingAllocator::set_limit`` sets and ``TrackingAllocator::remove_limit`` removes. A refused allocation aborts Envoy unless the module makes it with a fallible API such as ``Vec::try_reserve``. * **dynamic_modules**: Added runtime update notifications to the dynamic module bootstrap extension. From ``envoy_dynamic_module_on_bootstrap_extension_server_initialized``, an extension watches a runtime key by passing it to ``envoy_dynamic_module_callback_bootstrap_extension_enable_runtime_update``, and Envoy then calls ``envoy_dynamic_module_on_bootstrap_extension_runtime_bool_update``, ``envoy_dynamic_module_on_bootstrap_extension_runtime_int_update`` or ``envoy_dynamic_module_on_bootstrap_extension_runtime_number_update`` on the extension, depending on the type of the value, whenever an RTDS update, a disk layer update or the admin ``/runtime_modify`` endpoint changes it, including for runtime feature flags. The Rust SDK exposes these as ``enable_runtime_update`` of ``EnvoyBootstrapExtension`` and ``on_runtime_update`` of ``BootstrapExtension``, which receives an optional ``RuntimeValue``. See :ref:`Runtime Updates `. * **dynamic_modules**: Added string values to the runtime update notifications of the dynamic module bootstrap extension. A watched runtime key whose value is a non-empty string that is neither a number nor a boolean is now reported through the new ``envoy_dynamic_module_on_bootstrap_extension_runtime_string_update`` hook, instead of counting as unset, and the new ``envoy_dynamic_module_callback_get_runtime_string`` callback reads a runtime value as its text. The Rust SDK adds ``RuntimeValue::String`` and ``get_runtime_string``. See :ref:`Runtime Updates `. * **dynamic_modules**: Added support for checking overload manager load shed points from dynamic module HTTP, network, listener and UDP listener filters. A filter gets a load shed point by name from its configuration with ``envoy_dynamic_module_callback_http_filter_config_get_load_shed_point``, ``envoy_dynamic_module_callback_network_filter_config_get_load_shed_point``, ``envoy_dynamic_module_callback_listener_filter_config_get_load_shed_point`` or ``envoy_dynamic_module_callback_udp_listener_filter_config_get_load_shed_point``, and checks it with ``envoy_dynamic_module_callback_load_shed_point_should_shed_load``. The Rust SDK exposes this through ``get_load_shed_point`` on the filter configurations and ``EnvoyLoadShedPoint::should_shed_load``, the Go SDK through ``GetLoadShedPoint`` and ``LoadShedPoint.ShouldShedLoad``, and the C++ SDK through ``getLoadShedPoint`` on the HTTP, network and listener filter configurations and ``LoadShedPoint::shouldShedLoad``. A filter on a listener that bypasses the overload manager gets no load shed point, unless the route configuration or the Filter Chain Discovery Service (FCDS) created it, and an upstream HTTP filter gets none. * **dynamic_modules**: Added support for implementing a custom TLS certificate selector as a dynamic module through the :ref:`dynamic module TLS certificate selector ` extension. For each handshake the module selects one of the configured certificates or lets Envoy select one. With :ref:`allow_dynamic_certificates ` set, the module can also select certificates that it provides at runtime, and a handshake can wait for one that is not provided yet. Modules can schedule work on the main thread and record metrics. This works for both downstream and upstream TLS contexts. The dynamic certificates that are served are listed by the ``/certs`` admin endpoint and count in the ``server.days_until_first_cert_expiring`` and ``server.seconds_until_first_ocsp_response_expiring`` statistics, and the selector emits :ref:`statistics ` about them. The listeners and clusters that use the selector warm until the module calls ``envoy_dynamic_module_callback_tls_certificate_selector_config_signal_init_complete``, which the Rust SDK exposes as ``EnvoyTlsCertificateSelectorConfig::signal_init_complete``. The handshakes that wait for a dynamic certificate fail when the module does not answer its request within :ref:`dynamic_certificate_request_timeout `, which defaults to 15 seconds. * **dynamic_modules**: Added the ``endpoint`` provider for bootstrap configuration snapshots to collect endpoint assignments for active clusters. The Rust SDK exposes it as ``ConfigSnapshotProvider::Endpoints``. See :ref:`configuration snapshots `. * **dynamic_modules**: Added the ``envoy_dynamic_module_callback_health_checker_set_health_metadata`` callback to the :ref:`dynamic module health checker `. A module can attach string key/value pairs to each health check result, and HDS forwards them to the management server in :ref:`health_metadata `. The pairs are replaced on every check. The ``http_status_code`` key is reserved and rejected. * **dynamic_modules**: Added the filter config handle to ``HttpFilterConfig::on_scheduled`` in the Rust SDK, so that a module can emit the metrics defined on its config from an event scheduled to the main thread, with no stream involved. * **dynamic_modules**: Added the optional ``on_route_specifier_user_data_discard`` hook to the dynamic modules route specifier, ``on_user_data_discard`` in the Rust SDK. Envoy calls it with the user data a module recorded when the decision builds no route to carry it, such as a failed decision, a decision other than ``Unspecified`` or a ``Hit`` from ``lookup_built_route``, so that a module can release what it leased for the route. The ``user_data_discard`` statistic counts the values handed back. * **dynamic_modules**: dynamic modules: added :ref:`use_persistent_host_partitions ` to the dynamic modules cluster. When set, adding, removing, or changing the health of hosts updates only those hosts instead of rebuilding the host set, and workers adopt the result as a snapshot. It requires ``lb_policy: CLUSTER_PROVIDED``. * **dynamic_modules**: dynamic modules: added ``SetFilterStateObject`` and ``GetFilterStateObject`` to the Go SDK HTTP filter handle. A Go module can now store a Go value in filter state and read it back from any of its filters on the same stream, without serializing it. A value that implements ``FilterStateObjectDestroyer`` is notified when Envoy destroys the entry. * **dynamic_modules**: dynamic modules: added ``envoy_dynamic_module_callback_cluster_lb_get_member_update_health_changed_host_count`` and ``envoy_dynamic_module_callback_cluster_lb_get_member_update_health_changed_host``, which report the hosts whose health changed since the previous update a worker applied, so a cluster load balancer can patch its healthy set instead of rereading every host. The host count getters now read the counts without building the host vectors. * **ext_authz**: Added :ref:`check_on_new_connection ` to the network external authorization filter to support authorization and dynamic cluster selection before upstream connection establishment for server-first protocols. * **ext_authz**: Added :ref:`read_raw_header_value ` to the HTTP ``ext_authz`` filter. When set to ``true``, the gRPC ``ext_authz`` client reads header values from :ref:`HeaderValue.raw_value ` when non-empty, falling back to :ref:`HeaderValue.value ` when ``raw_value`` is empty, allowing gRPC authorization servers to return non-UTF-8 header values. Also updated shadow mode so :ref:`ShadowDecision.response_headers ` populates ``raw_value`` instead of ``value`` when a denied response header value contains non-UTF-8 bytes. * **ext_proc**: Added :ref:`max_streamed_body_chunk_size ` and per-route :ref:`max_streamed_body_chunk_size ` to limit the body payload size of individual ``ProcessingRequest`` messages sent in ``STREAMED`` and ``FULL_DUPLEX_STREAMED`` body processing modes. * **fault**: Added :ref:`dry_run ` to the HTTP fault injection filter to support dry-run abort evaluation. When enabled, requests matching an abort fault increment the ``aborts_dry_run`` :ref:`counter ` and merge ``dry_run_abort`` (containing the would-be ``http_status`` or ``grpc_status``) into the fault filter's dynamic metadata namespace without aborting the request or writing :ref:`filter_metadata `, while any configured delay or response rate limit is still injected. * **formatter**: Added the ``%ENVOY_VERSION%`` :ref:`substitution formatter` which returns the version string of the Envoy binary. * **geoip**: Added support for additional MaxMind database fields in the common geolocation provider configuration: :ref:`city_geoname_id `, :ref:`latitude `, :ref:`longitude `, :ref:`time_zone `, :ref:`postal_code `, :ref:`region_name `, :ref:`region_geoname_id `, :ref:`subregion_geoname_id `, :ref:`country_geoname_id `, :ref:`continent_geoname_id `, :ref:`metro_code ` and :ref:`country_name `. * **http**: Added :ref:`per_stream_buffer_limit_bytes ` to the Envoy gRPC client, matching the Google gRPC field of the same name. It sets the buffer limit of each stream, which bounds both the request data buffered for retries and the data buffered before the upstream is ready, above which the stream reports that it is above its write buffer high watermark. Without it, the 64 KiB default applies, so a request or stream that sends more than 64 KiB before the response headers is no longer retried, for example a gRPC access log stream configured with ``grpc_stream_retry_policy``. * **http**: Added downstream watermark callbacks support to the HTTP async client to enable downstream flow control backpressure on sidestream requests. This behavior is disabled by default and can be enabled by setting the runtime guard ``envoy.reloadable_features.async_client_downstream_flow_control2`` to ``true``. * **http**: Added support for configuring :ref:`formatter extensions ` used in early request header mutation values. This allows formatter-specific options such as CEL string functions to be enabled. * **http**: Added the ``rq_content_length_too_large`` and ``rq_body_too_large`` counters to the :ref:`body size limit filter `, in the ``http..body_size_limit.`` namespace. * **http2**: Added the ``metadata_dropped`` HTTP/2 :ref:`codec stat `. It counts outbound metadata that is dropped because ``allow_metadata`` isn't enabled on the connection. * **jwt_authn**: Added :ref:`allowed_algorithms ` to restrict the signing algorithms a provider accepts. A JWT whose ``alg`` is not listed is rejected before any key is tried. * **local_ratelimit**: Added HTTP local rate limit completion accounting for embedded ``rate_limits`` with :ref:`apply_on_stream_done `, in both the filter-level and per-route configuration. These actions update matching descriptor token buckets when the stream completes and remain skipped on the request path. The default local token bucket continues to apply only on the request path. Route and virtual-host rate limit entries are unchanged and continue to apply on the request path. * **matching**: Added the :ref:`URI template input matcher `, which matches a path against a URI template with the same semantics as route :ref:`path_match_policy `. * **mcp_json_rest_bridge**: Added support for configurable cache metadata (``ttlMs`` and ``cacheScope``) in locally-generated stateless ``tools/list`` responses via :ref:`cache_config `. * **mcp_json_rest_bridge**: Added validation of ``Mcp-Param-{name}`` request headers for MCP ``2026-07-28`` tools/call requests, configured per tool with the new :ref:`mcp_param_headers ` field. Each mapping names the header, the literal property path of the argument, and its ``STRING``, ``INTEGER`` or ``BOOLEAN`` type. A missing, unexpected, malformed, or mismatched header is rejected with a ``HeaderMismatch`` error. * **mcp_json_rest_bridge**: Added validation that stateless MCP ``2026-07-28`` requests include ``params._meta["io.modelcontextprotocol/clientCapabilities"]`` as a JSON object. Requests where the field is missing or is not an object are rejected with a ``400`` ``Invalid params`` (``-32602``) JSON-RPC error. Individual capability contents are not validated. * **on_demand**: Added stats under ``http..on_demand.`` to the :ref:`on demand filter ` counting route and cluster discoveries by outcome, in-flight and cancelled discoveries and the duration of successful ones. The filter also stores the host, virtual host, cluster, outcome and duration of the discoveries in the request's filter state ``envoy.filters.http.on_demand.discovery``, see :ref:`filter state `, for use in access logs. * **overload_manager**: Added load shed point ``envoy.load_shed_points.http2_server_reset_stream_on_begin_headers`` that rejects new HTTP/2 streams at the codec level on the initial header frame by sending a ``RST_STREAM(REFUSED_STREAM)`` before allocating stream or header objects. When a ``RST_STREAM`` frame is submitted by this load shed point, the counter ``http2.stream_refused_errors`` will be incremented. * **overload_manager**: Added the new HTTP priority load shed filter :ref:`envoy.filters.http.priority_load_shed `, which maps request header integer ranges to overload manager load shed points. It supports fallback shedding via a default load shed point. * **postgres_proxy**: Added support for connection-level RBAC rules in the Postgres proxy filter. Rules can use startup attributes when Envoy can inspect the StartupMessage, and can use connection properties and downstream TLS peer identity when available. Added ``authorization_allowed``, ``authorization_denied``, and ``protocol_rejected`` counters. Policies can distinguish cancellations from connection startup using filter-generated packet type metadata. Enabling RBAC preserves empty startup values and normalizes effective user and database names, which can change the database suffix in SQL metadata keys. Even when RBAC is disabled, the filter closes connections that send extra data with an SSL request that Envoy terminates, and recognized cancel requests no longer count as encrypted sessions. * **ratelimit**: Added :ref:`shadow_over_limit ` to the rate limit service descriptor status. When any descriptor sets it, the HTTP, network and Thrift rate limit filters increment the ``shadow_over_limit`` counter, so descriptors over limit in shadow mode can be observed. * **ratelimit**: Added ``rate_limits_override_option`` to the rate limit filter (:ref:`filter level ` and :ref:`per-route `) and the local rate limit filter (:ref:`rate_limits_override_option `). When set to ``ALL_LEVELS``, the embedded ``rate_limits`` of the configs at all levels are applied instead of only the most specific one. The rate limit filter merges the generated descriptors into a single request, and the local rate limit filter checks every level against its own descriptors and token buckets. For the local rate limit filter, setting the option also ignores ``VirtualHost.rate_limits`` and ``RouteAction.rate_limits``, and it cannot be combined with ``local_rate_limit_per_downstream_connection``. * **rbac**: Matcher input factories can declare, with ``availableAt()``, the stage by which their result is final. The :ref:`HTTP `, :ref:`upstream ` and :ref:`network ` RBAC filters now also accept an input outside their built-in lists, but only if its factory declares a stage no later than the request headers (HTTP and upstream) or the connection (network). * **reverse_tunnel**: Added a ``/reverse_tunnel/tunnels`` admin endpoint to the downstream reverse-tunnel initiator (``envoy.bootstrap.reverse_tunnel.downstream_socket_interface``). It lists the active reverse tunnels as a ``text/plain`` body, with one ``::: `` line per source identifier. * **reverse_tunnel**: Added a gradual drain for reverse tunnels on the drain-aware HTTP connection manager. On listener drain, established HTTP/2 connections now drain like an HCM graceful drain instead of receiving an immediate GOAWAY, whether or not the new fields are set: a soft GOAWAY at drain start, then the final GOAWAY after ``hcm_config.drain_timeout``, extended by ``hcm_config.drain_timeout_jitter`` if set. When :ref:`enable_drain_with_goaway ` is set, draining established HTTP/2 tunnels redial a replacement at drain start. Enabling the runtime guard ``envoy.reloadable_features.reverse_tunnel_listener_drain`` (default false) also replaces unused tunnels during in-place filter-chain updates and instead stops pending handshakes and replacement dials during whole-listener draining. Such an HTTP/2 tunnel sends, at offsets from drain start: a connection-level METADATA frame carrying ``envoy.reverse_tunnel.drain: true`` at :ref:`metadata_delay `, and a soft GOAWAY at :ref:`shutdown_notice_delay `, before the final GOAWAY. Unset delays skip that step, so without ``shutdown_notice_delay`` such a tunnel receives no GOAWAY until the final one and keeps serving during the grace period. Configs where a step cannot be sent in order are rejected. The upstream reverse-tunnel codec notifies the reverse tunnel reporter when it receives the METADATA frame. Both sides require ``http2_protocol_options.allow_metadata`` for the METADATA frame. * **reverse_tunnel**: The downstream reverse-tunnel initiator (``envoy.bootstrap.reverse_tunnel.downstream_socket_interface``) now records a ``tunnel_setup_time`` histogram (in milliseconds) measuring how long it takes to establish reverse tunnels to a remote host, from the first dial of an establishment episode until the host reaches its target connection count. * **router**: Added :ref:`stat_prefix ` to request mirror policies, at route, virtual host, route configuration and cluster level. When set, the router emits per policy counters rooted at ``mirror..`` for mirrors selected by the runtime fraction, mirrors skipped because the mirror cluster is missing, mirrors started, and mirrors that ended with a 2xx response, with a failure or non-2xx response, or were cancelled. See :ref:`mirror policy statistics `. * **runtime_features**: Added the ``BreakingChangesTracker`` class to track and observe breaking changes in Envoy. Operators can enable observability for breaking changes via the :ref:`enable_breaking_changes_observability ` flag in :ref:`Bootstrap ` and log observed breaking changes in access logs using ``%FILTER_STATE(envoy.breaking_changes_tracker:PLAIN)%``. See :ref:`Introducing a breaking change ` and :ref:`Enabling observability for breaking changes `. * **set_filter_state**: Added ``life_span`` configuration parameter to the HTTP set_filter_state. This allows the filter to update filter state with ``Connection``, ``FilterChain`` (the default) or ``Request`` life times. * **set_filter_state**: Added support for using the :ref:`set filter state HTTP filter ` as an upstream HTTP filter, so filter state can be set per upstream attempt from the selected host, for example with ``%UPSTREAM_METADATA(...)%``. * **stat_sinks**: Added :ref:`resource_conversion ` to the OpenTelemetry stats sink. It reports a converted metric under an OTLP resource of its own, whose attributes are static or set from the tags of the stat, so that one proxy can report the metrics of each entity it serves, such as each workload behind a gateway, under that entity's resource. * **tls**: Added :ref:`max_send_fragment ` to ``CommonTlsContext``. It caps the plaintext size of every TLS record Envoy sends, handshake messages included, for peers that cannot handle full 16384-byte records, such as some PostgreSQL clients. * **tls**: Added an optional ``protocol`` parameter to ``JA4Fingerprinter::create`` in the TLS inspector's ``JA4`` fingerprint library, allowing callers to specify the transport carrying the handshake (TLS or QUIC) per the `JA4 specification `_. The default is ``Protocol::TLS``, preserving prior behavior for existing callers, including the built-in TLS inspector listener filter. * **tracing**: Added :ref:`incoming_trace_context ` and :ref:`outgoing_trace_context ` to the OpenTelemetry tracer to configure which trace context formats are extracted from downstream requests and injected into upstream requests. In addition to W3C Trace Context, the B3 single header and multiple header formats are supported. The default remains W3C Trace Context only. * **tracing**: Added the ``tracing.opentelemetry.spans_export_failed`` counter to the OpenTelemetry tracer, which counts spans whose export request to the trace collector could not be sent. * **udp**: Added :ref:`upstream_packet_writer_config ` to support optional GSO batching on upstream UDP sockets. * **upstream**: Added ``cluster_manager.odcds.discovery_attempt``, ``cluster_manager.odcds.discovery_success``, ``cluster_manager.odcds.discovery_missing``, and ``cluster_manager.odcds.discovery_timeout`` counters for :ref:`on-demand cluster discovery `. Each counter increments once per discovery, regardless of how many requests were waiting for that cluster. * **upstream**: Added an :ref:`adaptive LIFO queue policy ` for pending requests. The policy uses FIFO ordering until a connection pool's queue reaches a configured high watermark and LIFO ordering until the size reaches a lower configured watermark. Separate watermarks avoid repeated order changes near the overload boundary. * **upstream**: Extended :ref:`wait_for_warm_on_init ` to all cluster types. Setting it to ``false`` now opts the cluster out of pausing CDS while it warms, so a cluster that warms slowly or indefinitely (for example one waiting on an SDS secret with ``initial_fetch_timeout: 0s``) no longer holds back the CDS ACK and other cluster updates. * **wasm**: Added the ``wasm..crashed`` counter, counting the Wasm VM instances that failed with a runtime error, such as a panic or a trap in the plugin. See :ref:`Wasm runtime statistics `. * **wasm**: Added the ``wasm..memory_size`` and ``wasm..vm_memory_size`` gauges, reporting the linear memory size in bytes of the Wasm VM instances of a runtime and of a plugin. See :ref:`Wasm runtime statistics `. * **watchdog**: Added :ref:`log_level ` to the ``envoy.watchdog.backtrace_action`` watchdog action to make the level of the emitted backtrace logs configurable. The level defaults to critical. Deprecated ---------- * **mcp**: Deprecated the MCP filter's per-route :ref:`clear_route_cache ` and :ref:`reject_duplicate_keys ` in favor of :ref:`clear_route_cache_override ` and :ref:`reject_duplicate_keys_override `. The new fields inherit the listener setting when unset and can turn the setting off for a route. The deprecated fields now only apply when ``true``. * **router**: Deprecated the route level :ref:`rate_limits ` and virtual host level :ref:`rate_limits ` fields. Use :ref:`RateLimitPerRoute.rate_limits ` in ``typed_per_filter_config`` or the filter level :ref:`rate_limits ` of the rate limit filter instead, or :ref:`rate_limits ` of the local rate limit filter. The fields that only apply to these deprecated fields are deprecated as well: ``stage`` of the :ref:`rate limit filter ` and the :ref:`local rate limit filter `, :ref:`RateLimitPerRoute.vh_rate_limits ` and :ref:`LocalRateLimit.vh_rate_limits `. The never implemented ``RateLimitPerRoute.override_option`` field of the rate limit filter is deprecated in favor of :ref:`rate_limits_override_option `.