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

Fixes #16730: Update users configuration file to add BCrypt support #2771

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented Feb 13, 2020

@ElaadF ElaadF requested a review from fanf February 13, 2020 15:31
@@ -70,9 +73,9 @@
into account: /etc/init.d/rudder-jetty restart
-->

<authentication hash="sha512">
<authentication hash="bcrypt">

<!-- Default credentials: admin / admin -->
Copy link
Member

Choose a reason for hiding this comment

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

we should not keep this comment

Copy link
Member

@amousset amousset left a comment

Choose a reason for hiding this comment

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

comment

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit ec94ea1 into Normation:master Feb 13, 2020

Not specifying the "hash" attribute means using plain text passwords, which is not
adviseable for security reasons.

To create a bcrypt hash of your password, please run this command:
htpasswd -nBC 12 "" | tr -d ':\n' | sed 's/$2y/$2b/'
Copy link
Member

Choose a reason for hiding this comment

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

Is the sed really necessary? The compare algo should work with "2y", and it's a risk that user do ad thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants