Skip to content

Commit 2bf5d61

Browse files
brian-panealyssawilk
authored andcommitted
enable configuration of the number of trusted addresses in XFF (#459)
* enable configuration of the number of trusted addresses in x-forwarded-for
1 parent d62b654 commit 2bf5d61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@ message HttpConnectionManager {
160160
// :ref:`config_http_conn_man_headers_x-envoy-external-address` for more information.
161161
google.protobuf.BoolValue use_remote_address = 14;
162162

163+
// [#not-implemented-hide:]
164+
// The number of additional ingress proxy hops from the right side of the
165+
// :ref:`config_http_conn_man_headers_x-forwarded-for` HTTP header to trust when
166+
// determining the origin client's IP address. The default is zero if this option
167+
// is not specified. See the documentation for
168+
// :ref:`config_http_conn_man_headers_x-forwarded-for` for more information.
169+
uint32 xff_num_trusted_hops = 19;
170+
171+
// of the client connection as the origin client address if *use_remote_address* is true
163172
// Whether the connection manager will generate the :ref:`x-request-id
164173
// <config_http_conn_man_headers_x-request-id>` header if it does not exist. This defaults to
165174
// true. Generating a random UUID4 is expensive so in high throughput scenarios where this feature

0 commit comments

Comments
 (0)