Closed johnabass closed 1 week ago
Attention: Patch coverage is 96.07843%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 99.76%. Comparing base (
af4b32b
) to head (a94899c
). Report is 14 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
cmd/hash/main.go | 90.47% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR adds basic password hashing support. The password hashing is modular and extensible, and currently only bcrypt is supported because it's easy.
Included is also a command-line tool for generating hashes in the OpenSSL crypt format. We can use that command to nab the string that should be put into configuration files for servers that accept basic auth or other password-like secrets. The configuration files no longer need to be closed source or encrypted, as any secrets will be one-way hashed.