-
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
proxy_protocol on ssl_passthrough listener #227
Conversation
Move proxy_protocol to listener. Fix kubernetes#207
Without this PR, running behind an ELB with proxy-protocol enabled, we see the inbound request, and nginx immediately responds with:
With this PR, ssl passthrough when the ELB has proxy protocol enabled works. I believe that with the proxy_protocol in its current position, nginx adds the proxy protocol header before forwarding. This may actually be useful in some circumstances, but is not what we are expecting here (I believe). |
I have found a snafu, so marking WIP. The problem is that the SSL 442 listener also has proxy_protocol, but it should not, because the 443 listener with this PR already removes the header. I think I need to remove proxy_protocol from the 442 listener. |
The proxy_protocol processing should only happen once, on the "external-facing" listeners.
OK, that was easy! Removed proxy_protocol from 442, marking as no-longer-WIP. |
/lgtm |
@justinsb thanks for fixing this. |
- Always listen on ipv4 address for port 443 - Rollback previous PR kubernetes#227 that broke the proxy_protocol when passthroughBackends is disabled
Move proxy_protocol to listener.
Fix #207