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

✨ (yaldap): Add password hash mecanism #67

Merged
merged 6 commits into from
Feb 17, 2024
Merged

✨ (yaldap): Add password hash mecanism #67

merged 6 commits into from
Feb 17, 2024

Conversation

xunleii
Copy link
Collaborator

@xunleii xunleii commented Feb 17, 2024

This PR adds the ability to store password as hash that will be used transparently during the bind operation.

@xunleii xunleii self-assigned this Feb 17, 2024
@xunleii xunleii added size: L Require some effort to review state: active Indicates that an issue or PR is actively being worked on by a contributor. breaking A breaking change for existing users. type: enhancement Categorizes issue or PR as related to a new feature. priority: now labels Feb 17, 2024
@xunleii xunleii force-pushed the add-password-hash branch 2 times, most recently from 57895e8 to af608cb Compare February 17, 2024 14:36
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

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

Comparison is base (0a10e96) 89.96% compared to head (b7cb157) 87.39%.
Report is 3 commits behind head on main.

Files Patch % Lines
pkg/cmd/tool.go 54.09% 22 Missing and 6 partials ⚠️
pkg/ldap/mux.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   89.96%   87.39%   -2.57%     
==========================================
  Files          17       18       +1     
  Lines         787      865      +78     
==========================================
+ Hits          708      756      +48     
- Misses         55       78      +23     
- Partials       24       31       +7     
Flag Coverage Δ
unittests 87.39% <63.41%> (-2.57%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Storing plain-text password is not a good practice at all. So, in order
to improve a bit the security of this project, I add the ability to
store hashed password that can be managed transparently during the LDAP
BIND request.

Currently, yaLDAP only manages argon2, bcrypt, pbkdf2 and scrypt hashed
password.
In order to create password hash for the LDAP configuration, I changed
how the CLI works.

BREAKING CHANGES: The dockerfile entrypoint has changed and we must
provide the `run` command before argument
The yaLDAP owner has been changed without updating their references
@xunleii xunleii force-pushed the add-password-hash branch 3 times, most recently from b7cb157 to 8e34a28 Compare February 17, 2024 19:54
@xunleii xunleii added this pull request to the merge queue Feb 17, 2024
Merged via the queue into main with commit 4882214 Feb 17, 2024
6 checks passed
@xunleii xunleii deleted the add-password-hash branch February 17, 2024 19:55
xunleii added a commit that referenced this pull request May 24, 2024
✨ (yaldap): Add password hash mecanism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking change for existing users. priority: now size: L Require some effort to review state: active Indicates that an issue or PR is actively being worked on by a contributor. type: enhancement Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant