Open sberlin opened 4 months ago
What if you set <image>harbor.example.com/docker_hub/library/eclipse-temurin:17-jre-alpine<image>
(library
added)?
Then it works, as described in the last line. That's of course valid, but I thought it's not obvious what the error is. If jib is able to handle the redirect, it should also apply the authorization. I wouldn't have needed to debug the requests, if jib just said 404 for official proxied images.
Environment:
Description of the issue: Unauthorized error when Harbor redirects to official Docker Hub images. Auth \ and \ are set correctly.
Expected behavior: Jib adds previous authentication to redirected location or starts new auth flow.
Steps to reproduce:
mvn jib:dockerBuild --debug -Djava.util.logging.config.file=logging.properties -Djib.serialize=true
with properties from docsjib-maven-plugin
Configuration:Log output:
Additional Information: Note the missing Authorization header after the redirect.
Workaround: include library/ in image name.