BUG/MINOR: Prevent user addition with whitespace in password#792
Open
markkrj wants to merge 1 commit intohaproxytech:masterfrom
Open
BUG/MINOR: Prevent user addition with whitespace in password#792markkrj wants to merge 1 commit intohaproxytech:masterfrom
markkrj wants to merge 1 commit intohaproxytech:masterfrom
Conversation
If password contains whitespace of any kind, haproxy fails to validate the config and will not start or reload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If password contains whitespace of any kind, haproxy fails to validate the config and will not start or reload.
According to
man 5 crypt:I don't know if it must be this controller's job to validate all of that. But, whitespace in the password does brake it from generating valid HAProxy config, so that is a bug.
Also, I think that emitting a warning is helpful for admins to figure out why some user cannot login.
/cc @ivanmatmati: I talked to you on Slack
/cc @hdurand0710: You fixed a bug related