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 encoding for X-Registry-Auth #1084

Merged
merged 2 commits into from
Sep 15, 2018
Merged

Conversation

longshorej
Copy link
Contributor

I was getting mysterious failures when pushing images -- turned out I had some characters in the password causing + to be part of the resulting base64 string.

It appears that this isn't documented very well, but Docker Engine requires URL-safe base64 encoding.

Related issue: moby/moby#19214
Related code: https://github.com/moby/moby/blob/4bf8714fac11e95e835cf78eb15ba5a518c67c4b/api/server/router/image/image_routes.go#L140-L146

With this fix, my arcane password is now working.

Copy link

@huntc huntc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link
Collaborator

@rhuss rhuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Awesome, good find !

thanks for the patch

@rhuss rhuss merged commit 3078e8c into fabric8io:master Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants