In Vertica a profile enforces password practices – how user passwords are created, reused, and validated.
Benefits of using Profiles in Vertica
Maintain database security by using password management features.
To see the existing profiles on your database use the query bellow:
by default a profile is created called default profile. When a new user is created and no profile is given to him by default the default profile is associated to the new user account.
What are the option parameters that we can use when creating a profile
password_life_time - how many days the password will be valid.
password_grace_time - numbers of days after the password expires and the users are forced to change their password.
password_reuse_max - how many times you need to change the password before reusing an old password.
password_reuse_time - how many days must pass before you can reuse an old password.
failed_login_attempts - number is consecutive failed login attempts, when number is reached the account will be locked.
password_lock_time - how many days the account stays locked after the failed login attempts is reached.
password_max_length- max number of characters a password can have.
password_min_length - min number of characters a password can have.
password_min_letters - min number of letters a password should contain.
password_min_lowercase_letters - min number of Lowercase letters a password should contain.
password_min_uppercase_letters - min number of Uppercase letters a password should contain.
password_min_digits - min number of digits a password should contain.
password_min_symbols - min number of symbols a password should contain.
Examples of profiles we can use in Vertica
1 - Create a profile that allows only one failed login attempt and after this the account get's locked.
Create a new user and define the log_profile_1 as his user profile
Now simulate a failed login to see that happens to the user account
we can see that profile definition enforced the account to get locked after a failed user login.
2 - Create a profile that allows only passwords with a minimum lenght of 10 characters and has at least 2 Uppercase letters.
Many profiles can be created as per your needs and also to satisfy your security requirements.
In future articles we will see how we can manage resource usage by implementing custom resource pool and alter user definition.