Does Envoy Gateway Support Forward Proxy? Certificate Error When Using curl -x #6583
Unanswered
lideheng6379-del
asked this question in
Q&A
Replies: 1 comment 1 reply
-
you'll need to configure a BackendTLSPolicy https://gateway.envoyproxy.io/docs/tasks/security/backend-tls/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question: Does Envoy Gateway support forward proxy? Here is my configuration:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: httpbin-route
namespace: test
spec:
parentRefs:
- name: gw
hostnames:
- "httpbin.org"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: httpbin-backend
kind: Backend
group: gateway.envoyproxy.io
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
metadata:
name: httpbin-backend
namespace: test
spec:
type: DynamicResolver
tls:
wellKnownCACertificates: System
When I run this request, it works fine:
curl -v --cert client.example.com.crt --key client.example.com.key --cacert example.com.crt -H "Host: httpbin.org" https://www.example.com/get
But when I try to use Envoy Gateway as a forward proxy:
curl -v --cert client.example.com.crt --key client.example.com.key --cacert example.com.crt -x https://www.example.com https://httpbin.org/get
I get the following error:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
What is the cause of this? Is it a certificate issue, or does Envoy Gateway not support forward proxy?
Beta Was this translation helpful? Give feedback.
All reactions