Skip to content

enabling HTTPS #4064

Answered by liorokman
gid-fieldcode asked this question in Q&A
Aug 16, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

If you enabled the PROXY protocol on the NLB, then it's being used between the NLB and Envoy Proxy. You need to enable the PROXY protocol on the Envoy Proxy listener. To do this, you need a ClientTrafficPolicy.

Once you've enabled the ClientTrafficPolicy, Envoy Proxy will expect the PROXY protocol data at the beginning of each TCP connection, and correctly read it and translate it into a X-Forwarded-For header that will be sent to the backend you configured.

You're getting the codec error because Envoy Proxy is not receiving HTTP right now - but rather the bytes associated with the PROXY protocol.

Your backend doesn't need to support the PROXY protocol if it is configured to use the X-For…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gid-fieldcode
Comment options

Comment options

You must be logged in to vote
1 reply
@gid-fieldcode
Comment options

Answer selected by gid-fieldcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants