Bypass or allow gitlab.com in transparent squid proxy (gnutls_handshake failed)

Hi, we have configured transparent squid proxy in our environment and allowed the https://gitlab.com in our squid.conf file. When we are trying to clone any repository in docker container running in the same.

It is getting failed with an error: “fatal: unable to access ‘https://gitlab.com/hisrarul/tanga.git/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.”

Access.log message from squid is as below:
1592071580.522 80 x.x.x.x TAG_NONE/200 0 CONNECT 172.65.251.78:443 gitlab.com ORIGINAL_DST/172.65.251.78 -

Hi @israrul.haque, did u manage to fix this issue? We see a similar issue when connecting through a transparent squid proxy. This happens for git clone from container images with base: ubuntu:20.10, but not for alpine