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

Programmatically generate htpasswd file #2539

Merged
merged 2 commits into from
Jun 24, 2020
Merged

Conversation

loosebazooka
Copy link
Member

@loosebazooka loosebazooka commented Jun 23, 2020

Turn out you must use bcrypt. md5 doesn't work for registry even if the htpasswd file is right.

The jbcrypt java library uses $2a$, not $2y$ (described in htpasswd docs: https://httpd.apache.org/docs/2.4/misc/password_encryptions.html), but $2y$ vs $2a$ doesn't seem to matter (integration tests passing).

core issue: distribution/distribution-library-image#106
longterm solution for: #2538

fixes #2537

Copy link
Member

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

Great! I think this will also speed up our tests considerably.

…registry/LocalRegistry.java

Co-authored-by: Chanseok Oh <[email protected]>
@loosebazooka loosebazooka merged commit 826b5bb into master Jun 24, 2020
@loosebazooka loosebazooka deleted the fix-localregistry branch June 24, 2020 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests failing after official Docker Distribution registry (registry:2) removed htpasswd
3 participants