uswitch / yggdrasil

Envoy Control Plane for Kubernetes Multi-cluster Ingress
Apache License 2.0
192 stars 17 forks source link

Add --use-remote-address flag to set X-Forwarded-For headers #59

Closed Aluxima closed 2 years ago

Aluxima commented 2 years ago

Hi, this adds a --use-remote-address flag that configures the use_remote_address envoy connection manager option so that the X-Forwarded-For header is populated with the client IP.
This is necessary when using envoy as edge proxy nodes to forward the correct headers to the upstreams.

This brings no breaking change.

Thanks!