-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Azure auth failure from not using identity token in docker.config auths section #2489
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really only an issue with azure? Can no one else use identity tokens?
jib-core/src/main/java/com/google/cloud/tools/jib/registry/credentials/DockerConfig.java
Show resolved
Hide resolved
@@ -138,15 +139,25 @@ public Path getDockerConfigFile() { | |||
} | |||
|
|||
// Lastly, find defined auth. | |||
String auth = dockerConfig.getAuthFor(registryAlias); | |||
AuthTemplate auth = dockerConfig.getAuthFor(registryAlias); | |||
if (auth != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we check if present here?
Maybe not only an issue with Azure. But because we've not heard any error report, I think it's safer to keep using |
Fixes #2488.