The URL we use in any application contains some confidential information like password which is passed as a plain text. To enhance the security, use vault to encrypt the password instead of providing the password as a plain text. Before using it in the URL, click here to create a new Vault.
After you have created a vault, write the following syntax in the URL of the JDBC drivers (given in the table below) replacing the confidential information:
{Vault.aliasName.key}
where,
Following an opening curly parentheses, 'Vault' is a keyword to be used every time (V in 'Vault' is UPPERCASE).
aliasName is the Vault Alias, where the parameter, which stores the confidential data, is defined.
key is the parameter which stores the confidential data.
Finally closed by a closing curly parentheses.
A period is used as a separator between Vault and aliasName; and aliasName and key.
Now if a REST Consumer Web Service is using vault for storing and fetching a password, we define the URL in the form:
http://server:host?username=<username>&password={Vault.aliasName.key}
For example-
http://192.168.1.195:8080?username=admin&password={Vault.safe.client_key}