Skip to content

Commit 5485f23

Browse files
dfp: add support for DFP honoring dynamic_host filter state when configured (#39605)
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Co-authored-by: yanavlasov <yavlasov@google.com> Mirrored from https://github.com/envoyproxy/envoy @ 877b9824370232745db11cf65417b8d88b4d38c5
1 parent 3ea4617 commit 5485f23

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

envoy/extensions/filters/http/dynamic_forward_proxy/v3/dynamic_forward_proxy.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ message FilterConfig {
4141
// ``envoy.stream.upstream_address`` (See
4242
// :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`).
4343
bool save_upstream_address = 2;
44+
45+
// When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host``
46+
// and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP
47+
// Host header for DNS resolution. This provides consistency with the
48+
// :ref:`SNI dynamic forward proxy <envoy_v3_api_msg_extensions.filters.network.sni_dynamic_forward_proxy.v3.FilterConfig>` and
49+
// :ref:`UDP dynamic forward proxy <envoy_v3_api_msg_extensions.filters.udp.udp_proxy.session.dynamic_forward_proxy.v3.FilterConfig>`
50+
// filters behavior when enabled.
51+
//
52+
// If the flag is not set (default), the filter will use the HTTP Host header
53+
// for DNS resolution, maintaining backward compatibility.
54+
bool allow_dynamic_host_from_filter_state = 4;
4455
}
4556

4657
// Per route Configuration for the dynamic forward proxy HTTP filter.

0 commit comments

Comments
 (0)