-
Notifications
You must be signed in to change notification settings - Fork 536
Configuring server datasources
As an administrator, you can pre-configure database connections for your CloudBeaver server. Users just pick a connection from the toolbar and enter their credentials - no other setup needed on their side.
Connections are defined in data-sources.json, located in ${WORKSPACE}/workspace/GlobalConfiguration/.dbeaver.
Tip: To find your workspace, see Workspace location.
If you deploy the server repeatedly, you can include credentials directly in data-sources.json instead of setting them
up in the UI each time.
Warning: Credentials in
data-sources.jsonare stored in plain text until the first connection. Make sure no unauthorized users have access to the server config files during this time.
To pre-configure credentials:
- Add
auth-propertieswith your credentials todata-sources.json. Theauth-propertiesfield names depend on the auth model. - Start the server.
- Open the connection in the UI for the first time.
- CloudBeaver encrypts the credentials, removes them from
data-sources.json, and users can connect from now on without entering credentials.
Example:
{ "folders": {}, "connections": { "postgres-jdbc-test": { "provider": "postgresql", "driver": "postgres-jdbc", "name": "PostgreSQL_test", "configuration": { "host": "localhost", "port": "5432", "database": "postgres", "url": "jdbc:postgresql://localhost:5432/postgres", "configurationType": "MANUAL", "type": "dev", "closeIdleConnection": true, "auth-model": "native", "auth-properties": { "name": "postgres", "password": "postgres" }, "bootstrap": { "autocommit": true } } } } }This file follows the same format as the DBeaver datasources configuration file. You can create this configuration in DBeaver and then copy it to your CloudBeaver server.
To pre-configure SSH tunnel credentials, add them to the handlers.ssh_tunnel block inside the connection configuration.
Example:
"handlers": { "ssh_tunnel": { "type": "TUNNEL", "enabled": true, "save-password": true, "properties": { "host": "your-ssh-host", "port": 22, "authType": "PASSWORD", "keyValue": "your-ssh-key", "user": "your-ssh-username" } } }
You can control which users and teams have access to each pre-configured connection. For details, see Pre-configured permissions for connections.
- Getting started
- Create connection
- Connection network options
- Supported databases
-
Drivers management
- Database authentication methods
- Database navigator
- Properties editor
- Data editor
- SQL editor
-
Entity relation diagrams
- Cloud services
- Data transfer
- General user guide
- Administration
- Server configuration
-
Server security and access configuration
- Authentication methods
- Access management
- Proxy configuration
-
Secret management
- Logs
-
Query manager
- Workspace location
- Command line parameters
-
Session manager
- Deployment options
- CloudBeaver Editions
- FAQ
- Development