This pull request makes the Username Regex configurable over an environment variable.
Motivation
Our organization wants to enforce some username schema with firstname.secondname and currently . are not allowed by the posix user regex. With those changes, we can configure portunus to our username schema
PORTUNUS_POSIX_ACCOUNT_REGEX which takes the new username regex
Changes
This pull request makes the Username Regex configurable over an environment variable.
Motivation
Our organization wants to enforce some username schema with
firstname.secondname
and currently.
are not allowed by the posix user regex. With those changes, we can configure portunus to our username schemaPORTUNUS_POSIX_ACCOUNT_REGEX
which takes the new username regexTested