Skip to content

[Bug]: real-ip-header in the configmap seems not to work #6956

@sov-msaeed

Description

@sov-msaeed

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue reporting a potential bugneeds triageAn issue that needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions