Skip to content

BUG/MINOR: Prevent user addition with whitespace in password#792

Open
markkrj wants to merge 1 commit intohaproxytech:masterfrom
markkrj:fix-user-password
Open

BUG/MINOR: Prevent user addition with whitespace in password#792
markkrj wants to merge 1 commit intohaproxytech:masterfrom
markkrj:fix-user-password

Conversation

@markkrj
Copy link
Copy Markdown

@markkrj markkrj commented Mar 6, 2026

If password contains whitespace of any kind, haproxy fails to validate the config and will not start or reload.

According to man 5 crypt:

Hashed passphrases are always entirely printable ASCII, and do not contain any whitespace or the characters
     ‘:’, ‘;’, ‘*’, ‘!’, or ‘\’.

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

If password contains whitespace of any kind, haproxy fails to validate
the config and will not start or reload
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.

1 participant