-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Version
3.7.0
What Kubernetes platforms are you running on?
EKS Amazon
Steps to reproduce
Hi,
I have a setup in AWS using CloudFront --> AWS NLB --> kubernetes-ingress
The problem I am facing is the real_ip or the remote_addr is set to cloudfront IP not the enduser IP. in the Logs I can see the correct user IP in the X-Forwarded-For header so I tried to set real-ip-header in kubernetes-ingress configmap to X-Forwarded-For but still the remote_addr shows CloudFront IP address.
Cloudfront is also sending a header called CloudFront-Viewer-Address which seems to be passed correctly, I know that when I logged the value in the header which shows the real-user-ip. then i tried to set real-ip-header to this cloudfront heade, also didn't work
I am not sure what I am missing here. hopefully you can advise what could be the problem.
Thanks a lot in advance !