Hub Enterprise - Enforcing SSL for PostgreSQL Connections
Starting from Hub version
3.0.16
To enhance the security of your database connections, you can configure the application to force all connections to your PostgreSQL database to use SSL encryption.
Environment Variable: OL_DB_FORCE_SSL
- Variable:
OL_DB_FORCE_SSL
- Type:
Boolean
(true or false) - Default:
false
How to Set
Set the environment variable OL_DB_FORCE_SSL
to true in your deployment environment. This can typically be done in your application configuration file, deployment scripts, or container environment settings.
Example - on Linux or macOS:
export OL_DB_FORCE_SSL=true
Example - in Docker Compose:
environment:
- OL_DB_FORCE_SSL=true
Example - in a Kubernetes manifest:
env:
- name: OL_DB_FORCE_SSL
value: "true"
When you set OL_DB_FORCE_SSL=true, the hub will establish all connections to your PostgreSQL database using SSL encryption. This helps to secure the transmission of sensitive data between the hub and your database server.\
Ensure that your PostgreSQL server is configured to accept SSL connections. If SSL is not enabled on the server or not configured properly, setting this variable to true may prevent the application from connecting to the database.
Updated 2 days ago