I have a working LDS.yaml file, and I want to add x-forwarded-for
in the header since in the envoy documentation says it should be shown if Envoy works as edge server. But when I use this best practice configuration
https://www.envoyproxy.io/docs/envoy/latest/configuration/best_practices/edge, the header x-forwarded-for
is not shown
Here is my LDS.yaml
version_info: "0"
resources:
# not enforcing https
- name: "http_listener"
"@type": type.googleapis.com/envoy.api.v2.Listener
address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
server_name: foo.example.com
request_timeout: 60s
use_remote_address: true # enabling x-forward-for
xff_num_trusted_hops: 1 # only show 1 x-forward-for
always_set_request_id_in_response: true # enable x-request-id
codec_type: auto
stat_prefix: ingress_http
http_filters:
- name: envoy.filters.http.router
typed_config: {}
route_config:
...
Is there anything wrong?
Thank you!