Table of Contents
Table of contents
CloudBeaver is fully compatible with the PgPass authentication method, offering a secure way to access your PostgreSQL databases.
Note
: Only an admin can create a PgPass connection.
Settings
PostgreSQL's PgPass method allows authentication using credentials stored in a .pgpass file. Follow the steps below to
configure it in CloudBeaver.
Server configuration
-
Create the
.pgpassfile. Each line in the file follows the format:hostname:port:database:username:passwordSave this line in the
.pgpassfile and ensure the file permissions are set to be readable only by the user.For more information on
.pgpass, see PostgreSQL documentation. -
Open a terminal and run the following command to list Docker containers:
docker ps -
Copy the ID of the CloudBeaver container from the list.
-
Transfer the
.pgpassfile to the container:- For versions before 24.3.4:
docker cp .pgpass "<container-id>":/root/.pgpass docker exec "<container-id>" chmod 600 /root/.pgpass - Starting from version 24.3.4:
docker cp .pgpass "<container-id>":/opt/cloudbeaver/.pgpass docker exec "<container-id>" chmod 600 /opt/cloudbeaver/.pgpass
Note
: Ensure the
.pgpassfile is placed in the correct directory based on your CloudBeaver version. - For versions before 24.3.4:
Create connection
After transferring the .pgpass file to the container, follow these steps to finalize the configuration:
- Open CloudBeaver and start creating a connection.
- In the Authentication dropdown menu, select PostgreSQL PgPass.
- Enter the username associated with the PostgreSQL database in the Username field.
- Test the connection by clicking the Test button. If the
.pgpassfile is properly configured and the credentials are correct, CloudBeaver will connect successfully.
CloudBeaver Documentation
- 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
- AI Smart assistance
- 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