-
Notifications
You must be signed in to change notification settings - Fork 85
Fixes #26996: Add argon2id support for local hash #6407
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 #26996: Add argon2id support for local hash #6407
Conversation
|
PR updated with a new commit |
1 similar comment
|
PR updated with a new commit |
f4150d9 to
e068135
Compare
|
PR updated with a new commit |
2 similar comments
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
4 similar comments
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
ae300e2 to
2209869
Compare
fanf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice PR ! The logic is OK and tests too. Some things can be improved regarding scala idiomatic usage.
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
clarktsiory
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the change is great ! I only have some additional suggestions
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
webapp/sources/rudder/rudder-web/src/main/scala/bootstrap/liftweb/RudderConfig.scala
Outdated
Show resolved
Hide resolved
|
PR updated with a new commit |
4 similar comments
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
webapp/sources/rudder/rudder-web/src/main/scala/bootstrap/liftweb/AppConfigAuth.scala
Show resolved
Hide resolved
|
PR updated with a new commit |
8b7102e to
cbfb454
Compare
|
PR updated with a new commit |
4 similar comments
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
|
PR updated with a new commit |
fanf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's shapping nicely! But I don't get why you didn't go all in for the opaque type and use them everywhere they could have been ?
Plus some details
webapp/sources/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/Argon2.scala
Outdated
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Outdated
Show resolved
Hide resolved
webapp/sources/rudder/rudder-web/src/test/scala/bootstrap/liftweb/PasswordEncoderTypeTest.scala
Show resolved
Hide resolved
...ces/rudder/rudder-rest/src/main/scala/com/normation/rudder/users/RudderUserDetailsFile.scala
Show resolved
Hide resolved
webapp/sources/rudder/rudder-web/src/test/scala/bootstrap/liftweb/PasswordEncoderTypeTest.scala
Outdated
Show resolved
Hide resolved
|
PR updated with a new commit |
1 similar comment
|
PR updated with a new commit |
| parallelism: Argon2Parallelism, | ||
| hashSize: Argon2HashSize, | ||
| saltSize: Argon2SaltSize | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
LGTM, appart the magnitude factor in the memory parameter in argon algo |
|
PR updated with a new commit |
1 similar comment
|
PR updated with a new commit |
|
OK, squash merging this PR |
bd8cc8f to
2bdec40
Compare
https://issues.rudder.io/issues/26996
argon2idvalue instead of bcrypt as it should be transparent for users.verifyHashwhich does not appear to be used, and I don't see any reason to do this kind of check.PasswordEncoderType.