-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[nginx] X-Forwarded-For IPs disappear on beta.14 #1470
Comments
We rolled back to beta.13 and the expected behaviour returns. |
@egeland where are you running the cluster? what kubernetes version are you using? |
That commit just allows to use a custom forwarded IP header (cloudflare uses a different header) |
Our k8s is 1.6.8 in AWS. I mentioned that commit as it seemed like the only one touching the Forwarded IP stuff. I don't know for sure that it's causing the issue. |
@egeland can you enable proxy protocol? |
@egeland the ELB is configured as L4 or L7. If you want to use the X-Forwarded-For header it should be L7 |
Following up for @egeland - the ELB is a L7 - and it works as expected on |
I'm also seeing this issue/difference between beta.13 and beta.14. beta.13 passed the correct ip upstream, beta 14 does not. I am on k8s 1.6.9 hosted on AWS as setup by kops. |
We updated from beta.11 to beta.14, and the reported IPs changed from external IPs to in-cluster IPs.
I note that c24e212 seems to have changed things relating to forwarded IPs - is there a bug here (that I can't spot by reading the code), or do we need to set a config setting that isn't documented?
This might partially relate to #1410 in that the forwarded IPs may not match against the whitelisted ones.
The text was updated successfully, but these errors were encountered: