Connecting Metabase to Starburst and Trino as a governed query layer
If you run Starburst or Trino over several sources and want Metabase to query them, the Starburst connection is the route Metabase documents, and it works as a single query layer over the systems behind it. Metabase maintains official drivers for Starburst and Presto, so the first decision is which driver matches your engine and version, and whether your Metabase edition and support expectations fit that choice. Confirm the driver and the supported engine versions in Metabase's Starburst documentation before you build anything, because a federated layer inherits the limits of its driver. Add each catalog and schema you intend to expose, and decide up front which of them should appear in Metabase at all.
Connection impersonation is the control that matters most for a governed layer. Metabase documents impersonation access for Starburst and Trino, along with several other databases, and it requires a Pro or Enterprise plan. Without impersonation, queries from Metabase users typically run under one shared service account, so Trino's own roles cannot tell one person's access from another's. With impersonation enabled, Metabase passes the signed-in user's identity to the database so that Trino roles and grants decide what each SQL user can read. Plan the Trino role model before enabling it, and test each role against the catalogs it should and should not reach. Confirm the exact setup steps in the impersonation documentation for your Trino or Starburst version.
Before you rely on this design, check three things in your own environment: that the people who need federated access are on a plan that includes impersonation, that the Trino authorization rules are tested for every user group, and that the warehouse is not the only place access is enforced. Metabase's own permissions and the source systems behind Trino each add a layer, and an audit should show that a user denied in Trino cannot reach the data through any Metabase path. Ask your Starburst or Trino administrators and your Metabase contact to confirm how they handle query logs, service accounts and password rotation, because those choices decide how well access can be reviewed later.
What you need before connecting Metabase to Trino
Most delays in a Starburst or Trino connection come from settling edition, identity and network questions before anyone opens the connection form. The cards below cover the items to confirm with your Metabase plan, your query engine, your network team and your security team, so the connection and impersonation setup can be built in one pass.
Metabase edition and plan
Connection impersonation, which makes Trino roles enforce access for SQL users, requires a Pro or Enterprise plan. Open source and Starter can connect to Starburst or Trino, but every user then queries through one shared database account. Confirm which plan you will buy before designing roles, because the access model depends on it.
Impersonation docsCluster version and catalogs
Record the Starburst or Trino version you run and confirm support for it in the vendor documentation, since this page does not state a supported version. List the catalogs Metabase should see, such as the Hive, Iceberg or PostgreSQL catalogs behind your federated queries, and note which schemas hold sensitive data. Each catalog is a separate access decision.
Starburst connection docsDedicated service account
Create a service account for Metabase's own connection rather than reusing a personal login. This account is what Metabase uses for metadata sync and for queries run without impersonation, so it should hold only the read access Metabase needs. Ask your platform team how the account's password or token is stored and rotated.
Network path from the Metabase host
Confirm that the Metabase host can reach the Trino or Starburst coordinator on the port your cluster uses, and that any firewall, proxy or load balancer in between allows the traffic. Test from the actual host or container, not from a laptop, because the outbound route is what Metabase will use. Note who owns the firewall rule.
TLS settings for the coordinator
Decide whether the coordinator uses TLS, and where its certificate chain comes from. Confirm the root or intermediate certificate Metabase must trust, and whether your environment requires certificate validation. Ask your security team to approve the trust store change before the connection is tested, so the connection is not weakened to get it working.
Trino roles and group mappings
Write down which Trino roles will map to which people, and how your identity provider groups feed those roles. Impersonation only limits what a user sees if these roles are defined and granted correctly on the cluster. Agree the mapping with the team that owns Trino access control before Metabase is configured.
How to set up the Starburst or Trino connection in Metabase
This sequence takes a self-hosted Metabase from a new Starburst or Trino connection to a verified query layer where per-user Trino roles decide what SQL users can see. Each step ends with a check you can run before moving on.
Confirm the driver and plan before configuring
Before you open the admin settings, confirm that your Metabase edition includes the Starburst or Presto driver that Metabase maintains, and decide whether you need impersonation, which requires a Pro or Enterprise plan. Ask your Trino administrator which catalogs, schemas and roles the Metabase service account will use. The check is a written list of the plan you are running, the Trino endpoint and the service account name, approved by the data platform owner.
Create the Starburst database connection
As a Metabase administrator, go to Admin settings, open Databases, choose to add a database, and select the Starburst driver. Enter the Trino or Starburst host, port, catalog and the service account credentials, then keep TLS enabled for the connection. Save the connection using a dedicated account with read-only grants, not an administrator account. The check is that the connection test succeeds and the database appears in the list with its driver name.
Select catalogs and schemas to sync
In the database settings, choose which schemas Metabase should sync and scan, and exclude schemas that hold staging data, personal sandboxes or secrets you do not want in search results. Limiting the sync keeps the metadata Metabase stores to what analysts need and reduces load on the cluster. The check is a saved list of included schemas that your data owner has reviewed, which you can compare later against the table list in the data browser.
Run the initial sync and field scan
Trigger a manual sync from the database settings, then run a field value scan on a small set of tables you know well. Watch the sync activity in the admin area for errors such as missing catalog privileges or unreadable schemas, and fix them in Trino grants rather than in Metabase. The check is a completed sync with no permission errors, and table and column counts that match what you see when you list the schema directly in Trino.
Verify a test query returns expected rows
Open a new SQL question against a table with a known row count, run a simple count and a filtered select, and compare the results with the same query run in the Trino CLI or Starburst console using the same service account. Differences usually point to a catalog or schema mismatch, a timezone setting or a session property. The check is matching counts and sample values across both clients, recorded in your test notes so later changes can be compared against this baseline.
Enable impersonation for the Trino connection
On a Pro or Enterprise plan, open the database's permission settings and turn on impersonation, then select the Trino role or session attribute that Metabase should pass for each user's group. Map each Metabase group to the Trino role that carries its grants in your catalog, and confirm the service account is allowed to set those roles. The check is that the impersonation settings save without error and the mapping list matches the role design approved by your security team.
Confirm restricted users see only allowed data
Create or pick a test user in a restricted Metabase group, run the same SQL question as the administrator, and compare the rows and columns returned with what the mapped Trino role permits. Repeat the test with a second restricted user in a different group to confirm the results differ as designed. The check is a short test record showing that each restricted account returns only permitted rows, and that a denied query fails with a Trino authorization error rather than returning data.
How impersonation makes Trino roles enforce access for SQL users
With a shared service account, every Metabase user runs queries as one Trino identity, so Trino sees the same grants for everyone and any row or column restriction must be rebuilt inside Metabase. With connection impersonation, Metabase passes the signed-in user's identity to Trino on each query, and Trino's own roles and access rules decide what that person can read. Impersonation access is listed for Starburst/Trino among the databases that support it, and it requires a Pro or Enterprise plan (Metabase impersonation docs). Confirm the exact Starburst or Trino settings for your version in the Metabase Starburst documentation before you build anything.
The Trino side is where most of the design work sits. Decide which Trino users or roles map to each analytics audience, then define the catalogs, schemas and tables each role can read, and the row filters and column masks that apply to sensitive fields. Keep the mapping one-to-one with the identities that arrive from your identity provider, so that a person's group membership in Metabase and their Trino role do not drift apart. Metabase group permissions still control what appears in Metabase itself: collections, saved questions, the data sources a group can browse and whether a user can create native SQL. Impersonation narrows what the query can reach, but it does not replace those Metabase settings.
Test the mapping for each user group before rollout. Create one test account per group, run representative native and query-builder questions, and confirm that Trino denies what it should and returns only the permitted rows and columns. Check that a user removed from a group loses access on the next query, and that the Trino audit logs record the expected user for each request. Repeat the test after every Trino or Metabase upgrade, since role and permission handling are part of what a release can change.
How Metabase, Trino and the underlying sources fit together
The diagram starts with people signing in to Metabase, whose application database stores its own users, groups and saved questions. When a question runs against Starburst or Trino, the Metabase server hands the query to the Trino coordinator, which applies roles to the request, and the coordinator then reads the underlying sources through catalogs. Check where the trust boundary sits, which identity Trino sees for each query, and which roles the impersonated user holds.
Users, Metabase, the Trino coordinator and catalogs, with the trust boundary marked.
Mapping Metabase groups and users to Trino roles and catalogs
This table compares each access layer in a Metabase to Trino setup, from the Metabase group down to the Trino catalog and schema. Read it top to bottom to see which system owns each mapping and which check confirms that a SQL user cannot see more than intended. The main takeaway is that Metabase permissions and Trino roles must agree, and the Trino side is what enforces access under impersonation.
| Layer | What to map | Owning system | Check that confirms it |
|---|---|---|---|
| Identity source | Each person's Trino username matches the username used at sign-in in Metabase | Identity provider and Metabase user record | Test a sample user and confirm the Trino query runs as that user |
| Metabase group | One Metabase group per data access profile, such as finance analysts or marketing readers | Metabase admin settings | Review group membership list against the approved access request |
| Metabase data permissions | Which databases and collections each group can query or view, mapped to a Trino connection | Metabase admin (data permissions) | Log in as a test user in each group and confirm only expected databases appear |
| Impersonation attribute | Which Trino role each Metabase group or user is passed to when impersonation is enabled | Metabase impersonation settings, confirmed against the Metabase impersonation docs | Run a query that should fail for an out-of-scope role and confirm Trino denies it |
| Trino role | Role definitions that grant the minimum catalog and schema privileges for each profile | Trino administrator (access control configuration) | Run SHOW SCHEMAS and SELECT as each role and compare against the role design |
| Catalog and schema | Which catalogs, schemas and tables each Trino role can read, including any sensitive tables excluded | Data owner with the Trino administrator | Query a restricted table under each role and confirm the expected denial message |
| Group sync from identity provider | Automatic assignment of Metabase groups from identity provider groups requires a Pro or Enterprise plan | Identity provider and Metabase (paid plan) | Confirm on the plan in use that group changes in the identity provider reach Metabase as expected |
| Ongoing review | Periodic review of who holds each role, plus removal of leavers and unused mappings | Access owner and Trino administrator | Quarterly export of role membership compared against current identity provider groups |
Securing the Trino connection and the credentials Metabase holds
A Metabase connection to Starburst or Trino puts a query engine and its credentials in front of many users at once. The controls below cover the service account, the transport, the secrets, who can change connections, and the audit trail, and they only hold together if each one is checked on the live system.
Dedicated least-privilege service account
Create a Trino user used only by Metabase for the non-impersonated path, and grant it read access to the catalogs and schemas its dashboards need and nothing more. Avoid reusing an engineer's account or an admin role, because every Metabase user who does not have impersonation enabled will run queries as this account. Ask the platform team to confirm the grants on the Trino side, since the account's permissions are what actually limit data exposure.
TLS to the coordinator
Require encrypted connections between Metabase and the Trino or Starburst coordinator, and confirm in the connection settings that the client trusts the coordinator's certificate chain. Plaintext traffic would expose query text, results and any password to anyone on the network path between the two hosts. Confirm with your network team which certificate authority issues the coordinator certificate and where that root must be installed on the Metabase host.
Starburst docsRotating and storing credentials outside source control
Keep the Trino password or token out of configuration files committed to Git, and inject it into Metabase through your secrets manager or the environment at deploy time. Set a rotation schedule for the service account and record who owns the rotation, because a rotated password that is not updated in Metabase will break every dashboard built on the connection. Ask whether your Starburst deployment supports token-based authentication before choosing a password.
Restricting who can manage database connections
Only a small administrator group should be able to add, edit or delete database connections, because a connection that points at a different coordinator or uses a different account changes what every downstream user can reach. Review the admin group membership on a fixed cadence and remove people who changed roles. Confirm in your own instance how the admin setting is applied, since the permission model differs between the open source and paid plans.
Managing databases docsImpersonation depends on a paid plan
Connection impersonation, which makes Trino roles enforce access for SQL users, requires a Pro or Enterprise plan. On Open Source, every query runs with the service account's rights, so the Trino-side grants become the only control. Decide before rollout whether your data classification requires impersonation, because retrofitting it later changes how users and roles are mapped on both sides.
Impersonation docsAuditing Metabase activity
Usage analytics and auditing, which show who ran which queries and when, are included only in the Pro and Enterprise plans. Row and column level permissions are also limited to those plans, so on Open Source you cannot filter rows inside Metabase itself. Verify row-level and column-level policies in Trino independently by testing them with a sample of real user accounts, and do not treat a Metabase permission setting as proof that Trino enforces the same rule.
Common Trino and Starburst connection failures and fixes
This table lists the failures teams most often hit when Metabase connects to Starburst or Trino and impersonation is configured. Read each row as a symptom, the likely cause, and the first check to run before changing anything else. Most problems trace back to network path, TLS trust, the service account, or the plan tier.
| Symptom | Likely cause | First check |
|---|---|---|
| Connection refused or timeout from the Metabase host | The coordinator host, port or network path is blocked from the server running Metabase, often by a firewall, security group or missing proxy route | From the Metabase host, confirm the coordinator hostname resolves and the coordinator port accepts a TCP connection |
| TLS or certificate errors on connect | Metabase does not trust the certificate chain presented by the coordinator, or the hostname does not match the certificate | Confirm the certificate's subject and chain match the hostname in the connection settings, and that the internal CA is available to the Metabase JVM |
| Authentication failure with the service account | Wrong username or password, an expired credential, or an authentication method the coordinator does not accept for that user | Log in to the coordinator with the same account outside Metabase, then compare the username and auth method in the connection form |
| Impersonated users see empty or unexpected results | The Trino roles, grants or row filters for the impersonated user are missing or broader than expected, so the query runs under a different identity than intended | Run a test query as that user in Trino, and check the Metabase impersonation attribute mapping and the user's Trino role assignments |
| Catalogs missing after sync | The service account lacks visibility to those catalogs, or the catalog is excluded in Metabase's sync and scan settings | Run SHOW CATALOGS as the service account in Trino, then review which catalogs are enabled for sync in Metabase |
| Impersonation option not shown | The Metabase plan is Open Source or Starter, and impersonation requires Pro or Enterprise | Check the plan under the Metabase admin settings; if it is Open Source or Starter, impersonation will not appear until the plan changes |
Questions teams ask before connecting Metabase to Trino
Does connection impersonation with Trino need a paid Metabase plan?
Yes. Impersonation access is available for Starburst and Trino, but it requires a Pro or Enterprise plan. Open Source and Starter users can still connect to Starburst or Trino with a single service account, but they cannot have Trino roles enforce access for each Metabase user. Confirm the current plan terms on the Metabase pricing page before you commit, since Pro is listed per month with the first 10 users included and additional users cost $12 per month, while Enterprise is priced by quote starting at $20,000 per year. Your quote should show which plan the impersonation design requires for your user count.
What drives the effort of connecting Metabase to Trino?
The main drivers are the number of catalogs and schemas Metabase must expose, the identity model that decides who maps to which Trino role, and how much role design already exists in Trino. A small set of catalogs with clear groups is a much smaller job than many catalogs with overlapping grants. Also count the connectors behind each catalog, because each one may have its own permission behavior, and the number of Metabase groups that need separate data access. Ask any partner to break the quote down along these lines.
Can our internal team set up Trino impersonation without outside help?
Often yes, if the team already administers Trino and has someone who owns its authorization rules. The work combines Metabase admin tasks, a Trino connection, and role design that a Trino administrator must agree to. Teams without recent Trino authorization experience usually benefit from a review of role mapping before go-live. Be realistic about capacity: someone must test each role against real queries, and that testing is where most surprises appear.
What do we need to provide before the work starts?
You need administrative access to the Trino or Starburst cluster, or a Trino administrator who can apply role and catalog changes. You also need a non-production environment with representative catalogs, plus named owners for each data domain who can approve which roles see which data. Provide a list of Metabase groups, the identity provider groups they come from, and any existing Trino roles. Without these inputs, the design stays theoretical and testing stalls.
How long does a Metabase to Trino connection take?
Duration depends on scope: the number of catalogs, how many roles must be designed or changed, how many user groups are involved, and whether a test environment already exists. A single catalog with one role model is a much shorter engagement than a multi-catalog federated setup with new identity mapping. Ask any provider for a timeline tied to written milestones, including design sign-off, test environment validation and production cutover, and confirm which steps depend on your Trino administrators' availability.
What does a fixed-scope DeployOpen engagement cover for this topic?
Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. For a Metabase to Trino connection, that scope would normally be settled around the catalogs in use, the identity and role model, the Metabase plan required for impersonation, and the test and cutover steps. Ask for the written scope to name the Metabase and Trino versions in use, the catalogs covered, who performs each Trino change, and what verification proves that Trino roles limit SQL access as designed. Ongoing support and upgrades are available separately as retainers.
Do Trino roles and Metabase permissions both control access?
Only the layer you configure controls access for each user. With impersonation enabled for Pro or Enterprise, Trino roles decide what each Metabase user can query, so the Trino side must be tested with the same identities people use in Metabase. Check that Metabase groups and data permissions match what Trino enforces, and verify access with a test account in each role. Confirm the exact behavior with your Metabase and Trino versions before relying on it.
Keeping the Trino connection working after go-live
The first ongoing check is impersonation, because Trino enforces access for SQL users only when the Metabase connection behaves as the role you designed. Any change to Trino roles, group grants, catalog access or the mapping between Metabase users and Trino users can silently change what a person sees. Build a short re-test into every change window: sign in as a representative user from each Metabase group, run queries against the schemas and catalogs that group should reach, and confirm that restricted tables are refused. Keep the test queries and expected results in version control so the same checks run after each change. Impersonation is available for Starburst and Trino on Pro and Enterprise plans, so confirm your plan still covers it before relying on it for access decisions, and check the current setup steps in Metabase's impersonation documentation.
Metabase upgrades are the second recurring risk. Take a backup of the application database before every upgrade, since the application database holds the saved questions, dashboards, permission groups and connection settings for this Trino connection. Then follow the upgrade path in the upgrade guide, moving release by release when you are upgrading from an older version. After each upgrade, repeat the impersonation checks above, because a driver or permission change can alter query behavior even when the connection still appears healthy. Confirm the rollback method you will use before you start, whether that is restoring the pre-upgrade backup or another documented procedure, and rehearse it in a non-production copy where possible.
Review sync scope whenever Starburst or Trino gains a new catalog, schema or connector. Metabase syncs the databases and schemas it can see, so a new catalog may appear in the Metabase data model automatically, exposing tables to users who were never meant to browse them. Compare the current catalog list with the sync and visibility settings you approved, and exclude anything that is not yet governed. Ask the Trino administrator to tell you before new catalogs are created, and record each review with its date and approver so you can show an auditor how the connection scope was kept under control.
How DeployOpen scopes and delivers a Metabase to Trino integration
DeployOpen starts with the Trino or Starburst catalogs, the Metabase edition and the roles your SQL users already hold, then writes those into a fixed scope before any connection is configured. The build covers the Metabase connection, impersonation settings, group mapping and verification tests, and the handover documents how your team operates them afterward.
How we scope
- Inventory the Trino or Starburst catalogs, schemas and roles that Metabase users need to query.
- Confirm the Metabase plan, since impersonation for Starburst and Trino requires Pro or Enterprise.
- Agree in writing which connections, groups and test cases are in scope before work starts, as engagements are fixed-scope.
How we build
- Configure the Starburst or Trino connection in Metabase using the official driver and a service account you approve.
- Set up connection impersonation so Trino roles enforce access for SQL users, and check each role's visible data.
- Test denied queries, role mismatches and cross-catalog access, and record the results for your review.
How we hand over
- Document the connection settings, role mapping, impersonation configuration and the reasoning behind each choice.
- Walk your platform and data teams through adding a catalog, a role or a new Metabase group.
- Provide a runbook covering credential rotation, failed-login checks and steps to retest after a Metabase upgrade.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retest the Trino role enforcement after Trino or Metabase version changes that affect the connection.
- Agree the support boundary, response expectations and change process in the written scope.

