Provide credentials using environment variables
For hcd
commands, provide credentials using environment variables.
To increase security and prevent authentication credentials from appearing in log files, DataStax recommends using environment variables instead of passing credentials on the command line or in the .hdrc
file.
Add the environment variables to your Bash |
Database variables
To specify a user name and password for commands that interact with the database, define variables HCD_USERNAME
and HCD_PASSWORD
.
export HCD_USERNAME=<username> &&
export HCD_PASSWORD=<password>