-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
feat: allow import peppered/salted password hashes #2946 #3057
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3057 +/- ##
==========================================
+ Coverage 77.88% 77.90% +0.01%
==========================================
Files 320 320
Lines 20474 20543 +69
==========================================
+ Hits 15946 16003 +57
- Misses 3327 3335 +8
- Partials 1201 1205 +4
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks for putting in the effort. however we need to fix a few things. It is also not a good idea to mix new features with refactoring in one PR, so I would suggest you either split this in two PRs, or we don't do the refactoring at all.
For pepper secrets, I think we need to include the possibility to rotate the secret as well. It is not cheap to do, as we need to hash the password multiple times, but there is no other way to update peppers or increase the secret entropy without a rotation mechanism, so this is a requirement IMO.
See also feedback from #2946 (comment) |
I added support for importing passwords with different pepper values. |
5e9b0b2
to
365e79a
Compare
@aeneasr @zepatrik All parameters are encoded in the hash string. The hash string has the form: An example using a salted and peppered md5 in the format |
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.
Looks good now, thanks for revisiting!
I just have some minor suggestions, nothing critical.
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.
Nice 👍
Related issue(s)
#2946
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
Further Comments