Password Policy
Last updated
Last updated
The variables PASSWORD_COMPLEXITY and MIN_PASSWORD_LENGTH can be added to the auth-service configuration (.env). This is either the ./<service_name>/configs/.env.<service_name>.<GUARDIAN_ENV>
file,
or
if youβre using Building from Pre-build containers () - the corresponding file is used for the auth-service.
Variables:
MIN_PASSWORD_LENGTH sets the required minimum password length. If itβs not specified, a default value of 8 will be used. The minimum allowable value for this variable is 1.
PASSWORD_COMPLEXITY sets the password complexity level. If PASSWORD_COMPLEXITY isnβt set, medium will be used by default.. Available values are:
easy: no rules
medium: at least one uppercase letter, one lowercase letter, and one number
hard: at least one uppercase letter, one lowercase letter, one number, and one special character