Guide to Connect PostgreSQL:
- Create a dedicated read-only user for Go Fig. (Recommended)
- Whitelist Go Fig’s IP address in your firewall or security group settings:
35.185.38.164 - Collect the following details:
- PostgreSQL host/endpoint (IP address or hostname)
- Port number (default: 5432)
- Database name
- Username and password with read access
1) Create a read-only user (recommended)
Create a dedicated Go Fig user with read-only access so Go Fig never has write access. The example below grantsSELECT on the public schema’s current and future tables:
2) Whitelist Go Fig’s IP address
Go Fig needs network access to your database. Allow35.185.38.164/32 in your firewall, security group, or pg_hba.conf. For managed databases this is usually an inbound rule on port 5432 (AWS RDS security group, Google Cloud SQL authorized networks, or Azure firewall rules) pointing at Go Fig’s IP.
Self-hosted PostgreSQL (pg_hba.conf)
Self-hosted PostgreSQL (pg_hba.conf)
Add Go Fig’s read-only user and IP to Then reload PostgreSQL:
pg_hba.conf:sudo systemctl reload postgresql3) Connect Go Fig to PostgreSQL
1
Add PostgreSQL connection
Navigate to your Organization Data page and click Add data source. Select PostgreSQL from the list of database connections.

2
Enter connection details
Fill in your PostgreSQL connection information:
- Host: Database server hostname or IP address (e.g.,
postgres.example.comor10.0.0.1) - Database: Name of the database to connect to (e.g.,
production,analytics) - Username: PostgreSQL username with read access (must start with a letter or underscore)
- Password: Password for the PostgreSQL user
- Port: Port number (default:
5432) - SSL Mode: Connection encryption setting
- Require: Always use SSL (recommended, default)
- Prefer: Use SSL if available, fall back to non-SSL
- Allow: Non-SSL preferred, fall back to SSL
- Disable: Never use SSL (not recommended)

3
Confirm IP access
Toggle the Confirm IP Access switch to confirm that you have added Go Fig’s IP address (
35.185.38.164) to your PostgreSQL firewall or security group.You cannot proceed until you confirm that network access has been configured.
4
Connect to PostgreSQL
Click Connect to complete the setup. Go Fig will verify the connection, then encrypt and store your credentials securely.

