Automation (console) security
Note
This feature is available in Lite, Enterprise and Ultimate editions only.
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):
- On macOS/Linux:
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.
- Set the environment variable to point to the file:
- On Windows (PowerShell):
- On macOS/Linux:
- Ensure the password file has restricted permissions:
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):
- On macOS/Linux:
Delete the password file
If you stored the password in a file, delete it securely:
- On Windows:
- On macOS/Linux:
After removing automation security, restart DBeaver to apply the changes.