Open ziler-orca opened 2 days ago
cc @ggreenway
Sometimes an error like this is due to trying to talk TLS to a plaintext service.
cc @alyssawilk because this deals with tunnels/CONNECT.
@soulxu This is the output with the -v
option
$ curl -v -k http://envoy-egress:8080 -I https://www.google.com
* Host envoy-egress:8080 was resolved.
* IPv6: (none)
* IPv4: 10.102.135.111
* Trying 10.102.135.111:8080...
* Connected to envoy-egress (10.102.135.111) port 8080
* using HTTP/1.x
> HEAD / HTTP/1.1
> Host: envoy-egress:8080
> User-Agent: curl/8.11.0
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 503 Service Unavailable
HTTP/1.1 503 Service Unavailable
< content-length: 211
content-length: 211
< content-type: text/plain
content-type: text/plain
< date: Thu, 21 Nov 2024 00:29:58 GMT
date: Thu, 21 Nov 2024 00:29:58 GMT
< server: envoy
server: envoy
<
* Connection #0 to host envoy-egress left intact
* Uses proxy env variable HTTPS_PROXY == 'http://envoy-egress:8080'
* Hostname envoy-egress was found in DNS cache
* Trying 10.102.135.111:8080...
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to www.google.com:443
> CONNECT www.google.com:443 HTTP/1.1
> Host: www.google.com:443
> User-Agent: curl/8.11.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< date: Thu, 21 Nov 2024 00:29:58 GMT
date: Thu, 21 Nov 2024 00:29:58 GMT
< server: envoy
server: envoy
<
* CONNECT phase completed
* CONNECT tunnel established, response 200
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLS connect error: error:0A00010B:SSL routines::wrong version number
* closing connection #1
curl: (35) TLS connect error: error:0A00010B:SSL routines::wrong version number
~ $ command terminated with exit code 137
Title: Envoy TLS config causes SSL WRONG_VERSION_NUMBER
Version: envoyproxy/envoy:v1.32.1
Description: Trying setup an envoy HTTP proxy in Kubernetes cluster. The internal pods forward
Envoy Proxy Logs
Repro steps:
Configuration for the Envoy Proxy Pod
Envoy Deployment
envoy-service.yaml
tester-pod.yaml