Metabase self-hosted security checklist

A production hardening checklist for self-hosted Metabase, covering what to configure, what depends on your plan, and what to confirm before analysts log in.

On this page

Why a Metabase self-hosted security checklist matters before launch

A self-hosted security checklist is a short list of settings, controls and decisions you verify on your own Metabase deployment before anyone signs in with access to company databases. It covers the application, its application database, the secrets that protect stored data, the network path to the instance, TLS, identity, data access, logging and the hosting platform underneath. It is needed before users log in because the first login is often the moment dashboards start pulling live data from warehouses and operational systems, and mistakes made at setup (an exposed port, a default configuration, an unmanaged admin account) are easier to fix now than after credentials and saved questions have spread through the organization.

Metabase's own security guide, Security best practices for a self-hosted Metabase, points to an established framework such as the NIST Cybersecurity Framework 2.0 for securing the infrastructure around the application. The checklist on this page follows the topic areas in that guide, so you can trace each item back to a documented recommendation. Metabase's guide and this checklist are inputs to your review, not guarantees: the application's behavior depends on how you deploy, configure and connect it, and your own security and compliance teams should map the controls to the frameworks your organization follows.

Before you start, confirm which edition and plan you are running, because some controls depend on it. Security Center notifications, configuration-file API keys and SSO features are tied to paid plans, and the open source edition handles several items differently. Confirm the Metabase version you will deploy against the Metabase version support page, and decide who owns each layer (application, database, secrets, network, identity and hosting) so that every item in the checklist has a named owner and a verification step.

Checklist items and which plan each control depends on

This table maps each Metabase hardening area to what you configure, when it matters most, and whether it is available on Open Source or needs a Pro or Enterprise plan. Read the last column before you fix the design, because identity and permission controls are the ones paid plans gate. Plan details come from Metabase's published plan list, so confirm current entitlements on the pricing page before you buy.

Checklist areaWhat to configureWhen it matters mostPlan requirement
PatchingPick an LTS or current release line, subscribe to security notices, and write an upgrade runbook for security releasesBefore go-live and after every security release, especially near an end-of-life dateOpen Source with GitHub advisories. Confirm which notifications your plan receives
Secret key and encryptionSet the encryption key from the environment, store it in a secrets manager, and back it up separately from the databaseBefore saving database credentials or any stored connection secretsConfirm for your edition before rollout
Application databaseReplace the embedded H2 database with PostgreSQL or a supported MySQL or MariaDB version, with encrypted backupsBefore any production users or connected data sources are addedOpen Source. Metabase recommends PostgreSQL for production
TLS and network exposureTerminate TLS at a reverse proxy, redirect plain HTTP, and allow only the proxy and admin paths inboundBefore the first user signs in and before the instance is reachable from the internetOpen Source and paid plans
SSO and authenticationEnable Google sign-in or LDAP, or SAML, OIDC, JWT or SCIM with your identity provider, and disable local logins where policy allowsBefore onboarding users, because local accounts persist after SSO is addedGoogle sign-in and LDAP on Open Source. SAML, OIDC, JWT and SCIM need Pro or Enterprise
Groups and data permissionsMap groups to least-privilege data and collection permissions, and set row and column restrictions where neededBefore sharing dashboards across teams or connecting sensitive databasesRow and column permissions need Pro or Enterprise. Group-level data permissions are the baseline on other plans
Public links and embeddingDisable public sharing unless a use case is approved, and review each embed type and its signing setupBefore any dashboard is shared outside the organizationGuest embedding works on Open Source. SSO-based embedding needs Pro or Enterprise
API keys and telemetryScope API keys to specific groups, rotate them on a schedule, and turn off anonymous usage data and update checks where policy requiresWhen automation is added and before the instance handles regulated dataConfirm key features and outbound request behavior for your plan
Logging, auditing and backupsShip application logs to your SIEM, test restores of the application database, and keep a pre-upgrade backup for rollbackBefore the first upgrade and before any audit or access review requestLogs and backups are available on Open Source. Usage analytics and auditing need Pro or Enterprise

How to work through the hardening sequence

This sequence takes a self-hosted Metabase from a default install to a hardened production instance in an order that avoids rework, with a check at each step so you know it is finished before moving on. Each step produces evidence your security and platform teams can review.

  1. Confirm the version and support window

    Record the Metabase version you run and compare it with the release list on the version support page. Confirm whether you run an LTS release or a non-LTS release, and note its end-of-life date, since non-LTS releases usually reach end of life after about two months while LTS releases are supported for 14 months. Your platform lead owns this step. It is done when you have a written version, its support status and a named owner for the next upgrade decision.

  2. Move the application database off embedded H2

    Metabase's embedded H2 database is intended for demos, so move the application database to PostgreSQL, or MySQL 8.4.0 or MariaDB 10.6.0 or later with utf8mb4, using Metabase's documented load-from-h2 path. Run the command with the same Metabase version that last wrote the H2 file. The database administrator and the Metabase owner perform this together. It is done when Metabase starts against the new database, the admin console shows the expected users and questions, and the H2 file is archived rather than left in use.

  3. Set up backups before any upgrade

    Schedule regular backups of the application database and confirm that a restore works in a non-production environment. Metabase recommends backing up the application database before upgrades, and rollback is done by restoring that backup or running migrate down with the newer JAR. Your database team owns the backup job and the restore test. It is done when a restore into a scratch database produces a working Metabase login and a dashboard that renders.

  4. Configure TLS and the reverse proxy

    Place Metabase behind a reverse proxy that terminates TLS with certificates from your approved authority, and disable plain HTTP access to the application. Confirm that the site address Metabase is configured with matches the external HTTPS URL users see. Your network or platform team owns this step. It is done when a scan of the external endpoint shows only the expected TLS versions and ciphers and a plain HTTP request is refused or redirected.

  5. Restrict network exposure

    Limit inbound access to the proxy, block direct access to the Metabase port, and allow outbound connections only to the data sources, identity provider and mail relay you have approved. The Metabase security guide points to an established framework such as the NIST Cybersecurity Framework 2.0 for infrastructure controls around the application. Your security team reviews the rules. It is done when a test from outside the approved network cannot reach the Metabase port or the application database, and the firewall rules are documented.

  6. Connect identity and map groups

    Replace local accounts with your identity provider where your plan allows it. Google sign-in and LDAP work on open source and Starter, while JWT, OIDC, SAML, advanced LDAP group sync and SCIM need Pro or Enterprise. Map identity provider groups to Metabase groups and remove shared or unused accounts. Your identity team and Metabase administrator own this. It is done when a user removed from the identity provider loses access, and a test user only sees the groups you assigned.

  7. Set data permissions and review public links and embedding

    Assign data, collection and row or column permissions to the groups you mapped. Row and column level permissions are included only in Pro and Enterprise, so confirm your plan before relying on them. Then review public links and embedding, turn off any public sharing you do not need, and confirm that embedded content requires authentication. Your Metabase administrator owns this. It is done when a test user from each group can see only their assigned data, and an inventory lists every public link and embed with an owner.

  8. Scope API keys, review telemetry and configure logging

    Create API keys only for named automation, assign each key to a group with the minimum data access it needs, and store them in a secrets manager rather than in code or logs. Review anonymous usage data and update check settings so outbound traffic matches your data handling policy, then configure application logs to flow to your central logging platform. Your platform and security teams own this step. It is done when an inventory lists each key with its owner and scope, outbound traffic from the Metabase host matches the approved list, and a test login appears in your central logs.

  9. Run a security test and retest the findings

    Scope a security test that covers authentication and SSO, permission bypass between groups, public links, embedding, API keys and the hosting stack, then fix the findings and retest them. Use this checklist as the baseline the tester checks against. Your security team commissions the test and the Metabase owner resolves findings. It is done when the report's high and medium findings have fixes and passing retests, and the checklist results are stored with the report as evidence.

Patching and secret keys: the first controls to set

Patch cadence is the first control to decide on a self-hosted Metabase, because every release carries bug fixes and security updates only until its end-of-life date. Metabase's version support page sets the model: LTS releases are supported for 14 months, while non-LTS releases usually reach end of life after about 2 months. Metabase 64 is an LTS line, published on 16 September 2026 with end of life on 1 December 2027, so an instance on it has a fixed window to patch. Choose an LTS line deliberately, record its end-of-life date in your asset register, and confirm the current support table before you commit, since it changes as new releases ship. Non-LTS versions suit test environments, not systems holding regulated data.

Upgrades are where most self-hosted Metabase outages start, so write the runbook before the first security release arrives. Back up the application database first, since the migrations run automatically on startup. Reduce a cluster to a single node for major upgrades because of the migration lock, and upgrade release by release if the instance is older than version 40. Plan rollback in advance: the recommended path is restoring the pre-upgrade application database backup, and running the migrate down command with the newer JAR is the alternative. Test this on a copy of production data, and record how long the restore took so the security window is realistic.

The encryption key is a secret you must protect and back up as carefully as the application database itself. If MB_ENCRYPTION_SECRET_KEY is lost or changed without a planned rotation, encrypted database connection details and other protected values become unreadable, so store it in your secrets manager, keep it out of the JAR's environment files in version control, and restrict who can read it. The procedure for enabling encryption on an existing instance, rotating the key and recognizing startup errors that signal tampering is covered in the sibling topic on encrypting and rotating the Metabase encryption key, so follow that guide rather than improvising a change here.

Security risks the checklist guards against

A self-hosted Metabase sits between your databases and the people who query them, so a weakness in its admin surface, storage, credentials, sharing or permissions exposes data beyond the instance itself. Each card below names one control the checklist covers and what to verify in your own deployment.

Exposed administrative endpoints

The Metabase admin console and API are reachable wherever the instance is reachable, so a broad network path turns a login page into an attack surface. Confirm that the instance sits behind a reverse proxy with TLS, that admin paths are limited to approved networks or identity-aware access, and that the port Metabase listens on is not published directly to the internet. Test the exposure from outside your network, not only from inside your configuration files.

Security best practices

Default application database storage

Metabase ships with an embedded H2 application database meant for demos. That file holds users, saved questions, dashboards and connection settings, so it needs the same backup, access control and encryption planning as any production database. Confirm that the application database runs on PostgreSQL or MySQL in infrastructure you control, that its file system permissions are restricted, and that restores have been tested.

Application database docs

Long-lived API keys in scripts

Automation that calls the Metabase API often uses a key copied into a script, CI job or cron file and never rotated. A leaked key then carries the permissions of the account behind it, which may be broader than the job needs. Confirm that each automation has its own key tied to a group with the narrowest permissions, that keys are stored in a secrets manager rather than repositories or logs, and that a rotation date is recorded for each one.

Public links that outlive their purpose

Public links make a dashboard or question readable by anyone who holds the URL, with no Metabase login. Links created for a one-off report can remain active long after the audience has changed. Confirm who is allowed to create public links, review the list of active links on a schedule, and remove any link whose owner or purpose can no longer be identified. Treat public links as an exception that needs a documented reason.

Outbound telemetry from the instance

A self-hosted Metabase can send anonymous usage data, run update checks and, on paid plans, send token validation requests to Metabase's servers. Whether those connections are acceptable depends on your outbound policy and what each request contains. Confirm which outbound settings are enabled in your instance, check them against your network egress rules, and document the decision so the reasons remain available to reviewers.

Over-broad group permissions

Metabase grants access through groups, so a user added to a broadly scoped group can query tables they were never meant to see. Data and collection permissions can also be set more widely than intended when they are changed in bulk. Confirm that groups map to documented roles, that the All Users group does not hold access to sensitive databases, and that access reviews compare group membership against your identity provider. Row and column level permissions are a paid feature, so confirm which plan you need before relying on them.

People and groups docs

Authentication choices by plan and identity provider

On the Open Source and Starter plans, sign-in is limited to local Metabase accounts, Google sign-in and LDAP. Single sign-on is not included on these plans, so the identity provider you already run cannot be the primary control for Metabase access. Access control depends on how accounts are created, disabled and reviewed inside Metabase itself, which makes the account lifecycle a manual process you must own.

  • Local accounts: Passwords and user records live in Metabase, so you must set a password policy, decide who creates accounts, and document how they are disabled.
  • Google sign-in: Anyone with a valid account in the allowed Google domain may be able to reach the sign-in flow, so confirm which domains are permitted and whether self-signup is turned off.
  • LDAP: Directory bind credentials and search filters decide who can log in, so restrict the bind account to read-only access and test that disabled directory users are refused.
  • Deprovisioning: Removing someone from the directory or Google does not remove their Metabase account automatically on these plans, so add an offboarding step to your access review.

Confirm with the identity team which directory is the source of truth, who approves new accounts, and how often accounts are reviewed.

Where the trust boundaries sit in a self-hosted Metabase

The diagram starts with users reaching a reverse proxy that terminates TLS at the network edge. The proxy hands requests to the Metabase JAR in the application tier, which reads and writes its application database in the data tier and sends queries to the warehouses it analyzes. Metabase also calls out to the identity provider for sign-in and to external services for telemetry and license validation. Check each hand-off: who can reach the proxy, which credentials the JAR holds for the application database and warehouses, and which outbound paths your firewall allows.

Trust zones and data paths between users, Metabase, its data stores and external services.

Limits to confirm in your environment

This checklist sets out Metabase settings and the controls around them, but several parts of the final posture live outside the application. Confirm the items below before you treat the checklist as complete, and keep the evidence for each one with the system it describes.

Reverse proxy and firewall rules

Metabase's own settings cannot tell you which ports are reachable from the internet, which headers your proxy forwards, or whether TLS terminates where you expect. Export the actual proxy configuration and firewall rules, then test from outside your network to confirm that only the intended paths reach the application. Check the current Metabase deployment and hosting documentation for the exact proxy and header requirements of your version, since these change between releases.

Security best practices

Cloud account and network controls

Security groups, IAM roles, storage bucket policies and private endpoints sit in your cloud accounts or data center, outside the Metabase application. A review of the application can pass while an over-permissive role or a publicly readable backup bucket exposes the same data. Ask the platform or cloud team for a current export of these controls and record who approved each exception.

Warehouse-side access enforcement

Metabase applies its own group, data and collection permissions, but your data warehouses may hold their own roles, row policies and masking rules that Metabase either respects or bypasses depending on how the connection is configured. Confirm for each connected database which account Metabase uses, what that account can read, and whether a warehouse policy would still apply if Metabase permissions were misconfigured.

Telemetry and plan-dependent settings

Which telemetry, update check and token validation options you can change depends on your edition and plan, and the list of available settings changes as the product changes. Confirm with Metabase which outbound requests your version makes, which settings are exposed on your plan, and what an air-gapped or restricted egress environment will break before you make the changes in production.

Metabase pricing

Auditor acceptance of the evidence

Logs, configuration exports and screenshots only help if the audit team accepts them as evidence for the control they are meant to support. Agree the evidence format, sampling period and retention with your auditor or certification body before collecting it. Confirm whether the auditor expects the controls to operate across a fixed period, not only on the day of the review.

Attestation stays with auditors

DeployOpen plans, configures and documents controls and prepares evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations. Treat this checklist as preparation input for the assessment, and ask your auditor which framework version and control mapping they will use.

Questions teams ask before hardening Metabase

How much effort does a Metabase hardening review take?

The effort depends mostly on four things: your plan tier, the number of data sources, how identity is integrated, and where the instance is hosted. A single-node open source instance with one PostgreSQL application database and one warehouse connection is a much smaller job than a clustered deployment with SAML, several data sources and embedded analytics. No duration figure is supplied for this work, so ask any provider for a written estimate that lists each hardening area, the environments covered and the number of review sessions. Ask how they will split time between configuration review, testing and documentation.

Which plan tier changes the hardening work?

The plan tier decides which security features you can use at all. According to the Metabase pricing page, SSO, row and column level permissions, multi-tenant data segregation and usage analytics and auditing are included only in the Pro and Enterprise plans, not in Open Source or Starter. Open source and Starter support Google sign-in and LDAP, while SAML, OIDC and SCIM need Pro or Enterprise. Confirm current pricing and feature availability directly with Metabase before you finalize the design, because the controls you can apply depend on what you license.

Can our own team harden Metabase without a partner?

Yes, many teams do this in-house, provided they have the right skills. The work needs Linux and container administration, PostgreSQL operations, TLS and reverse proxy configuration, an identity administrator who understands SAML or OIDC, and someone who can review database permissions and logs. Metabase's own security guide points to an established framework such as the NIST Cybersecurity Framework 2.0 for the surrounding infrastructure, which gives your team a structure to work from. Decide early who owns each control and who will re-check it after each upgrade.

What do we need to provide for a hardening engagement?

Expect to provide access to the environment, an identity administrator, named data owners and a change window. Environment access usually means read access to the host or cluster, the reverse proxy, the application database and the Metabase admin console, with credentials handled under your own policies. Identity administration is needed for SSO and group mapping. Data owners confirm which groups should see which databases, and a change window lets you restart the service and apply configuration safely. Ask the provider to list these inputs in the written scope before work begins.

How do upgrades and backups fit into hardening?

Upgrades and backups are part of hardening, because patched software and a tested restore path are both security controls. Metabase runs application database migrations automatically during upgrades. The upgrading documentation recommends backing up the application database first, reducing a cluster to a single node for major upgrades because of a migration lock, and upgrading release by release from versions older than 40. Rollback is done by restoring the pre-upgrade application database backup, which is the recommended path, or by running the migrate down command with the newer JAR. Check the version support page for the end-of-life date of your current release before scheduling the work.

Should a security test come before or after launch?

Run a configuration hardening review before launch and a security test after it, then repeat the test after significant changes. The hardening review confirms settings such as authentication, TLS, network exposure and logging. A penetration test checks whether those settings hold up under attack, including permission bypass between groups, embedding tokens, public links and API keys. Testing a instance that has not been hardened wastes effort on known gaps. Ask for the test scope in writing so you know which permission and authentication paths are covered.

What does a fixed-scope engagement cover?

A fixed-scope engagement covers the scope, deliverables and timeline agreed in writing before work starts. For a Metabase hardening engagement, that scope should name the hosting stack, the application database, the identity integration, the data sources in use, the logging and monitoring setup, and the documentation you will receive. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. Ongoing support, upgrades and continuous testing are available as retainers. DeployOpen does not publish a price list, so a quote follows from the written scope, and you should ask for each deliverable and change request to be priced separately.

How DeployOpen scopes a Metabase hardening engagement

A hardening engagement starts with a written scope that names the systems, controls and evidence to be covered before any change is made. The four stages below connect a review of what is running today with changes made on infrastructure you own, and end with testing that confirms the changes held.

Review the current deployment

We start by reading how your Metabase is actually running: the version and patch line, where the application database lives, how users sign in, which groups hold which data permissions, and which outbound connections and public links are enabled. The output is a gap list tied to each checklist item, with the owner and the change needed. Ask for the review to cover the reverse proxy, the database host and the container or VM configuration, because weaknesses often sit outside Metabase itself.

Security best practices

Implement agreed controls

Changes are limited to the items in the signed scope and are made on infrastructure you control, including your cloud accounts, data centers or air-gapped networks. Typical work covers the encryption secret key, TLS termination, network exposure, API key scope, telemetry settings and log forwarding. Each change is recorded with the before and after state so your team can reproduce it. Confirm which items depend on your plan, because some controls such as SSO and row-level permissions are paid features.

Prepare compliance evidence

We prepare the configuration records, access lists, change history and procedures that your compliance team needs for a control review. This evidence supports your own assessment, but DeployOpen does not issue audit reports, attestations or certifications, and independent auditors or certification bodies make those determinations. Ask which control framework your assessor uses so the evidence is mapped to the right control identifiers. Metabase's own security guidance points to the NIST Cybersecurity Framework 2.0 for the surrounding infrastructure.

Retest and support over time

After the changes are in place, we retest the agreed items to confirm they work as intended, then report any remaining findings with fixes. Retesting is a fixed step in the scope, while ongoing patch review, upgrades and continuous testing can be added as an optional retainer. Ask for the retest criteria in writing before work starts, and decide who owns the upgrade runbook once the engagement closes, since Metabase releases move on a fixed support calendar.

LTS support window
14 months

How DeployOpen delivers Metabase security hardening

DeployOpen approaches the Metabase self-hosted security checklist as a fixed-scope piece of work inside your own infrastructure, whether that is your cloud accounts, data centers or air-gapped network. We agree which checklist items apply to your deployment, implement them, test the result and document what your security and compliance teams need to review.

How we scope

  • Review your current Metabase edition, version, application database and hosting stack before any change is proposed
  • Agree in writing which checklist areas are in scope, such as patching, secret keys, TLS, public sharing and logging
  • Confirm which hardening steps depend on a paid plan, so licensing decisions are made before the build starts
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins

How we build

  • Apply configuration for secret keys, encryption, TLS termination and network exposure in your environment
  • Back up the application database before any upgrade or migration step, and record the rollback path
  • Test authentication, group permissions, public links and API keys against the scoped checklist
  • Run security testing against the hosting stack and document each finding with its fix and retest

How we hand over

  • Deliver a written configuration record covering each checklist item, its setting and its owner
  • Document the upgrade runbook, patch-tracking process and backup and restore steps for your operations team
  • Provide evidence of configuration and test results that your compliance team can review, without claiming audit status
  • Walk your administrators through the handover so they can operate and verify the setup without us

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial handover
  • Retainers can cover security release reviews, version upgrades and retesting after configuration changes
  • Ask for the support scope, response expectations and retest terms in the written quote
  • Keep the retainer scope aligned with your own team's responsibilities for access reviews and incident response

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.