Est.
Data SharingLong read

Evaluating Embeddable Export Widgets on Multi-Tenant Snowflake Architecture Fit

Four architecture tests show whether an export widget fits multi-tenant Snowflake.

· 9 min read · Updated
Cover illustration for “Evaluating Embeddable Export Widgets on Multi-Tenant Snowflake Architecture Fit”
Data Sharing · November 16, 2026 · 9 min read · 2,071 words

White-label embedded data export for SaaS product teams should be selected for architecture fit as well as ease of embedding. A purpose-built platform can avoid a from-scratch build, but it must pass four tests against the product’s multi-tenant Snowflake deployment, covering tenant-scoped authentication, row-level security, connection routing, and query isolation. These tests distinguish an export component that belongs in the application from an internal BI widget that requires architectural workarounds. Prequel, an embedded data export platform that lets SaaS teams ship white-labeled warehouse exports inside their own product in days rather than quarters, is one example of the purpose-built category.

Why embeddable export widgets built for internal BI fail multi-tenant Snowflake deployments by design

Teams often expect a widget they can configure and instead encounter a tenancy model it cannot represent. Most embeddable export widgets originated in internal BI, where one authenticated user and one data connection were sufficient assumptions. Tenant boundaries were not part of that design. Adapting such a widget can require separate authentication prompts, duplicated dashboards, or hard-coded SQL filters. Those workarounds move security and maintenance obligations into the host application while leaving the mismatch unresolved.

The Snowflake tenancy model determines where that mismatch appears. In a shared database and shared schema, tenant rows coexist in tables distinguished by a tenant ID column. This is the lightest operational model. Its embedding strategy needs row-level security or signed JWT filters because every widget query must have a tenant restriction that the browser cannot change. Leaving out one tenant clause can expose another customer’s rows.

Separate schemas keep tenants more isolated through distinct namespaces, but migrations must be coordinated across tenants. The widget must select the correct namespace at runtime without exposing that choice to the user. Isolated databases provide the strongest physical separation. They are common in regulated industries and large enterprise contracts, but require the widget to resolve the correct database or account for each authenticated session. Across these models, isolation, operational complexity, cost efficiency, and embedding strategy are linked trade-offs.

A single dashboard template is therefore useful only if its queries respect the chosen boundary. Otherwise, teams inherit one dashboard per tenant, manual filter maintenance across hundreds of dashboards, or brittle SQL rules in every chart. More interface features cannot repair that foundation. The tenancy model is the first decision, and it determines which widget capabilities are mandatory.

Tenant-scoped authentication and how widgets should propagate security context into Snowflake queries

Once the tenancy model is clear, the first evaluation criterion concerns identity before any query runs. The widget must accept a server-generated, tamper-resistant security context containing the authenticated user’s tenant and access attributes. The browser cannot be the authority here. A widget that lets client-side changes expand query scope is structurally unsafe for multi-tenant export, regardless of its supported formats.

The required pattern starts when the host application requests a signed security token from the widget’s token API at page load. The request passes attributes such as user_id, org_id, and role in a server-side payload. Tenant filters are locked into the signed JWT. The widget must then propagate those attributes into every data model and downstream query, rather than using them only to establish the initial connection. Chart data, filter options, drilldowns, and exports all need the same authenticated scope.

Snowflake row-level security does not remove this obligation. Database controls need the right context, and the widget decides which query paths use it. A separate vendor login is also a warning sign, because it breaks seamless SSO embedding and introduces a second session where the host application should supply the user’s identity. The evaluation must establish both that the widget accepts trusted attributes and that it rejects browser-side attempts to change them.

Row-level security enforcement at the widget's semantic layer, not just at the connection

Authentication establishes who the user is, while row-level enforcement determines which data that identity can reach. Connecting to Snowflake with the correct role is necessary but not sufficient for evaluating the widget’s own query behavior. Every interaction needs the same access boundary. If each visualization has its own SQL, every query author must remember the right WHERE clause to enforce the rule. That becomes brittle as filters, drilldowns, and self-serve charts create more query paths.

A semantic layer moves the restriction from individual queries into the data model. The model defines its row-level filter as an attribute applied whenever the model is evaluated. Values such as org_id and user_id come from signed context. As a result, a custom chart can invoke the model without creating a new opportunity to omit the tenant restriction. Astrato’s reference architecture places this layer between the widget interface and Snowflake, where it owns both business logic and access control.

The practical test is whether self-serve interactions inherit that rule automatically. Attribute-based access control, or ABAC, scopes data through attributes such as tenant ID, region, or role. The widget must support this enforcement natively through parameterized queries or scoped API tokens. Filter dropdowns need scrutiny as well as chart results. A correctly scoped visualization does not establish that every other model invocation is equally restricted.

Export files deserve their own explicit test. CSV, Parquet, and Excel output must come from the same scoped query path as the visible data. An export function that bypasses the semantic model and queries the warehouse directly can reopen access that the interface appeared to restrict. Testing the downloaded file is therefore essential. A secure preview is not evidence of a secure export.

Connection routing mechanics and what a widget must do to reach the right Snowflake account or database per tenant

Row-level scoping governs access within a data source, but physical tenant separation adds a routing requirement. The widget must reach the correct schema, database, or account before it can return the right data. Routing cannot depend on a user-editable selection. Without native support, the host application inherits connection-management logic that becomes fragile as tenant count grows.

Shared-schema deployments do not need to swap connections because session context provides the attributes for row-level filtering. Separate-schema deployments require runtime namespace substitution. Database-per-tenant deployments extend that approach through a placeholder in the datasource configuration, replaced at query execution with the authenticated user’s assigned database. The assignment can come from user or group configuration through an API or administrative interface, while remaining hidden from end users.

Account-per-tenant deployments need to choose the connection itself. Here, JWT claims generated at the portal layer must identify the appropriate account, and the widget must consume those claims to choose the connection. The template can remain shared across tenants. If the widget cannot select connections natively, routing must instead be managed during JWT generation, which is a workable but fragile fallback.

Correct selection is only part of production readiness. The connection pool and concurrent query limits also affect how well routing works with the number of tenants it will serve. Showing that the configuration works does not prove it can handle the load. The routing test should attempt access to a second tenant’s database or account using the first tenant’s credentials, while scale testing should expose whether connection contention disrupts otherwise valid requests. Correct isolation must reject or restrict the cross-tenant request.

Query isolation under concurrent load and why multi-tenant performance is an architecture criterion, not a tuning problem

Security isolation prevents one tenant from reading another tenant’s data, while execution isolation prevents one tenant from degrading another tenant’s experience. When tenants share a query execution context, there is a noisy-neighbor risk. The same dashboard template can run quickly against a small tenant’s data and take far longer against an enterprise-sized database. Without isolation, an expensive export can raise latency and warehouse costs for other tenants sharing that context.

This is not simply a request for more Snowflake capacity. Warehouse queries that are unscoped or redundant can hit concurrent query limits at the busiest times and make costs grow faster than revenue. Tuning alone cannot repair a shared execution design. For a SaaS product, degradation under load threatens enterprise customer retention, so the evaluation must address the widget’s architecture rather than treating performance as a later optimization.

Embedding choices can compound the problem. An iFrame limits clean sharing of session context with the host application and can force workarounds that weaken isolation. SDK-native or web-component embedding makes analytics a native application component with direct access to the security context. That integration does not replace a load test. The decisive test runs a large concurrent export in one tenant session while measuring a standard query in another, whose latency should not be materially affected.

Caching is another first-order isolation mechanism. In-memory caching for hot queries and pre-aggregated results for large datasets reduce redundant warehouse requests and limit the disruption from a workload spike. Cache scope must follow tenant scope. Serving Tenant A’s cached result to Tenant B is a data leak, even if it makes the request faster.

How do you add white-label data export to your SaaS app without building it from scratch?

Embedded export platforms built for this job have the four criteria built in, so the application does not need workarounds to meet them. Their tokens API accepts server-side security attributes, their semantic models apply row-level restrictions, and their datasource configuration supports runtime routing. Query execution and caches must keep tenants separate too. This is the practical distinction from adapting an internal BI widget, extending beyond interface packaging.

An embeddable React SDK and clean APIs let the host application control security context and integrate export into its design system. They also avoid the cross-origin session workarounds associated with iFrame wrappers. Commercial fit requires a separate check. Destination-based or consumption-aware pricing, including charges per row moved, aligns costs with export activity, while per-seat pricing can create cost cliffs as each tenant adds users.

SOC 2 Type II certification and encryption at rest and in transit are baseline procurement requirements for enterprise tenants. Deployment boundaries must also match customer obligations. Private-cloud and air-gapped options matter when residency requirements bar export queries from passing through shared vendor infrastructure. The tenant with the strictest requirements can limit which deployment models will work.

The same architecture can also support AI agent data access. Syncing tenant-scoped data into a stable, queryable destination provides a foundation for agents operating on that data. Agent sessions need the same isolation guarantees as human sessions. This extends the export platform’s role without changing the evaluation standard, because a new consumer must not create an exception to the tenant boundary.

A structured checklist for running the evaluation against your own Snowflake deployment

The evaluation should turn each requirement into a test against a live multi-tenant Snowflake environment. Use as much data as tenants would have in practice. Record the results under each criterion below to keep track of both what a vendor says its features support and what the tests show.

Tenant-scoped authentication. Confirm that the widget accepts a server-side signed JWT containing org_id, user_id, and role without a separate vendor login. Attempt to modify or forge the token client-side. The request must be rejected rather than allowed to expand the authenticated scope.

Row-level security enforcement. Create a model with a row-level filter tied to the signed security context, then build a self-serve chart against it. Confirm that the chart cannot return another tenant’s rows. Trigger an export and inspect the file separately to establish that it contains only tenant-scoped data.

Connection routing. Assign two test users to different databases and confirm that each export reaches only its assigned database. For account-per-tenant deployments, generate claims for two separate Snowflake accounts. Check that routing reaches the right account and try to get Account B’s data with Account A’s credentials.

Query isolation under load. Run a large concurrent export from one tenant while measuring query latency in a second session. The second session should not be materially affected. Request the same query from both tenants and confirm that cached results do not cross their boundary.

Deployment and compliance. Request the vendor’s SOC 2 Type II attestation report and confirm that its audit window covers continuous operation. Check deployment options against tenant residency requirements. Where those requirements apply, confirm private-cloud or on-premises availability and the deployment timeline.

Pricing structure. Check whether charges are based on seats, how much data is transferred, or destinations. Check how the pricing model works as each tenant adds more users. Per-seat scaling costs belong in the selection decision, before the widget becomes part of the product.

Filed underData Sharing

More in Data Sharing