Restricting cardholder data in Metabase for PCI DSS

Metabase can stay outside PCI DSS scope or sit tightly inside it, but only if cardholder data is kept out of its reach by design. This page maps the requirements to the controls you configure and the evidence you keep.

On this page

Can Metabase be kept out of PCI DSS scope?

An analytics team that wants dashboards over payment data will eventually hear the assessor ask where cardholder data goes. Metabase itself can be kept out of PCI DSS scope only if it never stores, processes or transmits cardholder data or sensitive authentication data, and nothing in its path could affect the security of the cardholder data environment. That condition is decided by your data design, not by a Metabase setting. If Metabase queries live primary account numbers, its application database, query caches, saved questions, exports and logs all need to be assessed. The practical route is to connect Metabase only to tokenized or masked datasets, so the sensitive values never reach it. Then the configuration work focuses on keeping that boundary intact. The applicable standard is PCI DSS v4.0.1, which is the only active version since v4.0 was retired on 31 December 2024. Confirm the version your assessor uses before you map controls.

Metabase configuration helps with several requirements that map to access control and least privilege: a dedicated read-only database user limited to CONNECT and SELECT on the schemas you need, group-level data permissions, and row and column security or impersonation so each person sees only permitted columns. Logging and monitoring evidence comes from Metabase usage analytics, which is available only on Pro and Enterprise plans, so confirm that plan before you rely on it. Note the gap in the topic facts: row and column security does not apply to the SQL editor, so restrict who can write native queries. Requirements for network security, key and secret management, vulnerability management, patching, hosting and the assessment process remain your responsibility, along with the decision to use the defined or customized approach. DeployOpen prepares systems, configurations and evidence for your assessment, but it does not issue a Report on Compliance, a Self-Assessment Questionnaire or an Attestation of Compliance. A Qualified Security Assessor or your own assessment process does that.

Mapping PCI DSS requirements to Metabase configuration

This table maps PCI DSS v4.0.1 requirement areas to the Metabase configuration that supports each one, including the database user, row and column security, impersonation and usage analytics. Read the Edition column first, because row and column permissions and usage analytics need Pro or Enterprise, and open source has no SSO. Confirm each mapping with your QSA before relying on it as evidence.

Requirement areaMetabase configurationEdition neededEvidence to keep
Goal: build and maintain secure systems (Requirements 6 and 8, access and authentication)Restrict who can sign in and what they may do. Use groups, unique accounts and, where available, SSO with multi-factor authentication enforced by the identity provider.SSO requires Pro or Enterprise. Open source and Starter support Google sign-in and LDAP only.Group membership export, SSO configuration record, admin role list
Restrict access by need to know (Requirement 7)Create a dedicated read-only database user with CONNECT and SELECT only on the schemas and tables needed, and separate roles for transforms, uploads, actions and model persistence.Open source supports database users, configured in the database itself.Database grants script, quarterly grant review, Metabase group-to-connection map
Restrict cardholder data to the minimum (Requirements 3 and 7)Point Metabase at tokenized or masked views rather than raw card tables. Apply column restrictions with row and column security so card-number columns are hidden from non-privileged groups.Row and column security requires Pro or Enterprise.View definitions, column policy export, test queries run as a restricted user
Per-user data filtering (Requirements 7 and 8)Use impersonation so the database role and any row-level security policy govern what each person sees, including queries written in the SQL editor.Requires Pro or Enterprise, confirm with Metabase for your version.Impersonation settings, database policy definitions, retest results per role
Logging and monitoring (Requirement 10)Enable usage analytics and auditing to record who queried which data and when, and export logs to your central log platform.Usage analytics requires Pro or Enterprise. Open source has no equivalent built-in record.Usage analytics exports, log retention settings, sample review records
Download and export control (Requirements 3 and 7)Restrict downloads of result sets for groups that can see sensitive columns, and confirm which saved questions and dashboards are shared publicly.Confirm download and sharing controls for your edition with Metabase documentation.Permission settings screenshot or export, public sharing review log
Change and configuration management (Requirements 2 and 6)Track Metabase version, apply upgrades with application database backups and keep a record of permission and database connection changes.Available in all editions, but the record depends on your own change process.Version inventory, upgrade tickets, backup restore test results
Scope definition (Requirements 1 and 12)Document whether Metabase stores, processes or transmits cardholder data. If only tokenized values are queried, record the reasoning for scope and review it with your assessor.Not an edition feature. Applies to every edition.Scope diagram, data flow record, annual scope confirmation

Tokenized, masked or direct: which data pattern fits

This pattern keeps primary account numbers out of the analytics store altogether. Card data is tokenized or masked before it reaches the database Metabase queries, so the analytics environment holds values that cannot be used to transact. Scope reduction depends on the tokenization or masking happening upstream in a system that is itself in scope, and on the analytics side having no path back to the real values.

  • Token vault separation: The token service and its keys must stay inside the cardholder data environment, with Metabase holding only tokens or truncated values.
  • Masking proven at source: Confirm that masked columns are produced by the pipeline, not by a Metabase view that a user could bypass with the SQL editor.
  • No re-identification path: Check that no join key, reversible format or lookup table in the analytics database can recover the original number.
  • Metabase database user: The connection should use a read-only role limited to the masked schema.
  • Logs and caches: Query results, saved questions and cached files must not contain full numbers.

Ask the assessor early which system components they will sample, including the pipeline that produces the masked data.

Where row and column security stops working

Row and column security does not apply to the SQL editor. Metabase's row and column security can restrict which columns a group sees through the visual query builder, based on a saved SQL question used as a custom policy. A user who has SQL access to the same database can write a query that selects a column the policy hides. For a cardholder data environment, that means a column-level policy alone is not a control you can rely on for anyone who can open the SQL editor. Treat it as a convenience for dashboard consumers, not as the boundary that keeps primary account numbers away from analysts.

Impersonation changes the design. According to Metabase's data isolation documentation, impersonation lets database roles and row-level security policies govern what each person sees, and it applies in the SQL editor as well. The database role is therefore the control to rely on. Decide which tables and columns carry cardholder data, grant those objects to no role used by Metabase users, and confirm that each impersonated role can reach only the tokenized or masked views you intend it to use. Keep the read-only connection for Metabase's general use separate from any writable connection used for transforms, uploads, actions or model persistence.

Test this in your own environment before you rely on it. Create a test user in each Metabase group, run the same restricted-column query from the query builder and from the SQL editor, and check the database's own logs to confirm which role executed it. Repeat the test after every Metabase upgrade and every change to group or database permissions, and keep the results as evidence for your assessor. Confirm with your Qualified Security Assessor how they expect this boundary to be documented, since the defined approach and any customized approach need to meet the stated requirement in your own scope.

Download and export controls to review before go-live

Metabase gives people several ways to move query results out of the instance, from direct downloads to shared links and embeds. Each path can carry cardholder data beyond the environment you scoped, so review them one by one before any card-bearing dataset is connected.

Query result exports

Users can download the results of questions and dashboards as files. If a question returns primary account numbers, expiration dates or other cardholder fields, every download becomes a copy of that data on a laptop or shared drive outside your controls. Confirm in the deployed version which roles can export, whether export is available per group or per data source, and whether masked or tokenized columns are the only ones a downloader can receive. Test with a real account from each group.

Row and column security docs

Saved question sharing

Saved questions and collections are shared across groups by permission settings, so a question built on a card-bearing table can be opened by anyone with collection access. Sharing also lets a user copy a question and change its filters. Check that collections holding card-related questions are restricted to a named group, and that no user can build a new question against a restricted table through a path you did not review.

Public links

Public links make a question or dashboard reachable by anyone who holds the URL, with no Metabase account required. Any cardholder field included in a public link becomes visible outside your identity controls and outside your access logs. Confirm whether public sharing is enabled on your instance, who can create public links, and that no card-bearing dataset can be published this way. Record the check as evidence before go-live.

Embedded dashboards

Embedding places dashboards inside another application, and the embed viewer is often a customer or a broader internal audience. Guest embeds authenticate the viewer through a signed token rather than a Metabase login, so the embedding application decides which rows and columns reach the browser. Confirm which embedding method you use, which fields the signed parameters expose, and that the host application masks or omits card data. Verify this before any card dataset reaches an embed.

Embedding introduction

Uploads and writable connections

CSV uploads and writable database connections let users load or change data, and transforms and model persistence write new tables. These paths can copy card data into a new table or a staging area that is outside the scoped database. Metabase recommends separate roles or writable connections for these features, so confirm that the read-only connection used for analysis cannot write, and that any upload or persisted table excludes card fields.

Database users and roles docs

Configuring Metabase for a PCI DSS boundary

This sequence fixes the scope with your assessor before any configuration, then builds Metabase's data access, sharing and evidence controls so that each decision can be shown to a QSA.

  1. Confirm scope with your assessor

    Your compliance lead or QSA decides whether Metabase will sit inside the cardholder data environment, be connected only to tokenized or masked data outside it, or be kept out of scope entirely. Ask the assessor to confirm in writing which systems, user groups and data paths count as in scope, and which PCI DSS requirements they expect you to evidence for an analytics tool. Done when the agreed scope statement is filed with the project record and every later step refers to it.

  2. Map the data flow end to end

    Document each path that cardholder data or its tokens could take: source databases, the Metabase application database, saved questions, the SQL editor, CSV and XLSX downloads, dashboard subscriptions, public links, embeds and any transforms or uploads. Mark which paths carry primary account numbers, which carry masked or tokenized values, and which are blocked. Done when the diagram and table have been reviewed by the people who own each source and the assessor has seen the version that will be tested.

  3. Create a read-only database user

    Create a dedicated database user for Metabase that holds CONNECT and SELECT only, limited to the schemas and tables named in the data flow map. Metabase recommends this minimum-privilege pattern, and it means a compromised Metabase login cannot write to or alter the source. Confirm the grants with a query against the database's privilege views, and record the output as evidence. Done when the user can query the approved tables and is denied writes and access to anything else.

  4. Separate roles for transforms and uploads

    Where you need transforms, uploads, actions or model persistence, give each its own database role or writable connection rather than widening the read-only user. Keep these writable paths away from any cardholder-bearing schema unless the assessor has approved them. Confirm that the read-only connection cannot reach the write roles and that write activity is limited to the named destinations. Done when a list of roles, their grants and their owners is stored with the scope statement.

  5. Restrict rows and columns by group or impersonation

    Choose between database impersonation, where database roles and row-level security policies decide what each person sees and also apply in the SQL editor, and Metabase row and column security, where group permissions filter rows and hide columns through custom policies. Note that row and column security does not apply to the SQL editor, so restrict raw SQL access separately. Test each group with a sample account and confirm that PAN fields are hidden or masked. Done when test results for each group show the expected rows and columns, including the SQL editor.

  6. Restrict download and sharing paths

    Turn off or limit CSV and XLSX downloads, scheduled email subscriptions, public links and embeds for any collection that touches in-scope data, and review collection permissions so that only approved groups can view or save those questions. Confirm each restriction by attempting the action from a test account that belongs to a restricted group. Done when the attempts are blocked, the settings are exported or screenshotted, and the exceptions list is approved by the assessor.

  7. Enable SSO and usage analytics if required

    On the open source edition, you cannot rely on SSO, row and column level permissions or usage analytics for this design. According to Metabase's pricing page, those features are included only in the Pro and Enterprise plans, so confirm your plan against the controls you need before you build. Set up SSO with your identity provider and confirm that usage analytics records who ran which queries and exports. Done when a test login and a test audit record are both captured and reviewed.

  8. Run the application database on PostgreSQL and collect evidence

    Metabase ships with an embedded H2 database for demos, so move the application database to PostgreSQL for production before go-live, following the documented migration path. Then assemble the evidence pack: scope statement, data flow map, grant queries, group test results, download and sharing settings, SSO and audit configuration, and change records. Ask the QSA which artifacts they will sample. Done when the pack is complete, dated and stored under access control, and the assessor confirms it meets their request list.

How data flows from the cardholder environment to Metabase

The flow starts in the cardholder data environment, where card data is tokenized or masked before anything leaves it. A dedicated read-only database role then reads only the approved tokenized or masked tables, and Metabase connects through that role. Users reach Metabase through SSO, and impersonation applies row and column security at query time. The SQL editor is the gap: it bypasses row and column policies, so confirm whether it is disabled for sensitive groups.

Trust boundary between the cardholder environment, analytics tier and Metabase.

Questions buyers ask before hiring help with Metabase and PCI DSS

What drives the cost and effort of scoping and configuring Metabase for PCI DSS?

The main drivers are how many databases and schemas Metabase reaches, whether cardholder data is tokenized, masked or present in the warehouse, and how many groups need different column or row access. Each database that touches the cardholder data environment adds review, role design and testing work. Cost is one-time for scoping, role design, configuration and evidence capture, while recurring work covers upgrades, access reviews and retesting after changes. Ask for a written scope that lists each data source, each user group, the identity method and the evidence each deliverable produces, so the quote follows from that scope.

How long does a scoped Metabase deployment take for PCI DSS work?

Duration depends on the number of data sources, the plan chosen, and whether the identity provider and database owners are ready to participate. Deployments connected to a single masked reporting database usually take less time than ones that span several systems with different permission models. No timeline is fixed in advance: DeployOpen agrees a schedule in the written scope after reviewing the data sources and identity setup. Ask for milestones tied to the database role work, the identity integration and the evidence review, since those are the steps most often delayed.

What does the work need from our QSA, database owners and identity team?

The QSA should confirm early which systems fall in scope and which data handling controls will serve as evidence, so the design is accepted before it is built. Database owners must create the read-only users, grant CONNECT and SELECT only on the required schemas and tables, and approve any writable connections for transforms or uploads. The identity team supplies group membership and, where needed, SSO settings. Confirm these roles in the kickoff, because gaps in any of them usually show up as rework late in the engagement.

Can our internal team set up Metabase for PCI DSS without a partner?

Yes, an internal team can deploy Metabase, but the work needs people who understand PCI DSS scope, database privileges and Metabase permissions together. The hardest parts are proving that Metabase cannot reach cardholder data it should not see, and keeping evidence current after each change. Assess your team against the controls your QSA expects, and weigh the time to build and test role and download controls against your release calendar. A partner is useful when internal staff lack time or have not configured these controls before.

Do we need Metabase Pro or Enterprise to restrict cardholder data?

Not for every control, but the plan determines which ones are available. According to the Metabase pricing page, row and column level permissions and SSO are included only in Pro and Enterprise, not in Open Source or Starter. Pro is listed at $575 per month, or $517.50 per month billed yearly, with the first 10 users included and additional users at $12 per month. Enterprise is priced by quote starting at $20,000 per year. Confirm current prices on the pricing page before budgeting, since listed prices can change.

Who signs the Attestation of Compliance for our Metabase setup?

The entity being assessed signs the Attestation of Compliance, and it is issued on an official PCI SSC template. A Qualified Security Assessor completes a Report on Compliance for large entities, while smaller entities may complete a Self-Assessment Questionnaire. DeployOpen prepares systems, controls and evidence for that assessment, but it does not issue audit reports, attestations or certifications. Ask your QSA or acquirer which document applies to your organization and which evidence they will accept.

Which PCI DSS version should our Metabase controls map to?

Map controls to PCI DSS v4.0.1, which is the only active version since v4.0 retired on 31 December 2024. The 51 future-dated v4.0 requirements took effect on 31 March 2025. The PCI SSC announced a request for comments on v4.0.1 in June and July 2026, but as of October 2026 it had announced no release date for a new version. Ask your QSA to confirm the version your assessment uses before you finalize the evidence list.

Does the scope cover the SQL editor and download controls?

Row and column security does not apply to the SQL editor, so the database role and impersonation design must restrict what users can query there. Impersonation lets database roles and row-level security policies govern what each person sees, including in the SQL editor. Download controls are a separate decision to confirm in the written scope. Ask for a test plan that covers the SQL editor, saved questions and exports for each group.

How DeployOpen scopes and documents Metabase for PCI DSS

DeployOpen treats Metabase cardholder data work as a scoping and evidence exercise first and a configuration task second. We map which Metabase components can reach card data, restrict or remove that access, and prepare the records an assessor or your compliance team will ask for, within a written, fixed scope.

How we scope

  • Map every data source, saved question and dashboard that could expose primary account number fields or other cardholder data.
  • Record which systems are in the cardholder data environment and which Metabase paths must stay outside it.
  • Agree in writing which database connections, download paths and SQL editor access are in scope before work starts.

How we build

  • Configure a dedicated read-only database user with CONNECT and SELECT limited to the schemas and tables the reports need.
  • Set row and column security or impersonation so tokenized or masked fields are the only card-related values users can query.
  • Restrict downloads, public sharing and writable connections for transforms, uploads and actions, then test each restriction against a named user group.

How we hand over

  • Deliver a data flow description, permission matrix and configuration record that your QSA or internal assessor can review.
  • Document each control's owner, test method and retest date so evidence stays current after the engagement ends.
  • Walk your operations and security teams through the runbook for adding users, data sources and groups without widening scope.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
  • Retest permissions and download controls after each Metabase upgrade, so the scope record stays accurate between assessments.
  • Confirm with your payment brand, acquirer or QSA which PCI DSS version and assessment type apply to your environment before scoping begins.

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.