Skip to main content

Use case

Cube supports SSL-encrypted connections to various data sources. Please check the documentation for a particular data source for specific instructions.

Configuration

Generally, you can enable SSL via the CUBEJS_DB_SSL environment variable.

Cube Core

To enable SSL, set the CUBEJS_DB_SSL environment variable to true. Cube can also be configured to use custom connection settings. For example, to use a custom certificate authority and certificates, you could do the following:
You can also set the above environment variables to the contents of the PEM files; for example:

Cube Cloud

When setting up a new deployment, select the SSL checkbox when entering database credentials:
Cube Cloud Database Connection Screen for Postgres
To use custom SSL certificates between Cube Cloud and your database server, go to the Configuration tab in the Settings screen:
Cube Cloud Database Connection Screen
Add the following environment variables: