How Metabase validates database SSL certificates
A security team asking for verified rather than merely encrypted connections is asking for certificate validation: Metabase must check that the server it reaches presents a certificate chained to a root it trusts. Metabase can secure JDBC connections to databases with SSL and a root certificate, and that applies to the connection to its own application database as well as to warehouses. Encryption alone does not prove the server is the one you intended, so the design question is where the root certificate lives and how the driver is told to use it. Confirm, for your specific driver and Metabase version, which SSL parameters the driver accepts (for example, whether it verifies the hostname and whether it needs the certificate path or a trust store). Test the setting against a deliberately wrong certificate in a non-production environment before you rely on it.
For AWS RDS and Azure, the Metabase Docker image already includes certificate bundles: /app/certs/rds-combined-ca-bundle.pem for AWS RDS and /app/certs/DigiCertGlobalRootG2.crt.pem for Azure. Pointing the connection at these files is convenient, but you still need to confirm that the bundle matches the certificate authority your database endpoint actually uses, and that you have a process for updating it when the provider rotates roots. If you run a private PostgreSQL, MySQL or internal cloud database, the root certificate is your own organization's, so you mount it into the container yourself and reference that path in the connection settings. Keep the file read-only, track its expiry date, and record which Metabase version and driver were tested with it, because certificate handling can differ between releases and drivers.
What you need before configuring certificate validation
Certificate validation fails for predictable reasons: the wrong root certificate, a hostname the certificate does not cover, or a database port the Metabase host cannot reach. Gathering these inputs before you touch the configuration makes the failures easier to diagnose.
The CA certificate chain
Start with the certificate authority chain that signs your database server certificate. For managed services, this comes from the provider's current guidance. For databases on an internal PKI, your certificate team supplies the root and any intermediate certificates. Confirm you have the full chain, not only the leaf certificate the server presents. Metabase needs the root certificate it can trust, so check that the chain you hold terminates at that root. Confirm the chain with the owner of the database before you copy any file.
Metabase SSL docsMetabase version and deployment method
Record the exact Metabase version and whether you run it from the Docker image or a JAR file. The path to the certificate file, and how you mount or copy it, depends on the deployment method. Check the version against the support page before you plan changes, because end-of-life dates differ between LTS and non-LTS releases. A certificate change is a configuration change, so keep the version under change control with the rest of the deployment.
- LTS support window
- 14 months
Database hostname as certificate names
Write down the hostname your Metabase connection string uses, and compare it with the names listed in the database server certificate. Validation checks that the hostname matches the certificate's subject or subject alternative names. A connection through a load balancer, a private DNS alias or an IP address can fail even when the certificate is valid. If the names do not match, ask the database team to issue a certificate that covers the name Metabase uses, rather than disabling the check.
Bundled AWS and Azure certificates
The Metabase Docker image already includes /app/certs/rds-combined-ca-bundle.pem for AWS RDS and /app/certs/DigiCertGlobalRootG2.crt.pem for Azure. Before you rely on them, confirm they match your provider's current certificate guidance, since providers rotate roots. If your provider has moved to a newer root, you will need to supply that file yourself. Record which file each connection uses so the next rotation is not a surprise.
Network path to the database port
Confirm that the Metabase host can open a connection to the database host and port, including through any security group, firewall, or network policy in between. Certificate validation cannot start until the TLS handshake completes. Test from the same host and container network that runs Metabase, not from a workstation, because outbound rules often differ between them. Include the application database host too if you move it off the embedded H2 database.
Application database certificate scope
Metabase can secure its own application database connection with SSL and a root certificate, in the same way as a data source. Decide whether the application database uses a separate certificate file from your analytics connections. Keeping them separate lets you rotate one without touching the other. Note which connection each certificate protects in your runbook, since a single misconfigured file can block both.
How to configure a root certificate for a Metabase database connection
This sequence takes a database root certificate from download to a verified, validated TLS connection from Metabase. It ends with proof that Metabase accepts the correct certificate and rejects a wrong one.
Obtain and verify the root certificate
Get the root certificate from your database provider or your internal certificate authority, through the channel that provider documents, and not from an email attachment or a third-party mirror. Confirm the certificate's subject and issuer match what the database presents, and record its expiry date. Check the file opens as a PEM or DER certificate before you move on. Done when you can name the issuer and expiry of the file and it matches the server's certificate chain.
Check for a bundled certificate first
Before you copy anything, check whether your deployment already has the certificate. The official Metabase Docker image includes an AWS RDS combined CA bundle and an Azure root certificate under the certs directory, so an RDS or Azure connection may not need an extra file. Confirm the exact file names in the image you run, since the bundled set can differ between releases. Done when you know whether you need to add a file or can reference a bundled one.
Place the certificate where Metabase can read it
Copy the certificate into a path the Metabase container or host process can read, such as a mounted volume for Docker or a directory with restricted permissions on a host install. Make the file readable by the Metabase service user and keep it out of images and version control. Record the path, because the connection settings will reference it. Done when the file is listed in the running container or on the host with the expected owner and permissions.
Set the SSL options on the connection
In the database connection settings in the Metabase admin panel, or in the JDBC URL for connections defined that way, enable SSL and point Metabase at the root certificate file. Set the validation mode to verify the server certificate rather than accept any certificate, and keep the hostname in the connection matching the name on the certificate. Check the Metabase SSL certificate documentation for the exact option names for your driver before saving. Done when the saved settings show SSL on with validation enabled and the certificate path you recorded.
Restart Metabase to load the change
Restart the Metabase container or service so the JVM and driver read the certificate and any changed JVM or environment settings. Watch the startup logs for certificate or handshake errors and resolve them before testing the database. If Metabase runs in a cluster, restart each node in the same window so they use the same configuration. Done when Metabase starts cleanly and the logs show no TLS errors during startup.
Confirm a successful connection with validation on
Use the Test connection action in the database settings, then run a sync and a simple question against a non-sensitive table. Confirm the sync completes and the query returns rows, which shows the TLS handshake succeeded with validation enabled. Keep the validation setting on for this test rather than switching it off to get a result. Done when the connection test passes, the sync finishes, and a test query returns expected results.
Prove validation rejects a wrong certificate
In a non-production environment, point the connection at a different or deliberately wrong root certificate, or a hostname that does not match the server certificate, and run the connection test. The test should fail with a certificate or hostname verification error. Restore the correct file afterward and retest. Done when the bad configuration fails as expected, the correct configuration passes again, and both results are written down for your change record.
Record the expiry and set a renewal check
Note the certificate's expiry date and the owner responsible for renewal, then add a calendar or monitoring reminder well ahead of that date. Ask your database team to confirm whether the provider rotates the root certificate and whether your Metabase image or file needs updating when it does. Done when the owner, expiry date and reminder are recorded in your operations runbook.
Using the AWS and Azure certificates bundled in the Docker image
The Metabase Docker image already contains the two root bundles that AWS RDS and Azure database connections usually need. Inside the container, /app/certs/rds-combined-ca-bundle.pem holds the AWS RDS certificates and /app/certs/DigiCertGlobalRootG2.crt.pem holds the DigiCert Global Root G2 certificate used by Azure. If your database runs on one of those clouds and uses a standard managed endpoint, you may not need to copy any certificate files into the image. Point the SSL root certificate setting in the database connection at the bundled path that matches your cloud, then test the connection with certificate validation turned on. Confirm the path inside the exact image tag you run, because a future image could change its file layout.
Bundled files only help when your server certificate chains to one of those roots. Ask your database team which certificate authority issues the server certificate for your instance, and check whether the chain uses a private or custom CA, such as one used for a corporate PostgreSQL or MySQL deployment behind a cloud service. If it does, add that CA as a separate file and keep the bundled root for the cloud service. A failed handshake after you switch to the bundled path usually means the CA is different, not that the file is broken.
Mounting your own certificate file over a bundled path with the same name replaces the AWS or Azure trust store for every connection that uses it. Before you do that, open the file and confirm its subject, issuer and validity dates with openssl x509 or an equivalent tool, and compare it with the vendor's published bundle. A wrong or outdated file can either break connections or, if it contains extra trusted roots, widen the set of servers Metabase will accept. Mount custom CAs under a new path so the bundled files stay intact and the change is easy to review.
Certificate placement for PostgreSQL, MySQL and cloud databases
If your PostgreSQL or MySQL server presents a certificate issued by an internal certificate authority, Metabase has to trust that CA's root certificate before it can validate the connection. Metabase's SSL guidance covers connections to customer databases and to its own application database, so the same placement and checks apply to both. Your team controls every part of this chain, which means the work is mostly about making sure the files, host names and expiry dates stay consistent.
- Root certificate location: Place the root certificate in a file the Metabase process can read. In a container deployment, mount it into the container. For a JAR installation, place it on the host and reference it from the Metabase configuration.
- Server certificate host name: Issue the database server certificate with the host name or DNS alias that Metabase uses in its connection. A mismatch causes host name validation to fail.
- SSL mode: Choose the mode that validates both the certificate chain and the host name, not only the encryption. Confirm the exact parameter names and values for your driver and database version in the Metabase SSL documentation and the driver documentation.
- Expiry tracking: Record expiry dates for both the server certificate and the internal CA, and plan the restart or file replacement step that follows each renewal.
- Negative test: Run a connection with an untrusted root and confirm it fails.
A successful connection shows that the certificate was trusted, but only a failing test with the wrong root proves that validation is enforced.
For AWS RDS and Aurora, the Metabase Docker image already includes the AWS combined CA bundle at /app/certs/rds-combined-ca-bundle.pem. That file lets a connection to an RDS or Aurora endpoint validate the server certificate without you sourcing the AWS root yourself. The points below cover the cases where the bundled file is enough and the cases where it is not.
- Bundled path: In a Docker deployment, reference
/app/certs/rds-combined-ca-bundle.pemin the SSL settings for the RDS or Aurora connection. - Non-container installs: Download the current combined bundle from AWS, place it on the Metabase host, and confirm the file name and location in AWS documentation.
- Endpoint choice: Connect with the instance or cluster endpoint, and for Aurora confirm which endpoint type you use, since the host name must match the certificate.
- Bundle currency: AWS can rotate its certificate authorities. Track the bundle version, and update the file or the Metabase image on a schedule that you set and test.
- Verification: From inside the Metabase container, confirm the file exists at the path and run a connection test that fails when the file is missing.
IAM database authentication is a separate decision and changes how credentials are supplied, so confirm the certificate setup independently of it.
The Metabase Docker image includes /app/certs/DigiCertGlobalRootG2.crt.pem for Azure connections. Before you rely on it, confirm that the Azure database service and version you run chain to that root. Azure services can use different certificate chains across products and over time, so the bundled file is a starting point that needs verification against Microsoft's current documentation for your service.
- Bundled root: Point the SSL settings for the Azure connection at
/app/certs/DigiCertGlobalRootG2.crt.pemin the Docker image, after confirming the chain matches your service. - Different chain: If your service presents a chain that does not end at that root, obtain the required root from Microsoft's guidance and supply it as a separate file.
- Host name: Use the server's fully qualified host name in the Metabase connection so the name matches the certificate.
- Service-specific guidance: Confirm the requirements for your database engine and version, since PostgreSQL and MySQL offerings can differ.
- Renewal watch: Monitor Microsoft announcements about root or intermediate certificate changes, and plan the image or file update before the old root is retired.
After setup, test from the Metabase host with the same file path the application uses, and confirm that a connection with a mismatched root fails.
Managed databases from other providers do not have a bundled certificate in the Metabase image, so you supply the provider's root file yourself. The principle is the same as for an internal CA: the file must chain to the certificate the server presents, and the host name must match. The difference is that the root comes from the provider's documentation, and you own the process of keeping it current.
- Provider root file: Download the root or CA bundle from the provider's documentation, and confirm it is the current version before you deploy it.
- Client certificates: Confirm whether the provider also requires client certificates in addition to server validation, because that changes the Metabase settings.
- Host and mode: Confirm which host name the certificate covers and which SSL mode the provider supports for your engine and version.
- Application database: The same validation applies to the Metabase application database. When you configure PostgreSQL or MySQL for it, set up SSL for that connection as well, as described in the application database configuration guide.
- Change control: Store the root file under version control or in your configuration management, with an owner and a renewal date.
Before go-live, run a connection test with a certificate that should fail, and confirm that the production connection succeeds only with the provider's chain.
Validating the Metabase application database connection
The application database is a separate connection from the data warehouse connections you add later, and Metabase can secure it with SSL and a root certificate in the same way. The ordering rule matters most here: the certificate must be in place before Metabase starts, because the application database connection is opened at startup. If you point Metabase at a PostgreSQL or MySQL host with certificate validation switched on but the root certificate missing from the container or host, the instance will fail to come up, so mount the certificate file and set the connection options first, then start the service.
The default embedded H2 application database runs inside the Metabase process and has no network connection to validate, so there is no certificate step to plan for it. H2 is meant for demos, though. PostgreSQL is the recommended production choice, and MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4 are also supported. Confirm the exact connection properties for your database engine and version in the application database configuration docs before you write them into your deployment, since SSL parameter names differ between drivers.
Plan two checks. First, confirm that your PostgreSQL or MySQL server presents a certificate chained to the root you are trusting, and that the hostname Metabase uses matches a name on that certificate. Second, if you are moving from H2, the load-from-h2 migration must be run with the same Metabase version that last wrote the H2 file, and that step should also use the validated connection. Record the root certificate's owner and expiry date, because an expired root will stop application database connections at the next restart, and the rotation steps belong in your operations runbook.
How the certificate chain is checked on each connection
The check starts when Metabase opens a JDBC connection, either to its application database or to a data warehouse. The database server presents its certificate, and the Metabase JDBC driver validates it against the root certificate file that Metabase has been configured to trust. Each connection is checked separately, so a valid chain for the application database does not prove anything about the warehouse. Check that the trusted root matches the database's issuing authority and that the connection stays inside the boundary you intend.
Each Metabase database connection validates the server certificate separately against the trusted root.
Which certificate file applies to which connection
This table maps each Metabase connection to the certificate source it needs, the setting your team changes, and a check to confirm the connection validates the server certificate. Read each row as a decision: find the connection type, use the listed file or CA, then run the verification check before moving to production. Where the supplied documentation does not name a setting, the row says to confirm it with the database team.
| Connection | Certificate source | Setting to change | Verification check |
|---|---|---|---|
| Application database (PostgreSQL or MySQL) | Mounted custom root certificate from your internal CA, or the root certificate your database platform publishes | SSL and root certificate settings for the application database connection, confirm exact names in the configuration docs | Restart Metabase and confirm it starts and reads its existing content without falling back to H2 or failing to connect |
| AWS RDS source database | Bundled file /app/certs/rds-combined-ca-bundle.pem in the Metabase Docker image | Point the source connection's root certificate setting to the bundled path, confirm the exact field with the database team | Test the connection in the Metabase admin panel and confirm it succeeds with SSL required on the database side |
| Azure source database | Bundled file /app/certs/DigiCertGlobalRootG2.crt.pem in the Metabase Docker image | Point the source connection's root certificate setting to the bundled path, confirm the exact field with the database team | Test the connection and confirm the Azure endpoint presents a chain that the DigiCert root validates |
| Self-managed PostgreSQL or MySQL source | Root or internal CA certificate mounted into the container, not in the bundled set | Set the root certificate path to the mounted file and require SSL on the connection, confirm the setting names with the database team | Test the connection with a certificate that does not match the CA and confirm the test fails, then confirm the correct file succeeds |
| Cloud database not listed above | Vendor-published root certificate, mounted as a custom file, unless a bundled file is documented | Confirm with the vendor whether a root certificate is required and which chain it uses | Run a test connection and confirm validation passes without disabling certificate checks |
Security settings that keep validation meaningful
Encryption on a database connection only protects traffic if Metabase also checks who it is talking to. The four cards below cover the settings and habits that keep server certificate validation doing that job, from the first working connection through to the day a provider rotates its certificate.
Disabling validation to get a connection working
When a connection fails with a certificate error, the quickest fix is often to turn off verification in the JDBC settings. That keeps the traffic encrypted but means Metabase will accept any certificate the server presents, including one from an attacker sitting on the network path. Treat a disabled check as a defect to fix before go-live, and make the change review part of the connection request so it is not approved by default. Confirm the failure cause first, usually a missing or wrong root certificate.
SSL certificate docsTrusting an unverified root certificate
Pointing Metabase at a root certificate file only helps if that file came from the database provider or your internal CA. A certificate downloaded from a forum or copied from another host can vouch for a server you did not intend to reach. Obtain the root from the provider's documentation or your PKI team, check its issuer and fingerprint against that source, and record where it came from. Confirm which root signs your database endpoint before you choose the file.
Leaving stale CA files after rotation
Cloud providers rotate their root and intermediate certificates on published schedules, and a bundle that was valid last year may stop validating current endpoints. Metabase keeps the certificate file path in its connection settings, so a rotation can break connections without any change on the Metabase side. Track the provider's rotation notices, test each database connection after a planned update, and keep the bundled file list for your image version in your runbook. Confirm the current bundle with the provider before relying on the copy shipped in the image.
Storing passwords with weak transport settings
A database password stored in Metabase is only as protected as the connection that carries it. If SSL is off, or on but unvalidated, the credential can be read or replayed by anyone who can see the network path. Require encrypted, validated connections for every source that holds a stored password, and restrict the Metabase user to read-only access. Where the provider supports it, compare this design with IAM-based authentication before deciding which secret to keep.
Why a Metabase SSL connection fails and how to fix it
This table lists the failures teams most often hit when Metabase validates a database server certificate, with the likely cause and the fix for each. Read it by matching the symptom you see to the row, then check the cause column before changing settings. The main takeaway is that most failures come from the certificate file, its location or its trust chain, not from Metabase itself.
| Failure | Likely cause | Fix |
|---|---|---|
| Certificate chain not trusted | The server certificate was issued by a CA that is not in the root certificate Metabase is using, or the chain is incomplete. | Obtain the root or intermediate CA bundle from your database provider or internal PKI, and set it as the root certificate in the connection's SSL settings. |
| Hostname mismatch | The host name in the connection string does not match a name in the server certificate, such as an IP address or an internal alias. | Connect using the host name listed on the certificate, or reissue the server certificate with the name your clients use. |
| Wrong or outdated CA file | The file is for a different provider, region or era, so it does not sign the server's current certificate. | Confirm which CA signed the server certificate, then replace the file with the matching bundle from the provider's current documentation. |
| Certificate file not visible in the container | The file was copied to the host but not mounted into the Metabase container, or the path in the settings is wrong for the container filesystem. | Mount the file into the container with a volume and reference the path as seen inside the container, then restart Metabase and retest the connection. |
| Application database fails to start after adding a root | The root certificate was added to the application database connection, and the file path, format or trust is wrong, so Metabase cannot reach its own database at startup. | Check the certificate path and file contents on the Metabase host, confirm the application database server uses that CA, and restore the previous configuration to get the instance running before retrying. |
| Connection works in testing but not after a CA rotation | The provider rotated the CA that signs its server certificates, and the bundle stored in your deployment still trusts only the old root. | Subscribe to the provider's certificate notices, update the bundle in every environment, and retest each connection after the change, including the application database. |
Questions teams ask before setting up Metabase SSL validation
Can our team set up Metabase SSL certificate validation without outside help?
Yes, for a small number of databases with a clear certificate chain, an engineer who knows the database and the Metabase deployment can usually do it in-house. The work is configuration rather than new infrastructure: you add the root certificate for the database connection, enable SSL with validation in the connection settings, and test each connection. Teams often bring in a partner when they have many databases, several certificate authorities, or no one who can confirm the chain end to end. Ask whether the people who will own the setup after go-live have time to run the tests and document them.
What makes the effort for SSL validation larger or smaller?
The main drivers are the number of databases, how mature your certificate management is, and whether the databases are managed or self-managed. Each connection may use a different certificate authority, and each needs its own verification. Managed cloud databases often publish their root certificates, which simplifies the work, while self-managed servers may need certificates issued by an internal CA that you must locate and distribute. Change control also matters: restarting Metabase to load a new certificate needs a maintenance window in many environments, and the approval process can take longer than the technical change itself.
Are the certificates bundled in the Metabase Docker image enough?
They cover only the cases the image was built for. The Metabase Docker image includes /app/certs/rds-combined-ca-bundle.pem for AWS RDS and /app/certs/DigiCertGlobalRootG2.crt.pem for Azure. If your database is on one of those services and uses the standard chain, you can point the connection at the bundled file. Databases on other clouds, on-premises PostgreSQL or MySQL servers, and databases signed by a private CA need their own root certificate. Confirm the certificate your database actually presents, because a bundled file that does not match the chain will fail validation.
How should we handle certificate rotation after go-live?
Plan rotation as a recurring task with an owner, not a one-time setup. Track the expiry date of each root and intermediate certificate, and check whether a renewal keeps the same root or introduces a new one. When the trusted root changes, the Metabase certificate file must be updated and Metabase restarted, so schedule that with the database team. Bundled files in the Docker image are replaced when you upgrade the image, so confirm that the version you run still includes the certificate you need. Test the new chain against a non-production Metabase before the change reaches production.
Does the application database need the same SSL setup as data connections?
It can, and it is often overlooked. Metabase can secure JDBC connections to its own application database with SSL and a root certificate, in the same way as connections to your data sources. If Metabase still runs on the embedded H2 database, there is no network connection to secure, so the question does not apply yet. Once you move to PostgreSQL or MySQL for production, treat the application database connection as a separate item in your validation plan, with its own certificate and restart steps.
What does the client need to provide for an SSL validation engagement?
Expect to provide a list of databases with their type and hosting, access to the Metabase deployment and its configuration, the root or CA certificates your database teams use, and a window for test restarts. You also need named owners on the database side and on the platform side who can approve changes. Ask the partner to confirm in writing which of these items they need before work starts, so the scope and timeline reflect what is available in your environment.
Can DeployOpen confirm that SSL validation works in our environment?
DeployOpen can plan the work, implement the certificate configuration in infrastructure you control, and test each database connection against the agreed scope, then document the setup and the rotation steps. Verification is limited to the environments and connections in the written scope. DeployOpen does not issue audit reports or certifications. If your compliance team needs formal assurance of the control, the independent auditor you engage will decide what evidence it accepts.
What should we check first to see whether validation is already in place?
Start by listing each connection Metabase uses and recording whether SSL is enabled and whether the server certificate is validated, not just encrypted. Next, identify the root or intermediate certificate each database presents and confirm it matches the file you plan to use. Finally, check whether any connection points to a file that has expired or to a bundled certificate that does not match the database. Encrypted but unvalidated connections are a common finding, so review each one rather than assuming the setting is correct.
How DeployOpen scopes and delivers Metabase SSL configuration
DeployOpen treats Metabase database connections with SSL certificate validation as a scoped change to your connection configuration, not a one-line setting. We map every database Metabase reaches, confirm which trust chain each one needs, and deliver tested connections in the infrastructure you control, including the application database.
How we scope
- Inventory every database connection Metabase uses, including PostgreSQL, MySQL and cloud-hosted sources, and the application database.
- Confirm with your database team which root or CA certificate each server presents and where your trust chain is managed.
- Agree the scope in writing before work starts, listing each connection, the certificate source and the verification test to pass.
How we build
- Place the root certificate where the Metabase container or JAR can read it, and record the JDBC SSL settings for each connection.
- Check whether the bundled AWS and Azure certificates in the Docker image cover your servers, and add any other roots you need.
- Test each connection with certificate validation enabled and confirm that a connection to an untrusted server fails as intended.
How we hand over
- Deliver a configuration record per connection with certificate paths, SSL mode, file ownership and the owner of each certificate.
- Document the renewal steps and the expiry date process so certificate rotation does not silently break saved database connections.
- Walk your platform and database teams through the verification tests so they can repeat them after upgrades or certificate changes.
How we support
- Offer ongoing support and upgrades as a retainer, including retesting connections after Metabase upgrades or certificate rotation.
- Re-run the connection tests when you add a database, change a certificate authority or move the application database.
- Keep the configuration record current so your security and compliance reviewers can trace how each connection validates its server.

