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

Add Argon2 credential hash support #2888

Merged
merged 2 commits into from Jan 13, 2024
Merged

Conversation

SijmenHuizenga
Copy link
Contributor

@SijmenHuizenga SijmenHuizenga commented Jan 8, 2024

This pr proposes adding support for Argon2 besides SHA256 for credentials.

Argon2 seems to be widely used and is the recommended way of storing passwords by owasp at the moment.

To support both argon2 and sha256, I've moved some of the validation logic into the Credential struct. This way the rest of the codebase doesn't need an understanding o the different configuration options.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (b8b64fd) 53.21% compared to head (dfc8836) 53.40%.
Report is 5 commits behind head on main.

Files Patch % Lines
internal/conf/path.go 18.18% 6 Missing and 3 partials ⚠️
internal/conf/credential.go 92.59% 3 Missing and 1 partial ⚠️
internal/core/auth.go 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2888      +/-   ##
==========================================
+ Coverage   53.21%   53.40%   +0.19%     
==========================================
  Files         124      124              
  Lines       11448    11497      +49     
==========================================
+ Hits         6092     6140      +48     
- Misses       4902     4905       +3     
+ Partials      454      452       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aler9
Copy link
Member

aler9 commented Jan 9, 2024

Hello, thank you very much for contributing this feature. I'll merge this in some days in order to allow me to review the PR and to allow you to push any further addition.

@aler9 aler9 merged commit 397c58a into bluenviron:main Jan 13, 2024
8 checks passed
@aler9
Copy link
Member

aler9 commented Jan 13, 2024

merged, thanks!

Copy link
Contributor

This issue is mentioned in release v1.5.0 🚀
Check out the entire changelog by clicking here

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

Successfully merging this pull request may close these issues.

None yet

2 participants