Skip to main content
Version: current [25.0.x]

Encrypt Credentials

To enable enhanced security for sensitive information, the dremio-admin encrypt CLI command lets you encrypt the values of certrain passwords or secrets in Dremio configuration files.

note

Run dremio-admin encrypt as the dremio service user, not as the root user. Running the command as the root user can cause permissions issues. If it is not possible to run the command as the dremio service user, change the owner and group of the $DREMIO_HOME/data/security folder and underlying files to the dremio service user.

Dremio supports encrypted values for the following properties and applicable configuration files:

Configuration FileConfiguration Property
ad.jsonbindPassword
azuread.jsonclientSecret
dremio.confkeyStorePassword
keyPassword
trustStorePassword
core-site.xmlfs.s3a.secret.key
dfs.adls.oauth2.credential
dremio.azure.key
dremio.azure.clientSecret
oauth.jsonclientSecret

Syntax

Syntax for encrypt command
./dremio-admin encrypt <string_to_encrypt>

Example

The following example shows the command for encrypting a user-supplied string, the encrypted output that is returned, and how to use the encrypted output as the value for a configuration property:

Encrypt
sudo su - dremio ./dremio-admin encrypt <yourSecret>
Encrypted output
secret:1.90WZLVORD26pwyAg8qKtQqw9Te8Xom5mdkSMmR_U4knjHvoWHM9urj
Encrypted output usage
bindPassword: "secret:1.90WZLVORD26pwyAg8qKtQqw9Te8Xom5mdkSMmR_U4knjHvoWHM9urj" 

Steps to Encrypt a String

  1. On the master node, run the dremio-admin encrypt CLI command using the supplied string.

  2. Copy the entire output starting from secret:, and use this encrypted string for the value of the password or secret in the configuration file.

  3. Restart the master node.

note

Core-site.xml files are not owned by Dremio, so you must add a dremio+ prefix to the secret before it is used in the core-site.xml file. For example, you would use dremio+secret:1.90WZLVORD26pwyAg8qKtQqw9Te8Xom5mdkSMmR_U4knjHvoWHM9urj as the encrypted string.