enabling HTTPS #4064
-
As we get into EnvoyGateway, we have followed the tutorial at https://tetrate.io/blog/envoy-gateway-with-aws-nlb/ and got a demo service to work with HTTP. We, however, have problems getting it to work with HTTPS. What makes things worse for us is that we can't find any logs that will help us figure out what we're doing wrong. The "envoy-gateway" pod only logs the routes it sees, and the "envoy-test-apps" pod (deployed on namespace=test and with name=apps) logs nothing when our
Perhaps you can find what we are doing wrong, or share with us a configuration that is working for you. As the tutorial indicates, we are using the AWS LB controller as a NLB provisioner. The certificate you see below matches the hostname for the HTTProute.
Our setup is as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I think that you've enabled the PROXY protocol on the loadbalancer, using the This matches the You should try to either disable the PROXY protocol on the loadbalancer or configure it in Envoy Gateway. |
Beta Was this translation helpful? Give feedback.
-
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 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 By enabling the PROXY protocol in a |
Beta Was this translation helpful? Give feedback.
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 aX-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…