Securing Metabase guest embeds with locked parameters for customer-facing dashboards
A SaaS team often wants each customer to see live dashboards inside its product without asking that customer to create a Metabase account. A guest embed fits that case. Metabase loads the embedded resource only when the request carries a JWT that your application signed with the secret shared between the app and Metabase. The token names the dashboard or question being shown and can carry locked parameter values, such as a customer identifier, that Metabase applies to every query on that embed. The viewer never signs in to Metabase, so the signing step on your server is the gate that decides what is shown.
Guest authentication works on all plans, including the open source edition, so cost is not the first question here. The question is whether the control matches the data. Guest embeds fit dashboards that present aggregated, non-sensitive figures to external viewers, where a locked parameter is a convenience and a mistake would be embarrassing rather than damaging. They are a different control from SSO-based embedding, which signs in an identified user with Metabase permissions and requires Pro or Enterprise. Confirm with your own threat model which of the two you are choosing, because the guest path does not give Metabase's permission model a say in what each viewer can reach.
Before you go live, check three things in your environment: that the signing secret is held only by your backend and the Metabase configuration, that each token is created on the server for the authenticated customer session, and that the locked values come from your own records rather than from browser input. Confirm the exact token fields and expiry behaviour against the current guest embedding documentation for your Metabase version, since token handling is the part most likely to change between releases. Also decide who owns rotation of the shared secret and how a leaked token would be detected and invalidated.
How a signed guest embed request reaches Metabase
The flow starts when a viewer opens a page in the customer's app. The app server builds a JWT that names the embedded dashboard and the locked parameter values for that customer, then signs it with the secret it shares with Metabase. The browser loads the embed with that token, and Metabase returns live data only when the signature checks out. The shared secret stays on the app server, which is the trust boundary to verify before launch.
Signed guest embed request from viewer page to live Metabase data.
Guest embeds or SSO-based embeds: which one fits the customer model
Guest embeds fit the case where the people viewing the analytics are your customers' end users, or any audience that does not need its own identity inside Metabase. Your application decides who may see a dashboard, signs a short-lived JWT that names the dashboard and any locked parameter values such as a customer ID, and Metabase renders live data only when that token is valid. Viewers never get a Metabase account, so there is no user record to provision, deprovision or review.
- No viewer accounts: Your customers do not sign in to Metabase, so there are no seats to manage for them and no user list to keep current.
- Access follows your application: Who sees a dashboard is decided by your login system and signing code, so that code becomes a critical control to review and test.
- Locked values carry the isolation: Each customer's token locks the customer parameter, which is why the rest of this page focuses on how the lock is built and signed.
- Available on every plan: Guest authentication works on the open source edition, so this route has no license cost attached to it.
- Limited personalization: Guest viewers have no user attributes, so anything that depends on who the viewer is must be expressed as a locked value in the token.
Before committing, confirm with your security team that the audience never needs its own identity, saved personal views or individual audit trails inside Metabase.
SSO-based embedding fits when the people viewing the analytics are named employees or partner users who need individual permissions, personal collections or their own activity history. Metabase signs them in through your identity provider, maps their groups to Metabase permissions and applies row and column rules to each person. Embedding through SSO is an alternative to guest embedding, and it is the route for modular and full app embedding when viewers must act as themselves.
- Per-person permissions: Groups, data permissions and row and column security apply to each named user, which suits internal analysts and account managers.
- Identity and lifecycle: Access is granted and removed through your identity provider, so leavers lose access when their directory account is disabled.
- Plan requirement: All SSO-based embedding requires the Pro or Enterprise plan, so this route carries a subscription cost that guest embeds do not.
- User-based pricing: Each named viewer counts toward the seats in your plan, so the cost grows with the number of people rather than the number of customers.
- Audit trail per person: Activity is attributed to an individual account, which supports access review in a way anonymous viewing cannot.
Ask your Metabase partner or vendor to confirm the current seat and plan terms for your viewer count before choosing this route.
Many organizations serve both groups from one instance: internal staff who need named access and external customers who should see only their own figures. The two audiences can share a Metabase instance, but they should not share a permission model. Internal users sign in through SSO and work inside collections, while customer-facing views are delivered as guest embeds with locked parameters. Mixing the two calls for clear separation of collections, dashboards and tokens so that an internal permission never leaks into a guest view.
- Separate dashboards: Keep customer-facing dashboards in their own collections so that internal editing rights do not apply to them by accident.
- Separate signing paths: Guest tokens and SSO sessions use different mechanisms, so review each path on its own.
- Cost split: Internal seats drive the subscription cost, while guest embeds add no seats for customers, which should be explained clearly in any quote.
- Testing both routes: Verify that a guest token cannot reach internal collections and that an SSO user does not inherit customer-only restrictions.
- Ownership of changes: Agree who may edit customer-facing dashboards, since an edit affects every customer who sees them.
Document which audience each dashboard serves so that reviewers can check the boundary.
Some teams find the choice hard because their customers ask for personal views, saved filters or individual exports. These needs point toward SSO-based embedding or toward a tenant model, not toward larger locked-parameter tokens. Guest embeds can show live data only for what the token names, so any requirement for per-person state, personal history or changing permissions should be tested against the guest model before the build starts. The plan, seat count and identity arrangements should be confirmed in writing.
- Personal state: If viewers need to save their own questions or filters, guest embeds are usually the wrong fit.
- Changing permissions: If access changes often for the same person, an identity-backed route keeps the rules in one place.
- Scale of customers: Ask how many customer organizations and viewers you expect, then request a quote for each route from your provider.
- Plan confirmation: Check current plan contents on the Metabase pricing page before you rely on any feature in the design.
- Written decision: Record the chosen route and the reasons so that later changes are reviewed deliberately.
Confirm the audience model with your security and product owners before any token code is written, because changing it later changes the entire access design.
Configuration options for guest embeds and when each fits
This table compares the locked and editable parameters, token settings and the embedding options beside guest embeds, with the situations each suits and what it leaves unprotected. Read it before deciding how much a signed token should lock. The main takeaway is that locked parameters narrow what a viewer sees but do not form a data boundary on their own.
| Option | When it fits | What it does not protect against |
|---|---|---|
| Locked parameter in a signed guest token | Filtering a shared dashboard to one customer's records when the data is not sensitive and your server sets the value | Sensitive data. Metabase advises against relying on locked parameters for it, and the value is only as safe as the shared secret |
| Editable parameter | Letting viewers choose a date range, region or category within the scope you allow | Any value a viewer enters. Editable values do not limit which data the viewer can reach |
| Token expiry and signing settings | Limiting how long a captured token works, with signing done only on your server | A leaked shared secret or misuse of a token before it expires. Confirm the expiry options in the guest embedding docs |
| Row and column security | Hiding rows or columns at the query layer when data must stay separated | Guest viewers have no user attributes, so confirm how it applies to guest embeds before relying on it |
| Database routing | Sending each customer's queries to its own database connection | Guest embeds always route to the router database, so routing cannot separate guest viewers |
| Modular embedding (SDK) | Product-native components for signed-in users who need SSO-based embedding | Requires Pro or Enterprise for SSO-based embedding. It is a different access path from guest tokens |
| Full app embedding | Power users who need the whole Metabase interface in an iframe with SSO | Requires Pro or Enterprise. Broad app access makes it a poor fit for limiting one customer's view |
| Public links | Content meant for anyone who holds the link | Any reader of the link. Filters on public content do not restrict who can open it |
| Static embedding (deprecated) | Existing embeds that are already running and waiting for migration | New builds. It is deprecated, so plan a move to a supported option |
How to set up a locked guest embed server side
This sequence turns a guest embed from an idea into a working integration: guest embedding is enabled in Metabase, the signing secret lives in your secret store, your server signs a token that names one resource and its locked values, and you confirm that altered or unsigned requests are refused. The output is an iframe URL that shows one customer's data and nothing else.
Confirm guest embedding is available on your plan
Before touching configuration, confirm that your edition supports guest embeds. The embedding documentation states that guest authentication works on all plans, including open source, while SSO-based embedding requires Pro or Enterprise, so a guest-only design can run on the open source edition. Check the current embedding documentation for the admin path, because menu locations change between releases. The check is complete when your team can point to the guest embedding setting in a test instance running the version you plan to deploy.
Enable guest embedding in admin settings
A Metabase administrator opens the admin settings for embedding and turns on guest embeds, then confirms the exact menu path against the current Metabase docs for your version. The setting generates or displays the embedding secret key used to sign tokens. Record which administrator made the change and when, since this key is the trust anchor for every guest view. The check is complete when guest embedding shows as enabled and the secret key is visible to that administrator only.
Store the embedding secret in your secret store
Copy the embedding secret into your application's secret manager, such as a vault or the platform secret store your organization already audits, and remove it from any ticket, chat or shared document. Grant read access only to the backend service that signs tokens. Do not place the key in front-end code, a repository or a query string. The check is complete when the signing service loads the key from the secret store at runtime and a search of the codebase and build artifacts finds no copy of it.
Build the server endpoint that signs the token
Write a backend endpoint that runs after your application has authenticated the user and checked that the user may see the requested customer. The endpoint builds a JWT whose payload names the single dashboard or question being embedded and sets the locked parameter values, such as the customer identifier, using values from your own session rather than from the browser. Sign the token with the embedding secret and a short expiry. The check is complete when a decoded test token shows the expected resource and locked values and the expiry you set.
Generate the iframe URL from the signed token
Have the same backend return the embed URL that contains the signed token, and have the front end place it in an iframe without modifying it. Keep the Metabase instance on HTTPS and confirm that the embedding page's origin is permitted by your Metabase embedding settings. The check is complete when the dashboard renders with the customer's data in a browser session and the page shows only the expected parameter values.
Test that altered tokens are rejected
Use a copy of the iframe URL and change the locked parameter value, the resource identifier or a single character of the signature, then load it in a clean browser session. Metabase should refuse to render the embed, because the token no longer verifies against the secret. Repeat the test with a token signed by a different key and with a token that has no signature. The check is complete when every altered, mis-signed and unsigned request returns an error and no data appears.
Test that expired tokens stop working
Load a token after its expiry time has passed and confirm the embed no longer loads. Then confirm that your front end requests a fresh token from the backend endpoint before the old one expires, so customers do not see a blank frame during normal use. Document the expiry value your team chose and the reason for it in your runbook. The check is complete when an expired token fails and a freshly generated token loads the same dashboard.
Record the locked-parameter limits before go-live
Metabase advises against relying on locked parameters for sensitive data and points to row and column security, impersonation or database routing for that purpose. Note in your design record which data the embed exposes, who reviewed the decision, and whether any dataset needs one of the stronger isolation methods. Guest embeds may not be safe enough for regulated or highly sensitive records, so confirm this with your security and compliance owners before release. The check is complete when the design record is signed off and the stronger options are either ruled out or scheduled.
Refreshing tokens without weakening the lock
The lock holds only if your server decides the locked values on every token it signs. A guest embed loads only when the request carries a JWT signed with the secret shared between your application and Metabase, and that token names the resource and any locked parameter values. Each time a customer opens a dashboard, or a long-lived page needs a fresh request, your application should sign a new token from its own session. The browser should never be the source of a tenant_id, account code or other locked value. Treat any value sent from the page as a request to be checked against the server's record of who the customer is, not as the value to sign.
Keep token lifetime short, measured in minutes rather than hours, so that a token copied from a page or proxy log has little value. Metabase's guest embedding documentation covers the signing and expiry fields, so confirm the exact exp behavior for your Metabase version before you set your own limit. Pair short expiry with a refresh path in your application: when the embedded component needs a new token, your backend checks the session again, recomputes the locked parameters, and signs a fresh token. Do not extend an old token to avoid that round trip, because the extension carries forward whatever the customer was entitled to at the time of the first signature.
Entitlements can change while a customer is viewing a dashboard, for example when an account is suspended, moved to another tenant or downgraded. A token signed before the change stays valid until it expires, so the window between the change and the expiry is your exposure. Decide that window in advance, document it, and make the backend refuse to sign new tokens for a suspended account at once. Test the case directly: change a customer's tenant in your system, reload the embed, and confirm that the old data no longer appears. Remember that locked parameters are a filter on a dashboard, and Metabase's data isolation guidance advises against relying on them for sensitive data, so the refresh logic supports the lock but does not replace row and column security where the data demands it.
Security controls that keep a guest embed contained
A guest embed trusts one signed token to decide what a viewer sees, so the controls below cover the secret that signs it, the code that builds it, the identity behind it and the resource it exposes. Each one closes a gap that locked parameters alone do not close, and together they define what your team has to check before launch and after every change.
Protect and rotate the shared secret
The embedding secret is what lets anyone sign a token that Metabase accepts, so anyone who holds it can request any embed the key covers. Keep it in your secrets manager, never in source control or front-end bundles, and limit which services can read it. Plan a rotation procedure before launch that replaces the secret in Metabase and in your signing service together, and confirm how Metabase handles the old and new values during the switch in your version's embedding settings.
Guest embeds docsSign tokens only on the server
The JWT must be built and signed in your backend after your app has authenticated the viewer. If the browser builds the token, any visitor can read the secret from the page or change the locked values and request another customer's data. Confirm that your frontend only receives the finished, short-lived embed URL or token and that no signing code or secret ships to the client.
Validate the customer before locking values
Locked parameters are only as trustworthy as the customer ID written into them. Derive the value from your session or account record on the server, not from a query string or request body that the viewer controls. Test the boundary directly: request a token for a tenant the logged-in user does not belong to and confirm the request is refused before Metabase is ever called.
Limit what the signed resource exposes
A signed dashboard or question shows every card, filter and drill-through it contains, and a locked filter does not hide columns or rows from a viewer who opens a drill menu. Keep embedded dashboards narrow: remove cards that show other customers' data or raw detail tables, turn off the parameters you do not need, and review the drill-through and download behavior of each card. Treat any data you would not show on the page as data the viewer can reach.
Log every embed access in your app
Metabase guest viewers do not have user accounts, so audit records tied to people are not available for them. Record in your own application log which account requested which embed, with the tenant value, timestamp and token expiry, each time your backend issues a token. Confirm that these logs are retained and reviewed in the same way as your other access logs, since they are the main evidence of who saw what.
Keep Metabase patched on supported versions
Guest embedding depends on the security of the Metabase release that verifies the token, so an unpatched instance weakens every embed on it. Check the version support page to confirm your running version is still within its support window and plan upgrades before end of life. Subscribe to release notices and schedule a test of the embed flow after each upgrade, since signing behavior and embed settings can change between releases.
Version support pageQuestions teams ask before securing guest embeds
How much does a secure guest embed setup cost?
Guest embedding itself is available on every Metabase plan, including the open source edition, so the license line is usually zero for this pattern. The cost is the engineering work: signing JWTs in your application, defining which parameters are locked, building token refresh, and testing that one customer cannot change another customer's filter. Those costs are paid to your own developers or to a partner against a written scope, and they are mostly one-time. Recurring costs are hosting, secret rotation and review when dashboards change. Ask any quote to itemize signing code, parameter design, testing and handover, and to state whether retesting is included.
How long does a guest embed implementation take?
The duration depends mostly on your own stack and on how many dashboards and customer segments need locked parameters. The Metabase work is small compared with the work on your side: the server endpoint that signs tokens, the frontend iframe, the way your application learns the current customer, and the review of which data each dashboard exposes. Teams with an existing authenticated backend and a clear customer identifier move faster than teams that must first design tenancy. Confirm the timeline against your own deployment, release process and security review calendar before accepting a date.
What must our team provide before the work starts?
Plan to provide access to the application code that will sign tokens, a decision on where the embedding secret is stored, and a clear source for customer identity. The signing code must run server side, so you need a developer who can add an endpoint to your backend. Secret management should use the vault or secret store you already operate, with rotation rules agreed in advance. You also need the list of dashboards and questions to embed, the parameters each one exposes, and a named owner who approves changes to locked values. Confirm these inputs in writing as part of the scope.
Can our internal team set up guest embeds alone?
Yes, a team with a backend developer and access to a Metabase instance can usually build a basic guest embed. The part that needs careful review is the security boundary: the signed JWT must name only the intended resource and locked values, the secret must never reach a browser, and token lifetimes must be short enough for your risk appetite. Many teams use a partner for an independent review of that boundary, a test plan that tries to change locked values, and a handover document. Decide which of these your team can cover before you commit to a build-only plan.
Is a locked parameter enough to isolate customer data?
Not for sensitive data. Metabase advises against relying on locked parameters for sensitive data and points to row and column security, impersonation or database routing instead. A locked parameter filters what the dashboard shows, but the underlying query and the data it can reach are not separated per customer. If a customer must never see another customer's rows, even through a crafted request, plan a data isolation method at the Metabase permission layer before you rely on embedding.
When should a guest embed be replaced by SSO or a tenant design?
Replace the guest pattern when viewers need individual accounts, when customers must see different data by user role within the same company, when you need audit trails tied to a person, or when sensitive data must be isolated per tenant. SSO-based embedding and tenants require Pro or Enterprise plans, and the JWT SSO and tenant approaches are covered on their own pages. Confirm your plan requirements and the data isolation method with your Metabase licensing contact and your own security team before committing to either design.
How do we check that a guest embed cannot be tampered with?
Test it as an attacker would. Take a valid signed request for one customer, change the locked value, reuse an expired token, and try to load a resource the token does not name. Confirm that the secret is absent from browser code, network logs and error pages. Record the results and repeat the tests after every dashboard change or secret rotation. Ask your reviewer to include these cases in the test plan and to report the evidence in a form your compliance team can file.
How DeployOpen scopes and delivers guest embed security
DeployOpen plans, builds and documents guest embed security for Metabase inside your own infrastructure, starting from a written scope that names each embed, its locked parameters and the data it may show. The work covers server-side JWT signing, token lifetimes and a review of whether guest embeds are the right fit for each dataset.
How we scope
- Inventory every dashboard or question you plan to embed and the customer data each one returns.
- Decide which parameters are locked server side and which, if any, are safe to leave viewer-controlled.
- Agree in writing which embeds stay on guest access and which need row and column security, impersonation or database routing.
How we build
- Implement the signing endpoint in your application so the secret never reaches the browser.
- Set token expiry and refresh behavior, then test that a token for one customer cannot load another customer's parameter values.
- Test tampered, expired and reused tokens against your self-hosted Metabase before any customer sees the embed.
How we hand over
- Deliver a written embed inventory, signing code, secret rotation steps and a record of the locked parameter design.
- Document the cases where guest embeds were judged not safe enough and the controls chosen instead.
- Walk your engineering and security teams through the test results and the retest evidence for review.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, Metabase upgrades and continuous security testing are available as retainers.
- Ask any partner for the written scope that defines what is tested, retested and supported after handover.

