Streamlit in Snowflake, now embeddable in your own pages

Since September 2026 a Streamlit in Snowflake app can render inside a page you host. How embedding works, the new EMBED privilege, and the security choices.

Code for this article

cloudcentrix-labs/streamlit-snowflake-embed

A Streamlit dashboard, and the backend and host page that embed it through Snowflake’s embed URL endpoint.

In CI. Runs pytest on the dashboard and on the embed request against a mocked Snowflake, then smoke-tests both servers.

1 post is written against it

Streamlit in Snowflake has been the quickest way to put a data app in front of people who already have a Snowflake login. The limit was always that last part. The app lived in Snowsight, so customers, suppliers and most of the business never saw it. On 15 September 2026 Snowflake made embedding generally available: a Streamlit app can now render inside a page you host yourself.

How it works

The app appears in your page through a single <iframe>. Three things make that safe:

  1. An account administrator registers the allowed origins. Only pages on those domains may frame the app.
  2. Your backend asks Snowflake for an embed URL. It calls a REST endpoint over HTTPS, so Snowflake credentials never reach the browser.
  3. The URL is short-lived and single-use. Your page places it in the iframe, and the viewer's session starts.

The endpoint is:

HTTP
POST /api/v2/databases/{database}/schemas/{schema}/streamlits/{name}:generate-embed-url

Embedding applies to Streamlit apps on the container runtime.

The new EMBED privilege

Minting an embed URL needs a new privilege as well as USAGE on the app:

SQL
GRANT EMBED ON STREAMLIT mydb.public.my_app TO ROLE embed_minter;

EMBED is not implied by OWNERSHIP, which is a deliberate guard: owning an app does not mean you can publish it outside Snowflake. Create a dedicated role for minting and give it USAGE and EMBED on that one app and nothing else.

Two ways to run the app

  • Viewers without a Snowflake account. The app runs as a service user, and everyone sees the same data. This suits a customer portal or a public dashboard, and it means the app's query logic is your only access control.
  • Viewers with a Snowflake account. The app runs as each viewer, under their own privileges. Row access and masking policies apply as they would in Snowsight.

Choose per app, and choose early. Moving from the first model to the second later means revisiting every query the app runs.

What to check before you ship

  • Regions. Embedding is available in commercial regions. Government regions and China are not supported.
  • Network policies apply twice. Once to the mint request from your backend, and once to the viewer's session. Test both paths.
  • Untrusted content. Do not render user-supplied HTML or markdown in an embedded app. The page around it is yours, and so is the risk.
  • Mint on demand. Because URLs are single-use and short-lived, generate one per page load. Do not cache them.

Why this changes the build-or-buy conversation

A common pattern at mid-sized companies is a BI tool for internal reporting and a separate web application, with its own API and database copy, for anything customer-facing. Embedding removes much of the reason for the second stack. The data stays in Snowflake, the app is Python the data team already writes, and the host page only needs a backend route that mints a URL.

It also pairs with the October update that lets you share a Streamlit app with an individual user as well as a role, which makes small, targeted apps easier to hand out.

If you already have a Streamlit app in Snowflake that people keep asking to see without a login, that is your first candidate.

Further reading

More on Snowflake.

The only post on streamlit-snowflake-embed so far. These share its topic.

All 18 posts

Put this to work on your own site.

Merylene Schoeman wrote this post. Send us a few lines about the app and where it needs to appear.

Talk to an engineerWe reply within one business day.

What happens next

  1. You send a few lines about the problem.
  2. One of us replies within one business day.
  3. You talk it through with the engineer who would do the work.
  4. You get a fixed scope, timeline and price before any work starts.

We sign an NDA before the first conversation if you want one.

Or write to info@cloudcentrix.co.za or call +27 82 445 4311.