In Vertica we have many types of authentication methods, one of them is the TRUST authentication methods. I am going to go and see the steps that are needed to be done to configuration such a authentication and explain in what circumstances this type of authentication method is useful.
What is TRUST Authentication method ?
So like the names states this type of authentication assumes that a specified account that can connect to the server is authorized to access the database. Of course, restrictions made in the database and user columns still apply. This method should only be used when there is adequate operating-system-level protection on connections to the server.
When should i use it ?
TRUST authentication is appropriate and very convenient for local connections on a single-user workstation. It is usually not appropriate by itself on a multiuser machine.
How can we setup TRUST Authentication ?
First we will need to create an authentication method.
the base syntax is as bellow - for more details about the options follow the link.
Example:
Let's first see if we have any authentication methods enabled(we will use the CLIENT_AUTH table )
- no authentication methods created yet.
Create the TRUST authentication method.(we will name it local_auth_method)
Check the CLIENT_AUTH table again.
Create a new user and grant the authentication method to a user and test it.
Nice so we managed to log into our Vertica database using no password and just making use of the TRUST authentication method.
If you want to mange this authentication methods and get more details about them read the following:
How to see information about the client authentication methods that you have associated with your database users.
the user_client_auth table stores information about the related users and auth methods after using the grant authentication.
See the parameters related to the authentication methods.
in my case i have none setup.
I strongly suggest that you look closely into client authentication methods as they a main part of you core Vertica skills.
I hope this was helpful.