You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
In some case redirects cause the go-containerregistry library to think that we are not connecting to the same registry. For example when we are being redirected from http to https. Goland http.Client doesn't pass the Host in the request.
Hey @sheeprine thanks for opening this issue! I noticed you merged the go-containerregistry PR, would you be interested in updating the go-containerregistry dependencies for this project now (it should require a single dep ensure command in the repo)? No worries if not, I can do it as well!
Hi @priyawadhwa thanks for updating dependencies.
Seems like the code to auto-detect scheme in google/go-containerregistry#125 is causing some troubles (always trying to connect in http even after being 308 redirected to https). I'll try to see if I can improve that and not hardcode scheme but suggest one and learn from transport in case of redirect.
Actual behavior
In some case redirects cause the go-containerregistry library to think that we are not connecting to the same registry. For example when we are being redirected from http to https. Goland http.Client doesn't pass the Host in the request.
See google/go-containerregistry/pull/293
Expected behavior
During an https redirect, the authentication token should be passed over.
To Reproduce
Try to pull from a registry that redirects http to https.
Additional Information
Any dockerfile that tries to pull from a registry redirecting http to https will trigger it.
The text was updated successfully, but these errors were encountered: