-
Notifications
You must be signed in to change notification settings - Fork 2k
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: load token in docker auth config #10929
fix: load token in docker auth config #10929
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.
LGTM, thanks a lot @AchilleAsh!
changelog: add entry for #10929
fix: load token in docker auth config
fix: load token in docker auth config
changelog: add entry for #10929
changelog: add entry for #10929
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Hi!
When evaluating Nomad on Azure I came across an authentication issue with our Azure Container Registry.
I looked at #10722 but I was not able to find a sustainable solution (other Azure authentication means could have worked, but I had not the opportunity to test)
After digging into the code, I found out that the IdentityToken from the docker.json auth config is simply not used and therefore not passed to docker, resulting in the authentication issue; I also added the RegistryToken, since it is missing as well.
I'm not sure AWS auth works the same, but it may explain why some solutions work but other not.
This is my first golang PR so please let me know if there is anything I'm not handling or could improve.
Thanks for your amazing work!