aws-ecr-http-proxy icon indicating copy to clipboard operation
aws-ecr-http-proxy copied to clipboard

Possibility to use outbound http proxy?

Open davidkarlsen opened this issue 5 years ago • 3 comments

Is it possible in some way to use a http-proxy to fetch the images?

davidkarlsen avatar Aug 12 '20 18:08 davidkarlsen

You can try to change the nginx config to use proxy_pass with proxy_set_header but that won't work for TLS. Therefore you would need to use something like socat locally and use that at first.

matlockx avatar Aug 15 '20 06:08 matlockx

Found a stackoverflow for that https://stackoverflow.com/questions/46803431/nginx-proxy-pass-over-https-proxy

matlockx avatar Aug 15 '20 06:08 matlockx

As far as I can tell this isn't possible. Nginx doesn't support proxy_pass through a proxy, and a solution like socat doesn't work as the ECR pull flow hits multiple endpoints (the [account].dkr.ecr.[region].amazonaws.com endpoint as well as the starport layer buckets).

Am I wrong about this? Has someone else cracked this nut?

ag-TJNII avatar May 25 '22 15:05 ag-TJNII