Metabase security hardening starts before the first dashboard
A team that has Metabase running on the default H2 file or a quick local install, and now has to make it safe for real company data, is starting from a configuration that was never meant for production. Metabase security hardening is a set of configuration decisions across the application database, data source credentials, permissions, sharing and TLS, not a single setting. Each one can be right on its own and still leave a gap somewhere else, so the work is to decide each area deliberately and record the decision. The scope also depends on two facts you must establish first: which edition you run, and which data sources you connect. A team that only reads a list of settings will miss the ones that matter for its edition and its data.
Hardening is harder than it looks because the open source edition does not include SSO, row and column level permissions, multi-tenant data segregation, or usage analytics and auditing. According to the Metabase pricing page, those features sit only in the Pro and Enterprise plans. That means on the free edition, access control has to be handled through collections, group permissions and database-level settings, and you cannot assume that a user who reaches a dashboard is limited to the rows they should see. Defaults also persist quietly. An H2 application database, a shared admin account, a broad database login or a public link can keep working for months while nobody notices that it exposes more than intended.
Before you change anything, confirm the edition and list every connected database with the account Metabase uses to query it. Then ask your Metabase administrator or partner to walk through each area in order: the application database, the data source credentials, the permission groups, the sharing and embedding settings, and TLS in front of the server. Confirm in writing which of these controls your edition supports, because a control that a paid plan provides cannot be replaced by a workaround on the free edition without that limitation being documented. The Metabase pricing page is the reference for plan boundaries, and your own environment review should confirm what is actually running.
Which Metabase settings and components carry the risk
A Metabase deployment touches more than its web app. The application database, data source credentials, permissions, sharing links, identity integration and the TLS layer each hold a different kind of exposure. Review them as one system, because a weakness in one component often bypasses the controls in another.
Application database
The application database stores users, saved questions, dashboards, settings and, depending on configuration, connection details for your data sources. The embedded H2 database is meant for demos, so a production install that still uses it has weak backup, access and operational controls. Confirm where the database runs, who can reach it at the network level, and that its backups are encrypted and restorable.
Application database docsData source connections and credentials
Each database connection Metabase holds is a standing path into your data. If the account used for a connection has broader rights than the questions need, anyone who can build a question can read well beyond what they should see. Check that each connection uses a dedicated read-only account, that its password is stored and rotated under your secrets process, and that the account has no write or administrative rights.
Collection and data permissions
Metabase controls access through group permissions on collections and on the data sources and tables behind them. A group granted broader data access than intended exposes sensitive tables even when dashboards look restricted. Row and column level permissions are a Pro or Enterprise feature, so on other plans the boundary is set by which tables a group can query. Review each group's data access and collection rights against the access policy you intend to enforce.
People and groups docsPublic links and embeds
Public sharing links and embedding options can make a question or dashboard reachable without signing in. Anyone holding the link can view the content, and the link can be forwarded beyond the intended audience. Guest embedding works on every plan, including open source, so it needs the same scrutiny as public links. Inventory every public link and embed, confirm the data behind each is appropriate for an unauthenticated audience, and disable what is no longer needed.
Embedding introductionSSO and user provisioning
Identity integration decides who can sign in and which groups they inherit. Local passwords left active alongside SSO give attackers a second path around your identity provider, and manual group assignment drifts as people move roles. On the free edition, Google sign-in and LDAP are available. JWT, OIDC, SAML and SCIM require Pro or Enterprise. Confirm which login methods are enabled, that deprovisioned users lose access, and that group mapping matches your permissions model.
TLS termination in front of the JAR
Metabase runs as a JAR, and the TLS certificate, redirect rules and proxy headers usually sit in a reverse proxy or load balancer in front of it. A missing or weak TLS layer exposes session cookies, credentials and query results in transit. Also check that the proxy forwards the expected headers and that the application is not reachable directly on its internal port. Confirm the certificate chain, the protocol versions your proxy accepts, and the network path from the proxy to the application.
Which hardening decisions need a paid plan and which do not
This table compares the main hardening choices for a self-hosted Metabase against the plan each one requires, so you can see which controls are available on Open Source and which need Pro or Enterprise. Read each row for when the option fits and what it costs to run, then confirm current plan inclusions on the pricing page before you commit.
| Decision | Available on Open Source and Starter | Requires Pro or Enterprise | When it fits and operational cost |
|---|---|---|---|
| Application database | H2 embedded database for demos only; PostgreSQL or MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4 | Not plan-gated | Use PostgreSQL or MySQL for production. Your team owns backups, patching and the one-time H2 migration if you start on H2. |
| Single sign-on | Google sign-in and LDAP | JWT, OIDC, SAML (Auth0, Entra ID, Google, Keycloak, Okta), advanced LDAP group sync and SCIM provisioning | Choose Google or LDAP if they match your identity provider. SAML or SCIM means a paid plan, plus group mapping work on your side. |
| Row and column permissions | Collection and data permissions only | Row and column level permissions | Needed when one dashboard must show different rows or columns to different users. Otherwise, separate collections and data permissions may be enough. |
| Multi-tenant data segregation | Not included | Included | Relevant if one instance serves several customers or business units with strict separation. Confirm the design with your security team before go-live. |
| Usage analytics and auditing | Not included in the plan facts | Included | Choose a paid plan if you need built-in audit visibility. On free plans, plan external logging of the application database and reverse proxy. |
| Public links | Available on all plans | Not plan-gated | Public links expose content to anyone with the URL. Keep them off for sensitive data and review them regularly. |
| Guest embedding | Guest authentication on all plans, including Open Source | Not plan-gated for guest auth | Fits customer-facing embeds where users do not need Metabase accounts. Plan signed-URL handling and secret rotation in your build. |
| SSO-based embedding | Not included | Required for all SSO-based embedding | Needed when embedded users must match your identity provider's sessions. Budget for a paid plan if this is in scope. |
| TLS termination | Reverse proxy or load balancer, handled outside Metabase | Not plan-gated | Most teams terminate TLS at a reverse proxy in front of the JAR. Your team manages certificates, cipher policy and renewal. Confirm the configuration with your platform team. |
How to harden a Metabase install in sequence
This sequence moves a self-hosted Metabase from its default setup to a production configuration with a managed application database, scoped database access, tested permissions, locked-down sharing, encrypted traffic and reviewable logs. Each step closes with a check the team can run and record.
Move the application database off H2
Metabase ships with an embedded H2 application database, which is meant for demos. Provision PostgreSQL (the recommended option for production) or MySQL 8.4.0 or MariaDB 10.6.0 or later with utf8mb4, then point Metabase at it using the application database settings. Before switching, take a backup of the H2 file and confirm the Metabase version that last wrote to it, because the load-from-h2 command must run with that same version. Restrict network access so only Metabase hosts can reach the database. The step is done when Metabase starts against the new database, logs in, and a test question runs after a restart.
Create a read-only database user per source
For each connected data source, create a dedicated database user that Metabase uses for queries, and keep it separate from the application database user and from any administrator account. Grant only SELECT on the schemas and tables that the business needs, and do not grant write, DDL or superuser rights. Store the credentials in your secrets manager rather than in shared notes. The check is to run a write attempt (such as an insert into a scratch table) with the Metabase connection credentials and confirm the database refuses it, then confirm a saved question against an allowed table still returns rows.
Define groups and collection permissions
Create groups that match real roles, then set data permissions and collection permissions for each group. Grant the narrowest data access that works, and keep the All Users group from holding access to sensitive schemas by default. Place dashboards and saved questions in collections that map to those groups, and review which groups can curate or edit content. Confirm the exact permission options available on your plan in the Metabase people and groups documentation. The check is to sign in as a test user who is not a member of a sensitive collection and confirm it is absent from search and returns an access error when opened by direct link.
Review and disable public links and embedding
Audit every public link and embed, including the public sharing settings and any embedding configuration. Disable public sharing unless a documented use case requires it, and remove links to questions that expose internal data. For embedding, confirm which method is in use: modular embedding, full app embedding, public links or the deprecated static embedding, and check the authentication model, since guest authentication works on every plan while SSO-based embedding needs Pro or Enterprise. Remove anything you cannot tie to an owner. The check is to request each remaining public or embedded URL while signed out and confirm it returns only the content you intended to publish.
Enforce TLS at the reverse proxy
Place Metabase behind a reverse proxy or load balancer that terminates TLS with a certificate from your internal or public certificate authority, and redirect plain HTTP to HTTPS. Keep Metabase itself on a private network path, and confirm the site URL setting matches the HTTPS address users see so links and embeds resolve correctly. Ask your security team to review the cipher and protocol configuration against your baseline. The check is an external scan or a command-line request over plain HTTP that is refused or redirected, and a certificate check that shows a valid chain for the Metabase hostname.
Configure SSO where the plan allows
Connect Metabase to your identity provider so people sign in with corporate accounts rather than local passwords. On the open source and Starter plans, Google sign-in and LDAP are available. JWT, OIDC, SAML (with documented setups for Auth0, Entra ID, Google, Keycloak and Okta), advanced LDAP group sync and SCIM provisioning require Pro or Enterprise. Map identity groups to the Metabase groups created earlier so that removing a user from the directory removes their access. The check is to disable a test account in the identity provider and confirm it can no longer sign in, and that a user added to a mapped group receives the expected collection access.
Enable and review audit options
Decide what you need to record: who signed in, who viewed or changed content, and which queries ran against which sources. Usage analytics and auditing are listed on the Pro and Enterprise plans, so confirm the feature set for your edition on the Metabase pricing page before you commit. Route Metabase and proxy logs to your central log platform, and set a retention period that matches your policy. The check is to perform a known action, such as viewing a restricted dashboard with a test account, and confirm the event appears in the log store with the user and time recorded.
Record the baseline and schedule a review
Write down the final configuration: database versions, source accounts and their grants, group and collection structure, public and embed inventory, TLS settings and SSO mappings. Record the Metabase version and check it against the version support page, because LTS and non-LTS releases have different support windows. Assign an owner for quarterly permission and public-link reviews and for upgrades. The check is a signed configuration record that a second person can compare against the running instance, with the same results from the read-only, permission and public-link tests repeated after any upgrade.
How hardening differs for single node and clustered Metabase
A single-node deployment runs one Metabase JAR on a virtual machine, usually behind a reverse proxy that terminates TLS. Hardening changes are made once, on one host, and the restart window is the only availability concern. Because there is one process, configuration drift is easier to spot, but a single host also means a single point of failure for both the application and its application database.
- Proxy and TLS: Terminate TLS at the proxy, restrict direct access to the Metabase port, and confirm the proxy forwards the headers Metabase expects.
- Application database: Move off the embedded H2 database to PostgreSQL before go-live, since H2 is documented for demos and not production.
- Secret encryption key: Set and store the encryption key once, backed up with the application database, so a restore does not leave encrypted database credentials unreadable.
- Restarts and upgrades: Plan a maintenance window, because the one node is the whole service during a JAR swap or migration.
- Access restriction: Limit administrator accounts and review the network path from the proxy to the database.
Confirm the exact configuration keys, session settings and encryption key behavior against the Metabase documentation for your version before you change them.
A clustered deployment runs several Metabase instances behind a load balancer, and all of them read and write one shared PostgreSQL application database. Every instance must agree on the encryption key and the application database, and any change to session handling or authentication has to reach every node in the same way. Hardening decisions here are less about one host and more about consistency across the cluster.
- Encryption key consistency: Every node must use the same encryption key, or encrypted values such as stored database credentials will fail on some instances.
- Session handling: Test how sessions behave behind the load balancer, including sticky sessions and logout, before relying on session timeouts as a control.
- Migration lock: Upgrades run database migrations, and the migration lock means the cluster should be reduced to a single node for major upgrades.
- Load balancer health checks: Use health checks so traffic does not reach an instance that is starting, migrating or failing.
- Consistent configuration: Apply the same environment variables and JAR version to every node, and record the change so drift is visible.
Confirm the cluster procedure, the migration lock steps and the session behavior for your Metabase version in the official documentation before rollout.
Upgrades change the hardening baseline in two ways: they run application database migrations automatically, and they can change how configuration is read. For a single node the upgrade is a short sequence of backup, stop, swap and start. In a cluster, the migration lock means one node migrates while others must not, so the procedure is different and riskier if done casually. Rollback also depends on the backup taken before the change.
- Backup first: Take a backup of the application database before any upgrade, and keep the encryption key with it.
- Single-node major upgrades: For a major upgrade in a cluster, reduce to one node first, as the upgrade documentation recommends.
- Release-by-release path: Upgrade in steps from older versions rather than jumping, following the documented sequence.
- Rollback method: Restoring the pre-upgrade application database backup is the recommended rollback, so test that restore on a copy.
- Post-upgrade checks: Re-verify SSO, permissions, public sharing and TLS settings after each upgrade, since these are the controls most likely to be affected.
Confirm the exact upgrade path, lock handling and rollback steps in the upgrading guide for the versions you plan to run.
Hardening controls that need the most attention
A self-hosted Metabase is only as safe as the access paths into it: the application database that holds its configuration, the credentials it uses to reach your data, the people and groups who hold admin rights, and the links or embeds that can expose results outside your organization. The cards below cover the controls we check first, in the order most teams should review them.
Application database credentials
Metabase stores connection details for your data sources, user accounts and session data in its application database. Move off the embedded H2 file, which is meant for demos, and use a dedicated PostgreSQL or MySQL instance that only the Metabase servers can reach. Confirm that the database password is not written into plain configuration files checked into version control, and that the Metabase servers read it from your secrets store. Rotate it on a schedule you can document.
Application database docsLeast-privilege source access
Each data source connection in Metabase should use a read-only database account that can see only the schemas and tables the business needs. A single shared administrator login gives every Metabase user, and anyone who can edit a connection, a path to everything in that database. Ask who can create or edit connections in your instance, confirm that write permissions are absent from the account, and test that a restricted account cannot query a sensitive table through a native question.
Admin and group hygiene
Administrator rights in Metabase reach every collection, connection and user setting, so the admin group should stay small and reviewed. Review group membership on a fixed schedule and remove accounts for people who have changed roles or left. Where you use single sign-on, check that group mapping from your identity provider matches the Metabase groups you intended, because a loose mapping can grant access silently. Plans differ on group sync features, so confirm which ones your edition provides before you design the process.
Public sharing and guest embedding
Public links and guest embeds make a question or dashboard reachable by anyone who holds the URL, with no Metabase login. Treat them as publication, not as a convenience. Inventory which dashboards are shared publicly or embedded, confirm each one contains only data approved for outside readers, and check that the parameters on guest embeds cannot be changed to pull other rows. Turn sharing off by default for teams that do not need it, and review the list regularly.
Secrets for SSO and the application database
The client secret for your single sign-on provider and the database credentials are the keys to the whole instance, so they should live in a secrets manager or the environment of the host, not in a wiki page or a shared spreadsheet. Confirm who can read those values, that they are rotated after staff changes, and that the same secret is not reused across Metabase, staging and other tools. Log any change to these settings, since they affect every user at once.
How to prove permissions work before go-live
A negative test is the evidence reviewers ask for. Showing that an administrator can see a restricted collection proves little. Security reviewers want to see that a non-member cannot, and they want that result written down. Before go-live, build a test matrix with one row per control you claim and one column per test identity. Use a sample user from each permission group in your Metabase setup, plus one user with no group membership beyond the default. For each cell, record the action attempted (view a collection, open a saved question, run an ad hoc query against a restricted data source, download results as CSV or JSON), the expected result, the observed result, the date and the Metabase version. Include the database connection user as a separate row, because data-source permissions and the credentials behind them are checked separately from what the UI shows.
Cover the paths that sit outside the normal login flow. Attempt to reach a public link from a network location outside your perimeter, and confirm whether public sharing is enabled at all for the questions and dashboards in scope. If you use embedding, test guest embed tokens with altered or expired parameters, and confirm the embedded content cannot be used to pivot into data the embedding user should not see. Check which embedding methods your plan includes before you write those test cases, since the Metabase embedding introduction lists the options and authentication types. Confirm with your security team which of these outside-network tests they will accept as evidence.
Repeat the matrix after every upgrade and configuration change. Permissions can change behavior across versions, and group or collection edits made during an upgrade window can drift from the approved design. Store the matrix and its results in your change records, rerun the full set after each upgrade (see the Upgrading Metabase guide for the backup and rollback steps), and keep failed results with their fixes and retest dates. Decide in advance who signs off on the matrix and how often it is rerun outside upgrades.
What makes Metabase hardening take longer
This table lists the factors that expand a Metabase hardening project and the ways to keep each one contained. Read each row as a lever: the left column names the driver, the middle column explains why it adds work, and the right column gives the reduction approach. The main takeaway is that most of the effort comes from permission design and the number of data sources, so standardizing those early saves the most rework.
| Driver | Why it adds work | How to keep effort down |
|---|---|---|
| Connected data sources | Each database needs its own service account, network path, TLS settings and permission mapping in Metabase | Standardize on a small set of read-only source accounts with one naming pattern and document each connection |
| Users and groups | Every group needs a mapped Metabase permission set, and manual user lists drift over time | Map groups from one identity source and avoid per-user exceptions wherever possible |
| Collection and data permission depth | Nested collections combined with granular data access rules multiply the cases a reviewer must test | Keep collection trees shallow and set permissions at group level rather than per object |
| Public links and embedding | Each public link or embed is an externally reachable surface that needs its own review and settings check | Limit embeds to a short approved list and confirm which features each plan includes before enabling them |
| SSO scope | Row-level permissions, SSO and advanced group sync depend on Pro or Enterprise, so the plan choice changes what must be configured and tested | Confirm the plan with the vendor pricing page first, then scope SSO to one identity provider |
| Compliance evidence needs | Assessors often ask for configuration exports, access reviews and audit logs, each of which must be collected and explained | Agree the evidence list before work starts and use a single hardening record that maps each setting to its purpose |
| Number of environments | Development, staging and production each need their own application database, settings and permission checks | Keep non-production configuration as close to production as practical and promote settings in a repeatable way |
Questions buyers ask about Metabase security hardening
Can our team harden a self-hosted Metabase on its own?
Yes, if you have people who can operate PostgreSQL, a web tier, identity configuration and a data governance owner. Hardening covers the production application database, least-privilege database credentials for each data source, data and collection permissions, public sharing and embedding settings, TLS termination and audit options. Most teams underestimate the review and testing step, where someone checks each setting against what the organization actually expects. A partner can take on the whole scope under a written plan, or review your own work and fill gaps. Either way, the decision depends on how much of this your staff has done before and how much time they can give it.
What do we need to provide during a Metabase hardening project?
Hardening draws on four groups of people on your side:
- Database administrators to create the application database, service accounts and read-only roles for each source.
- Network and platform engineers to place Metabase behind TLS, restrict inbound paths and confirm which hosts can reach the databases.
- Identity owners to decide how users sign in, which groups exist and who approves access.
- Data owners to confirm which tables, columns and collections each group may see.
Without the data owners' decisions, permissions get guessed, and guessed permissions are the most common reason a hardened setup gets reopened later.
Is the free Open Source edition of Metabase secure enough to harden?
The Open Source edition can be configured with strong controls for many setups, including a production PostgreSQL application database, TLS, least-privilege database credentials, collection permissions and guest-based embedding. The gaps are features that the Pro and Enterprise plans include. According to Metabase's pricing page, SSO, row and column level permissions, multi-tenant data segregation and usage analytics and auditing are available only on Pro and Enterprise, not on Open Source or Starter. If your policy needs SAML, OIDC, SCIM, row-level security or built-in audit reporting, the free edition will not meet it without compensating controls. Confirm each requirement against the edition's documentation before you commit.
What drives the cost of hardening Metabase?
The cost depends on the number of data sources, how many groups and permission rules you need, whether identity and single sign-on must be integrated, and how much embedding or public sharing you plan to use. The licence cost is separate. Metabase's pricing page lists Open Source as free, Starter at $100 per month or $90 per month billed yearly, Pro at $575 per month or $517.50 per month billed yearly, and Enterprise priced by quote starting at $20,000 per year. Per-user charges apply on paid plans. Ask any vendor or partner for a quote that separates one-time work from recurring costs, and that states what is excluded, such as audit tooling or ongoing testing.
How long should we plan for a Metabase hardening project?
Duration depends on the number of data sources, the complexity of your permission model, whether identity integration is in scope and how many environments need the same controls. Plan first for the discovery work: listing sources, groups and sharing use, and getting data owners to sign off. Then allow time for building, testing each permission rule with real accounts, and retesting after changes. No duration figure is supplied for this work, so ask your partner for a timeline tied to a written scope, and confirm any dependencies on your database, network and identity teams before work starts.
Does DeployOpen issue security certifications for Metabase?
No. DeployOpen prepares systems, controls and evidence for compliance assessments, including configuration records, access reviews and test results. Independent auditors and certification bodies issue audit reports, attestations and certifications. Ask a partner to show exactly which evidence it will produce and how it maps to the framework your auditor uses. Confirm with your auditor in advance which artifacts they will accept and in what format.
How the hardening trust boundaries fit together
The diagram starts with users reaching Metabase through TLS at a reverse proxy, so the browser-to-server hop is the first boundary to check. Metabase then reads its own application database, which holds users, permissions and saved content, and it queries connected sources only through least-privilege database accounts. Public links and embeds are drawn as separate exposure paths that bypass the logged-in user flow, so each one needs its own review. Confirm that every path ends at a read-only account and that no public path reaches a sensitive collection.
Trust boundaries from users and public exposure paths to data sources.
How DeployOpen scopes, hardens and hands over Metabase
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including Metabase. Hardening work starts with a written scope that sets which controls, permissions and sharing settings are in play before any change is made to the production instance.
How we scope
- Confirm which Metabase edition is in use, since SSO, row and column permissions and auditing depend on the plan.
- Map the application database, data source credentials, collections and sharing settings that the hardening will cover.
- Agree the written scope, deliverables and timeline with the client before work begins, as most engagements are fixed-scope.
How we build
- Move the application database to a production PostgreSQL or MySQL instance, with backups in place before any change.
- Set least-privilege database credentials for each data source and verify that Metabase can only read what each group needs.
- Configure TLS, collection and data permissions, public sharing and embedding controls, and audit options, then test each control.
How we hand over
- Deliver the configuration record, permission matrix and sharing settings so the client's compliance and security teams can review them.
- Document the backup, restore and access review steps the client's own team will run after go-live.
- Walk the client's administrators through the hardened setup and the checks they should repeat after each change.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after hardening is complete.
- Plan upgrades against the Metabase version support windows, including application database backups and rollback steps.
- Retest sharing, embedding and permission settings after major changes, and confirm each finding is closed.

