Automation Security
Note: This feature is available in Lite, Enterprise and Ultimate editions only.
Table of contents
Overview
Automation security in DBeaver allows scheduled tasks to run without manual password entry. This is useful for automating processes such as sending emails or executing database queries in the background.
To use automation security:
- Navigate to Window -> Preferences -> General -> Security.
- Under Encryption Method, select Automation (console).
- Click Apply and Close to save the changes.
- Configure password storage – Use environment variables or a password file to provide credentials.
Warning: Automation security is less secure, as local credentials can be decrypted by anyone with access to the machine. Only enable it on controlled machines where task execution is critical.
Configuration options
You can provide a password in one of the following ways:
Environment variable
Store the password in memory by setting the DBEAVER_MASTER_PASSWORD
environment variable. To configure:
- Open a terminal or command prompt.
- Set the environment variable:
- On Windows (PowerShell):
$env:DBEAVER_MASTER_PASSWORD="your_password"
- On macOS/Linux:
export DBEAVER_MASTER_PASSWORD="your_password"
- On Windows (PowerShell):
Password file
Store the password in a file and reference it using DBEAVER_MASTER_PASSWORD_PATH
. To configure:
- Create a text file containing the password.
echo "your_password" > /path/to/password_file
- Set the environment variable to point to the file:
- On Windows (PowerShell):
$env:DBEAVER_MASTER_PASSWORD_PATH="C:\path\to\password_file"
- On macOS/Linux:
export DBEAVER_MASTER_PASSWORD_PATH="/path/to/password_file"
- On Windows (PowerShell):
- Ensure the password file has restricted permissions:
chmod 600 /path/to/password_file
Removing automation security
To remove stored automation security credentials, follow these steps:
Remove the environment variable
If you stored the password using an environment variable, delete it:
- On Windows (PowerShell):
Remove-Item Env:DBEAVER_MASTER_PASSWORD
On macOS/Linux:
unset DBEAVER_MASTER_PASSWORD
Delete the password file
If you stored the password in a file, delete it securely:
- On Windows:
Remove-Item "C:\path\to\password_file"
- On macOS/Linux:
rm -f /path/to/password_file
After removing automation security, restart DBeaver to apply the changes.