-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy protocol not rewriting remote_addr from DOKS load balancer #5076
Comments
Hi @Syntaf thanks for reporting! Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂 Cheers! |
Hi @Syntaf. I set up NGINX Ingress Controller on DOKS today to look into this. I deployed NGINX Ingress Controller I made one modification to this example, deleting the TLS stuff in I used the following in my config map config:
entries:
proxy-protocol: "True"
real-ip-header: "proxy_protocol"
set-real-ip-from: "0.0.0.0/0" And added the required annotation you mentioned from the Digital Ocean Kubernetes docs, on the NGINX Ingress Controller service, just as you have done
I then sent a curl request to my digital ocean kubernetes cluster I then looked in the NIC logs, and saw my personal ip address which I will also redact.
So it does appear to be working on I saw that you are using the helm chart version
I got the same result again in the NIC logs, I could see my own IP address. The only real differences I can see from our setups, is the snippet that you are using. I do not suspect this would cause this issue though. And the other difference being the that you are using an internal ip for |
@j1m-ryan Huge thank you for jumping in to assist, you're right that I was incorrectly using an internal IP for I think I misunderstood the documentation and assumed I'd need the internal-IP of the load balancer, though I probably should have tried something like Considering my ingress is behind load balancer, do you have any opinions on whether |
No bother @Syntaf. |
@Syntaf is it okay to close this one now? |
Hi @Syntaf Also, if you ever want to discuss issues and discussions with the team, we run a bi-weekly zoom call where we will traige issue and discussions. It's a great opportunity to talk directly to the team! All the details about the call is here on our main README Hope to see you there some time! 😄 |
Describe the bug
My remote address remains an internal address even after setting up and accepting the proxy protocol from my DOKS (Digital Ocean Kubernetes) load balancer.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would have expected to see either the initial address (remote_addr) or final segment of the logs (x_forwarded_for) to have contained the client's IP address.
Your environment
0.17.1
1.26.7-do.0
Additional context
Thank you for anyone that might have ideas on this!
The text was updated successfully, but these errors were encountered: