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

docs: exclude dollar sign from set of allowed characters for passwords and salts #74

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

zoomoid
Copy link
Contributor

@zoomoid zoomoid commented Apr 19, 2024

Your docs for salts and passwords currently supports any special characters. Particularly for the salt, this causes issues, because a salt including "$" will break the encoding of apr1 secret.

For an 8 byte salt, the chances of it including a dollar sign are small but not zero, and exactly this happened to us, breaking downstream at the validation of the password.

This PR refines the documentation to explicitly exclude $ from the set of special characters included in the example password and salt.

zoomoid added 3 commits April 19, 2024 16:53
Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
@loafoe
Copy link
Owner

loafoe commented Apr 22, 2024

@zoomoid thanks for finding this one, I'm thinking of just outright excluding $ as a valid value for the salt itself. What do you think? This should make it more robust. Created #75 to track

@loafoe loafoe merged commit f0b816d into loafoe:main Apr 22, 2024
4 checks passed
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.

2 participants