Pre-configure credentials
To connect without entering credentials interactively, add them directly to data-sources.json before starting dbvr.
Warning
Credentials in data-sources.json are stored in plain text until the first connection. Make sure no
unauthorized users have access to the workspace config files during this time.
Steps¶
- Open
<workspace>/General/.dbeaver/data-sources.json. - Add an
auth-propertiesobject inside the connection'sconfiguration:
- Set
"save-password": trueat the top level of the connection entry. - Start dbvr and open the connection for the first time.
- dbvr encrypts the credentials and removes them from
data-sources.json. The connection will authenticate automatically from now on.
The field names in auth-properties depend on the auth model. To see the available models and their parameters for
your driver, run:
Info
For common auth models and example parameters, see Auth model reference.
Example¶
Full data-sources.json with pre-configured credentials for PostgreSQL:
Example
{
"folders": {},
"connections": {
"postgres-jdbc-test": {
"provider": "postgresql",
"driver": "postgres-jdbc",
"name": "PostgreSQL_test",
"save-password": true,
"configuration": {
"host": "localhost",
"port": "5432",
"database": "postgres",
"url": "jdbc:postgresql://localhost:5432/postgres",
"configurationType": "MANUAL",
"type": "dev",
"auth-model": "native",
"auth-properties": {
"userName": "postgres",
"userPassword": "postgres"
}
}
}
}
}