
Step 1: Prepare SSL Certificate Files
In order to connect Metabase Cloud to Firebolt you need certificate-based authentication, which requires SSL certificate files. You can either use existing certificates or generate new ones.If You Already Have the Certificates
If you already have the following files:client-cert.pem— your client certificateclient-key.pk8— your private key (must be in PKCS#8 DER format)
Ensure your private key is in PKCS#8 DER format (if needed)
If your private key is in traditional PEM format, you must convert it to PKCS#8 DER (required by PostgreSQL JDBC and Firebolt):Generate a public key from the PKCS#8 private key
To access Firebolt using certificate-based auth, you must attach the public key to the Firebolt service account. Generate the public key as follows:If You Need to Generate the Certificates
If you don’t have an existing certificate and key pair, you can generate them using the Bash script below. This will: Create a local Certificate Authority (CA) Generate a private key in PKCS#8 DER format (fb.pk8) Generate a public key required by Firebolt Sign a client certificate (fb.crt) using the CA ⚠️ If you already have a company CA, you can skip the CA generation step and use your organization’s ca.crt and ca.key files instead. Just update the CA_DIR variable in the script accordingly and make sure the filenames are exactly: ca.crt ca.key Certificate Generation ScriptFiles Generated
fb.pk8– Private key (PKCS#8 format)fb.crt– Client certificatefb-public.pem– Public key to attach to your Firebolt service account
Step 2: Set Up the Firebolt Service Account & Attach the Public Key
For Metabase to connect to Firebolt using certificate authentication, the public key generated in Step 1 must be attached to a Firebolt service account. You can either use an existing service account or create a new one.Optional: Create a New Service Account
If you prefer to create a dedicated service account for Metabase access, follow the steps from the official documentation: Create a Service Account ⚠️ NOTE: Ensure the service account is attached to a user to access the Firebolt account.Associate the public key with the Firebolt service account
-
Copy the contents of your public key file (
client-public.pemorfb-public.pem). - In Firebolt, run the following SQL to attach the public key:
Step 3: Create a Connection to Metabase
After setting up the Firebolt connector, use the following steps to create a connection between Metabase and your Firebolt database:- Open your Metabase instance’s home page in a web browser.
- Select Settings from the top-right menu of the Metabase interface.
- Select Admin from the dropdown menu.
- On the Admin page, select Databases in the top navigation bar.
- Select the Add Database button.
- From the Database Type dropdown list, select PostgreSQL.
-
Fill out the required connection details using the descriptions provided in the following table:
Host details
The host is based on your Firebolt region. Example:Confirm your region with: - Enable SSL by checking the Use a secure connection (SSL) option and make sure SSL mode is set to Require.
-
Enable Authenticate client certificate? and select the following files from Step 1:
- SSL Client Certificate (PEM):
fb.crtyou generated or a certificate you already had - SSL Client Key (PKCS-8/DER):
client-key.pemyou generated or a key you already had
- SSL Client Certificate (PEM):
- Select Save to store your database configuration.
- Verify the connection by confirming that Metabase displays a success message indicating that your Firebolt database has been added successfully. If the connection fails, double-check your settings and ensure all required fields are correct.
Additional Resources
For more information about Metabase configuration and troubleshooting, refer to the following resources:- Adding and Managing Databases — Official Metabase documentation on connecting to data sources and managing database connections.
- Troubleshooting Database Connections — Guidance on resolving issues when connecting Metabase to your databases.
- Troubleshooting Database Performance — Tips for identifying and addressing performance issues with connected databases.