-
-
Notifications
You must be signed in to change notification settings - Fork 601
XWIKI-22257: Hash the superadmin password #4655
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
base: master
Are you sure you want to change the base?
Conversation
* Support bcrypt-encrypted password hashes for superadmin. * Document bcrypt support in the configuration file.
I feel it would be more future-proof (and also give more choices now) to introduce the concept of password prefix (like we do in the password property, but maybe with a slightly safer syntax, like |
The prefix
So in other words, I don't think there is any need to add an extra prefix as long as we use the "standard" password encoding format. |
Yes, it's just that using a prefix with a value supported by Note that it's in no way a blocker comment, I'm just wondering if it would not make things easier in the long run. |
At least the algorithms that are required by Java 17 - plain SHA-1 and SHA-256 - aren't suitable for secure password hashing. And I couldn't find anything that this class would support state-of-the-art password hashing methods. I found that DelegatingPasswordEncoder in
|
Yes, but Bouncy Castle (which we already embed) adds a lot of others Edit: but BCrypt does not seem to be in that list, not sure why since Bouncy Castle support it. |
Jira URL
https://jira.xwiki.org/browse/XWIKI-22257
Changes
Description
Clarifications
$2
seems unlikely enough that I don't think there is any issue of treating such a value as a bcrypt hash and not a plain text password.Screenshots & Video
No UI changes.
Executed Tests
Built
xwiki-platform-oldcore
with quality profile.Expected merging strategy