We’ve set up a Pulp EKS cluster with the AWS ALB Ingress Controller, and an Nginx proxy in front that forwards requests to the Pulp ALB. Everything works as expected, except for one issue: when a client downloads an artifact, the client IP appears correctly in the Nginx access logs, but in the pulp-web logs, it shows the AWS ALB’s private IP instead (the ALB is internal-facing).
We’ve already configured the necessary proxy headers in Nginx (proxy_set_header X-Real-IP $remote_addr, proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for, and proxy_set_header X-Forwarded-Proto $scheme). Is there something we need to enable in pulp-web to ensure the original client IP is forwarded all the way to the Pulp web application?