Metabase and GDPR in a self-hosted deployment

Self-hosted Metabase lets you control where personal data is processed, but several default outbound flows and audit tables need configuring before GDPR review. This page maps the obligations to Metabase settings and evidence.

On this page

Which GDPR obligations a self-hosted Metabase helps with, and which it does not

If your team is deploying Metabase to query personal data and you are subject to the GDPR, the Metabase settings you control help with data minimization, outbound data control, retention and access limits, but the GDPR obligations themselves stay with you as the controller. Lawful basis, records of processing, data protection impact assessments, processor contracts and transfer assessments are decisions and documents that no application setting can produce. The GDPR also requires no audit, attestation or certificate, and certification under Article 42 is voluntary and does not reduce the controller's responsibility. DeployOpen prepares systems, settings and evidence for your review, but it does not certify compliance and does not issue audit reports.

In practice, the Metabase controls that map to GDPR work are specific. MB_ANON_TRACKING_ENABLED controls anonymous usage data collection and defaults to true, so you should decide and document whether it is switched off. MB_AUDIT_MAX_RETENTION_DAYS sets how long audit-related tables such as query_execution are kept, with a minimum of 30 days and 0 meaning indefinite retention, so a retention period needs to be set against your documented purpose. Limiting who sees personal fields depends on group permissions and, on a paid plan, row and column level permissions. Confirm which of these features your plan includes before you write them into a data protection design. Where AI features are enabled, prompts, table and field names and samples of field values go to the provider, which makes that provider a processor you must assess under Article 28 and the Chapter V transfer rules.

Mapping GDPR requirements to Metabase settings

This table compares the GDPR obligations most relevant to a self-hosted Metabase with the platform capability, the setting that controls it and the gap you must close yourself. Read each row as a question to answer for your own deployment, and note that usage analytics and granular permissions are limited to the Pro and Enterprise plans.

RequirementPlatform capabilityConfigurationGap
Security of processing (Article 32)Access control through groups and permissions, and audit-related tables such as query_executionRestrict group permissions and set MB_AUDIT_MAX_RETENTION_DAYS to match your retention ruleRow, column and usage analytics are limited to Pro and Enterprise per the pricing page
Breach notification (Articles 33 and 34)Query and activity records that help establish what personal data was accessed and whenKeep audit tables for long enough to investigate; a value of 0 keeps them indefinitelyNotifying regulators within the required window depends on your own logging, alerting and incident process
Transfers to third countries (Chapter V, Article 44)Anonymous usage data, token checks and AI prompts can send information outside your infrastructureSet MB_ANON_TRACKING_ENABLED to false and review AI provider settingsHosting location, remote support access and any cloud provider outside the EEA must be assessed by you
Controller obligations (Chapter IV)Self-hosting keeps Metabase data inside infrastructure you controlDocument which databases, users and retention settings hold personal dataThe controller must define lawful basis, data subject request handling and records of processing
Processor obligations (Chapter IV)Metabase acts as software you run, so the processing responsibility sits with your organizationConfirm any DeployOpen or hosting provider contract covers processing termsWritten processor terms with each third party that touches the deployment must be confirmed
Limiting access to personal fieldsPermissions by group and data source, with fine-grained limits gated by planAssign least-privilege groups and separate sensitive databasesColumn-level restrictions require a Pro or Enterprise plan, so open source installs need other controls
Retention of audit dataAudit tables are kept for a configured number of daysMB_AUDIT_MAX_RETENTION_DAYS, with a minimum of 30 daysRetention periods must match your own policy, which you need to define and verify

What Metabase sends out and how to control it

A self-hosted Metabase keeps your query results on your infrastructure, but it still makes some outbound connections and can send data to an AI provider. Each of the cards below is a flow you need to map, decide on and document before personal data goes into the instance.

Anonymous usage data

Metabase can send anonymous usage data to its developers. The environment variable MB_ANON_TRACKING_ENABLED controls this and defaults to true, so the setting is on unless you change it. For a GDPR assessment, record the decision to keep or disable it, set the value explicitly in your deployment configuration, and confirm in your own environment what is sent before you rely on the setting in your records.

Environment variables docs

AI prompts and sampled values

When Metabot or other AI features use the Metabase AI service or your own provider, prompts, table and field names and samples of field values go to that provider. Sampled values can contain personal data even when the question itself does not. Decide whether AI features are enabled at all for personal data sources, choose the provider and its location, and confirm the data processing terms before rollout.

AI privacy docs

Token check and other outbound connections

Metabase makes other outbound connections beyond usage data, including a token check that your instance uses to validate its license. The exact endpoints, data sent and frequency are not part of this page's verified scope, so confirm them with Metabase and by monitoring egress from a test instance. Document each connection in your record of processing and decide whether your firewall allows it.

Configuration reference

Data source connections stay in your network

Queries run from your Metabase to the databases you connect, so personal data read for dashboards moves over the network path you build between them. Keep the connections inside your network or private subnets, use encrypted connections and service accounts with limited rights, and confirm that no database is reached through a third-party relay. This is the flow that most often determines whether personal data leaves your controlled environment.

Application database and backups

Saved questions, dashboards, cached results and audit tables live in the application database, and copies of it can end up in backups. Choose where that database runs and where its backups are stored, and make sure these locations fall inside the same controls you apply to the source data. Confirm the location of every replica and backup before you sign off on the data map.

Configuring a self-hosted Metabase for GDPR review

This sequence gives a compliance or privacy team a documented Metabase configuration in which personal data flows, outbound connections, audit retention, database location and field access are known, set and recorded before a GDPR review.

  1. Inventory personal fields and data sources

    The data owner and the privacy lead list every connected database, table and field that holds personal data, and mark which users, collections and dashboards expose them. They also record the personal data stored in Metabase itself, such as user profiles, saved questions and audit tables. The output is a written register that names each personal field, its source system and the groups that currently see it. Confirm the list against the live instance, since saved questions and shared dashboards often reach fields the original design did not intend.

  2. Disable anonymous tracking

    An administrator sets the environment variable MB_ANON_TRACKING_ENABLED to false in the deployment configuration and restarts Metabase. The variable defaults to true, so this change must be made deliberately and written into the configuration file or container definition rather than set only in the admin interface. The output is a configuration record showing the value, plus a check of the instance's settings that confirms anonymous usage data collection is off.

  3. Confirm AI settings and provider data flows

    The privacy lead checks whether Metabot or other AI features are enabled and, if they are, which provider receives requests. When AI features use the Metabase AI service or a customer's own provider, prompts, table and field names and samples of field values are sent to that provider. Disable the features if no approved provider and data processing agreement exists, or record the provider, the transfer analysis and the fields that may be sampled. The output is a signed-off AI settings record for the review file.

  4. Set audit table retention

    An administrator sets MB_AUDIT_MAX_RETENTION_DAYS to the retention period the organization has approved for audit-related tables such as query_execution. The minimum accepted value is 30 days, and a value of 0 keeps records indefinitely, which is harder to justify under the storage limitation principle. Document the chosen figure, the legal basis for keeping the logs and the person responsible for deletion. The output is a retention decision and a configuration entry that matches it.

  5. Move the application database off H2

    Metabase ships with an embedded H2 application database, which is suitable for demos but not for production. Plan a move to PostgreSQL, which Metabase recommends for production, or to MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4. Use the documented load-from-h2 command with the same Metabase version that last updated the H2 file, and confirm the target database sits in an approved location. The output is a production application database holding user, query and audit records, with a tested backup and a record of where it is stored.

  6. Restrict personal fields through groups and permissions

    On Pro or Enterprise plans, the administrator creates groups that map to job roles, grants data permissions so that only approved groups can query personal tables, and applies row and column level permissions to hide personal fields from everyone else. Open source and Starter plans do not include these controls, so the team must confirm the plan before designing this step. Test each group with a sample account to confirm restricted fields do not appear in questions, dashboards or downloads. The output is a permission matrix and test results showing the restriction works.

  7. Document the configuration for review

    The compliance lead writes a configuration record that lists the personal data register, the outbound settings, the AI decision, the audit retention value, the application database location, the permission matrix and the test results. Each entry names an owner and the date it was last checked. Keep the record with the configuration files under change control so that later upgrades or staff changes do not silently alter the settings. The output is a review pack that the data protection officer or an independent assessor can read without needing to ask the team how the instance works.

How long query_execution and other audit tables should be kept

The retention period for audit tables is a decision you make with your DPO and legal team, not a default you accept. In a self-hosted Metabase, tables such as query_execution record who ran which query, against which database, and when. That record is personal data in its own right, because it links a named user to their activity. Storage limitation under the GDPR asks you to keep it no longer than you need it. Accountability and incident investigation ask you to keep enough history to reconstruct who saw what, especially after a suspected data exposure. Your retention period has to balance those two pulls and be written down with the reason for it.

Metabase controls this with MB_AUDIT_MAX_RETENTION_DAYS. The setting defines how many days audit-related tables are kept, with a minimum of 30 days. Setting it to 0 means audit data is retained indefinitely. Treat the indefinite option with caution. Keeping every query record forever is hard to justify under storage limitation unless you can name a specific purpose, such as a legal hold obligation or a documented investigation need, and explain why a shorter period would not serve it. Where you choose a period, confirm with your DPO that the stated purpose matches the period, and record the reasoning in your processing records.

Before you set the value, confirm three things in your own environment. First, check which tables your Metabase version writes to under the audit umbrella, since the documentation names query_execution as an example rather than a complete list. Second, decide who can read those tables, because a long retention period on a table that many analysts can query widens the exposure. Third, confirm how deletions run and whether they are logged, so you can show an auditor or supervisory authority that the period is enforced. The Metabase environment variables documentation is the place to confirm the current behavior for your release.

Limiting who sees personal fields by plan

On Open Source and Starter, the access controls available to you are limited. Metabase's pricing page places single sign-on, row and column level permissions, multi-tenant data segregation and usage analytics and auditing in the Pro and Enterprise plans only. Open Source and Starter support Google sign-in and LDAP for authentication, but they do not give you column-level restriction inside Metabase itself. Personal fields therefore need to be controlled before Metabase reads them.

  • Separate databases: Expose a copy or subset of a table that omits personal fields, and point the Metabase data source at that copy for general analysis.
  • Database roles: Create a read-only role in the warehouse that is granted only the non-personal columns, and use that role's credentials for the Metabase connection.
  • Upstream views: Publish views that exclude or pseudonymize personal columns, and grant Metabase access only to those views.
  • Group-level data access: Use Metabase groups to control which databases and collections each user sees, but treat this as a coarse control, not a column filter.
  • Confirm in your version: Check the current Metabase documentation for your release before you rely on any in-app restriction, because plan limits can change.

Before go-live, confirm that the database role or view truly hides the personal columns by querying through Metabase as a restricted user.

Evidence auditors and supervisory authorities ask for

A GDPR review of a self-hosted Metabase tends to start with paperwork before it reaches the software. The records below connect the configuration, the data flows and the access decisions so that each claim you make about personal data can be traced to a setting, a log or a document.

Records of processing and data flows

Document which Metabase databases hold personal data, which tables and fields are queried, and which outbound connections the instance makes. Include the token check, anonymous usage data, update checks and any AI provider you enable. Keep this record alongside your Article 30 register and review it after each upgrade, because connection behavior can change between releases. Confirm each outbound path against your own network logs rather than relying on the list alone.

Environment variables docs

Configuration exports for tracking and AI

Export the effective environment for the running instance and store it with a date and an owner. Show MB_ANON_TRACKING_ENABLED and the state of each AI setting, since the variable defaults to true and must be set deliberately. Record who approved the setting and when it last changed. An export taken from the running container is stronger evidence than the deployment template, which may not match what is live.

Audit retention settings and justification

Record the value of MB_AUDIT_MAX_RETENTION_DAYS and the reason for it. The variable sets how long audit-related tables such as query_execution are kept, the minimum is 30 days, and 0 means indefinite retention. Indefinite retention is hard to justify under the storage limitation principle, so write down the purpose each retention period serves and confirm with your data protection officer that it matches your retention schedule.

Access review records by group

Keep periodic exports of Metabase groups, their data and collection permissions, and the people in each group, with the reviewer's sign-off. These records show who can reach personal fields and whether that access still matches the need. Where you restrict columns or rows, keep the rule definitions with the review. Confirm which permission features your edition includes before you promise column-level restriction in the documentation.

Application database backup and upgrade records

Keep a dated record of each application database backup, each upgrade and the Metabase version running before and after. Metabase runs migrations automatically during upgrades, so the backup is the only practical rollback point. Record restore tests as well as backups, since a backup that has never been restored is weak evidence of availability and integrity under Article 32. Note the version support status so you can show the instance is patched.

Processor and transfer documentation

Hold the contracts, data processing terms and sub-processor lists for every provider that touches personal data, including your hosting provider and any AI provider you connect. For each one, record where data is stored and whether any remote access from a third country occurs, since EDPB Guidelines 05/2021 treat remote display of data as a transfer. Document your assessment of third-country legal exposure and the transfer mechanism you rely on, and have counsel review it.

EDPB Guidelines 05/2021

Questions teams ask about GDPR and self-hosted Metabase

Does self-hosting Metabase make it GDPR compliant?

No. Self-hosting keeps query results and stored data inside infrastructure you control, which helps with transfer and processor questions, but it does not make the deployment compliant by itself. The GDPR places duties on the controller and any processor, including security of processing under Article 32 and breach notification under Articles 33 and 34. Your organization still needs a lawful basis for the personal data, a record of how access is granted and reviewed, retention rules for audit data, and a way to answer data subject requests. Metabase's outbound connections, such as anonymous usage data and AI providers, also need to be decided and documented before go-live.

What drives the effort of a GDPR review for Metabase?

The main drivers are the number of data sources Metabase connects to, how many people and groups need access to personal fields, whether AI features are enabled, where the application database and backups are stored, and which identity provider signs users in. Each outbound setting, such as MB_ANON_TRACKING_ENABLED, needs a decision and an owner. Cost comes from the scope agreed in writing before work starts, and the quote should list which items are reviewed, which configuration changes are made, and which evidence is handed over. Ask whether the scope includes testing of access controls, not only documentation.

Can an open source Metabase install meet the access and logging controls?

Partly. The open source edition does not include SSO, row and column level permissions, or usage analytics and auditing. According to Metabase's pricing page, those features are included only in the Pro and Enterprise plans. Open source installs can still use group-based data permissions and Google sign-in or LDAP, and you can limit retention of audit-related tables with MB_AUDIT_MAX_RETENTION_DAYS, where the minimum is 30 days and 0 means indefinite retention. Where you need per-user field restrictions or an audit trail of who ran which query, plan a paid tier or confirm the gap with your compliance team before relying on the open source edition.

How long does a GDPR review of a self-hosted Metabase take?

The duration depends on the scope, the number of systems in view and how quickly your team can provide configuration, data source lists and access records. No fixed duration is set by the GDPR itself, so this should be confirmed with the partner against the written scope. Ask for a timeline that separates setup review, configuration changes, evidence collection and any retest. Ask also which decisions need input from your legal or data protection team, because those approvals often take longer than the technical work.

What does the work need from our own team?

You need named owners for data protection, identity and access, and the databases Metabase connects to. Your team should provide the list of data sources, the groups and users who need access to personal fields, the retention period your policy requires for audit data, and the decision on AI features and anonymous usage reporting. Someone must also approve changes to the production instance and confirm which outbound connections your network policy allows. Without these inputs, the review can document Metabase settings but cannot show how your organization applies them.

Do we need a GDPR certificate for Metabase?

No. The GDPR requires no audit, attestation or certificate. Article 42 certification is voluntary, is issued for at most three years by accredited certification bodies or supervisory authorities, and does not reduce the controller's or processor's responsibility for compliance. What your customers and supervisory authorities will usually ask for is evidence: records of processing, access reviews, retention settings, and documented decisions on transfers and outbound data. DeployOpen prepares systems, controls and evidence for assessments, but it does not issue audit reports, attestations or certifications.

Are AI features a GDPR concern in self-hosted Metabase?

They can be. When AI features use the Metabase AI service or your own provider, prompts, table and field names, and samples of field values are sent to the provider. Where those fields contain personal data, the provider becomes a recipient that must be covered by your processing records and contracts, and transfers outside the EEA must meet Chapter V conditions. Decide whether AI features are enabled before go-live, confirm the provider's location and terms, and restrict which tables and fields are exposed to the feature.

Where personal data flows in a self-hosted Metabase

The diagram starts with users querying dashboards and saved questions in the Metabase JAR, which runs inside the boundary of your own infrastructure. Personal data stays in the connected warehouses and the application database you operate, and the Metabase JAR reads from the warehouses to answer queries. Two outbound paths sit outside that boundary: anonymous usage data, which MB_ANON_TRACKING_ENABLED controls, and any AI provider, where prompts, table and field names and sample values are sent. The marked transfer point is where you must check the provider's location before enabling AI features.

Personal data paths from users to warehouses, with outbound telemetry and AI provider transfers marked.

How DeployOpen scopes and delivers GDPR configuration and evidence

DeployOpen plans, configures and documents a self-hosted Metabase so that outbound connections, audit table retention and personal field access are set deliberately and can be reviewed. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts. The GDPR legal analysis remains with your privacy and legal team.

How we scope

  • Inventory the Metabase version, deployment model and every outbound connection in your environment before work starts.
  • Map which databases, personal fields and user groups Metabase will reach, and who needs access to each.
  • Agree in writing which settings, controls and evidence items are in scope, and which decisions stay with your privacy team.

How we build

  • Configure environment variables for anonymous usage data, token checks and AI features to match the decisions your team has made.
  • Set audit table retention with the audit retention variable and confirm the value against your documented retention schedule.
  • Restrict personal fields through groups, data permissions and database roles, then test that restricted users cannot query them.

How we hand over

  • Deliver a configuration record listing each setting, its value and the reason it was chosen for your deployment.
  • Provide test results showing which users can and cannot see personal fields, with the queries used to check them.
  • Document the outbound connections, AI data flows and retention settings so your compliance team can review them.

How we support

  • Retest permissions and outbound settings after each Metabase upgrade, using the release notes and version support dates.
  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants that continuity.
  • Confirm with your privacy counsel any transfer, processor or lawful basis question that the configuration raises.

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.