Skip to content
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

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

AchilleAsh
Copy link
Contributor

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!

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 22, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@jrasell jrasell left a 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!

@jrasell jrasell added backport/1.1 stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/driver/docker type/bug and removed backport/1.1 labels Aug 4, 2021
@jrasell jrasell added this to the 1.1.4 milestone Aug 4, 2021
@jrasell jrasell merged commit fa36aac into hashicorp:main Aug 5, 2021
jrasell added a commit that referenced this pull request Aug 5, 2021
jrasell added a commit that referenced this pull request Aug 5, 2021
notnoop pushed a commit that referenced this pull request Aug 26, 2021
notnoop pushed a commit that referenced this pull request Aug 26, 2021
notnoop pushed a commit that referenced this pull request Aug 26, 2021
notnoop pushed a commit that referenced this pull request Aug 26, 2021
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/driver/docker type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants