Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Problem calling https://httpbin.org via Service Mesh egress gateways on GKE clusters

Hi all,

I did deploy istio-egress according to the documentation:  

When I used the curl command to make a call to https://httpbin.org, the following happened:
There will be times when the response returns 200 and an error: curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to httpbin.org:443
These are the outputs when I execute curl from an ubuntu workload going through isito-egressgateway:

root@ubuntu-infra-85fd97fbf-gwq42:/# curl -I https://httpbin.org
HTTP/2 200
date: Tue, 20 Aug 2024 14:16:00 GMT
content-type: text/html; charset=utf-8
content-length: 9593
server: gunicorn/19.9.0
access-control-allow-origin: *
access-control-allow-credentials: true

root@ubuntu-infra-85fd97fbf-gwq42:/# curl -I https://httpbin.org
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to httpbin.org:443
root@ubuntu-infra-85fd97fbf-gwq42:/# curl -I https://httpbin.org
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to httpbin.org:443
root@ubuntu-infra-85fd97fbf-gwq42:/# curl -I https://httpbin.org
HTTP/2 200
date: Tue, 20 Aug 2024 14:35:40 GMT
content-type: text/html; charset=utf-8
content-length: 9593
server: gunicorn/19.9.0
access-control-allow-origin: *
access-control-allow-credentials: true

root@ubuntu-infra-85fd97fbf-gwq42:/#

 

 

 
 
0 1 354
1 REPLY 1

Hi @TrungDinh,

The curl error that you are encountering is related to SSL/TLS handshake; it could be certificates (file formats, paths, permission), passwords and others.

Here are some recommendations that you can try and check on your end:

  • To see what’s happening during the handshake, use this command.

 

curl -v https://<HostAlias>:<port number> 

 

  • To inspect the server's certificate

 

openssl s_client -showcerts -connect <HostAlias>:8443

 

And lastly, revisit your configuration in egress gateway, virtual services, and Destination rule you might misconfigure it. 

  • To check if there’s an error in ISTIO configuration

 

${ISTIOCTL} analyze -n istio-egress --revision REVISION

 

Note: replace the word REVISION to your REVISION version of your configuration.

I hope the above information is helpful.

Top Labels in this Space