@ -19,7 +19,6 @@ import "google/protobuf/any.proto";
import "google/protobuf/duration.proto" ;
import "google/protobuf/duration.proto" ;
import "google/protobuf/wrappers.proto" ;
import "google/protobuf/wrappers.proto" ;
import "envoy/annotations/deprecation.proto" ;
import "udpa/annotations/migrate.proto" ;
import "udpa/annotations/migrate.proto" ;
import "udpa/annotations/security.proto" ;
import "udpa/annotations/security.proto" ;
import "udpa/annotations/status.proto" ;
import "udpa/annotations/status.proto" ;
@ -501,24 +500,7 @@ message HttpConnectionManager {
/ / determining the origin client ' s IP address. The default is zero if this option
/ / determining the origin client ' s IP address. The default is zero if this option
/ / is not specified. See the documentation for
/ / is not specified. See the documentation for
/ / : ref : ` config_http_conn_man_headers_x - forwarded - for ` for more information.
/ / : ref : ` config_http_conn_man_headers_x - forwarded - for ` for more information.
/ /
uint32 xff_num_trusted_hops = 19 ;
/ / . . note : :
/ / This field is deprecated and instead : ref : ` original_ip_detection_extensions
/ / < envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.original_ip_detection_extensions > `
/ / should be used to configure the : ref : ` xff extension < envoy_v3_api_msg_extensions.http.original_ip_detection.xff.v3.XffConfig > `
/ / to configure IP detection using the : ref : ` config_http_conn_man_headers_x - forwarded - for ` header. To replace
/ / this field use a config like the following :
/ /
/ / . . code - block : : yaml
/ /
/ / original_ip_detection_extensions :
/ / - name : envoy.http.original_ip_detection.xff
/ / typed_config :
/ / "@type" : type.googleapis.com / envoy.extensions.http.original_ip_detection.xff.v3.XffConfig
/ / xff_num_trusted_hops : 1
/ /
uint32 xff_num_trusted_hops = 19
[ deprecated = true , ( envoy.annotations.deprecated_at_minor_version ) = "3.0" ] ;
/ / The configuration for the original IP detection extensions .
/ / The configuration for the original IP detection extensions .
/ /
/ /
@ -530,6 +512,12 @@ message HttpConnectionManager {
/ / the request. If the request isn ' t rejected nor any extension succeeds , the HCM will
/ / the request. If the request isn ' t rejected nor any extension succeeds , the HCM will
/ / fallback to using the remote address.
/ / fallback to using the remote address.
/ /
/ /
/ / . . WARNING : :
/ / Extensions cannot be used in conjunction with : ref : ` use_remote_address
/ / < envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.use_remote_address > `
/ / nor : ref : ` xff_num_trusted_hops
/ / < envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.xff_num_trusted_hops > ` .
/ /
/ / [ # extension - category : envoy.http.original_ip_detection ]
/ / [ # extension - category : envoy.http.original_ip_detection ]
repeated config.core.v3.TypedExtensionConfig original_ip_detection_extensions = 46 ;
repeated config.core.v3.TypedExtensionConfig original_ip_detection_extensions = 46 ;