🧪 Preview (Beta)
Suitable for production read workloads.
Most PostgreSQL driver features are supported; some PostgreSQL features may not yet be tested and could behave differently or not work in some tools.
Suitable for production read workloads.
Most PostgreSQL driver features are supported; some PostgreSQL features may not yet be tested and could behave differently or not work in some tools.

Lightdash integration with Firebolt
Lightdash is an open-source BI platform that enables teams to explore, visualize, and share insights on top of dbt projects. Lightdash relies entirely on dbt metadata and executes queries using standard database connectors. This guide explains how to connect Lightdash to Firebolt using the PostgreSQL protocol with mutual TLS (mTLS) authentication.Overview
Lightdash connects to Firebolt through the PostgreSQL-compatible endpoint exposed by Firebolt. Key characteristics of this integration:- Lightdash uses the PostgreSQL protocol
- Authentication is done using Firebolt service accounts
- Connections use mutual TLS (mTLS)
- Account and engine are provided via the username field
- Username use a triple identifier format:
<account>:<engine>:<service_account_id>
- Username use a triple identifier format:
- Lightdash relies on dbt to compile models and generate SQL
Prerequisites
Before starting, make sure you have:-
Lightdash
- Cloud or self-hosted deployment
-
Firebolt account
- With access to a database and engine
-
Firebolt service account
- Client ID and client secret
- A user associated with the service account
- Permissions
-
dbt project
- Models already built in Firebolt
Authentication and security
Lightdash connects to Firebolt using:- PostgreSQL protocol
- Firebolt service account credentials
- Mutual TLS (mTLS)
- Full server certificate verification (verify-full)
Generate mTLS certificates for Lightdash
Step 1: Generate certificates
Run the following script to generate all certificates required by Lightdash and Firebolt. This script:- Generates a client private key and certificate
- Downloads the Let’s Encrypt root CA used by Firebolt servers
- Derives a public key to attach to the Firebolt service account
Step 2: Configure the Firebolt service account
Attach the generated public key to your Firebolt service account:Connect Lightdash to Firebolt
Step 1: Create a Lightdash project
- Open Lightdash
- Click Create project
- Select PostgreSQL as the warehouse
- Choose Manual setup
Step 2: Configure the PostgreSQL connection
Fill in the connection details as follows. Host:pg.<region>.app.firebolt.io
- Replace
<region>with your Firebolt region (for example:us-east-1)
<account_name>:<engine_name>:<service_account_client_id>
- Where:
<account_name>is your Firebolt account name<engine_name>is your Firebolt engine name<service_account_client_id>is the client ID of your Firebolt service account
<service_account_client_secret>
DB name: <database_name>
Step 3: Advanced connection options (mTLS)
Expand Advanced connection options and configure:- Port:
5432 - SSL mode:
verify-full - SSL certificate: upload
fb-client.crt - SSL private key: upload
fb-client.key - SSL root certificate: upload
isrgrootx1.pem
Integrate with your dbt project
When prompted to integrate Lightdash with dbt:- Select your dbt project
Test and deploy
- Click Test connection
- Verify the connection succeeds
- Deploy the project
- Read dbt metadata
- Generate SQL queries
- Execute them against Firebolt via pg_fire