CURRENT_USER() and row access policies all see that
viewer’s own Snowflake user.
Prerequisites
- An active Snowflake connection, with its security integration set up in Snowflake. Until one exists, the element is disabled in the Add Element pop-up.
- Every viewer needs a Snowflake user whose login name equals their Curator username and that is granted the connection’s role, as for any Snowflake connection. Viewers who are not signed in see “Sign in to view this app.”
- The app runs on a container runtime with Streamlit 1.53.0 or later. Apps on a warehouse runtime cannot be embedded.
- The portal’s address is registered in Snowflake, and the connection’s role has
USAGEandEMBEDon the app. The Streamlit embedding section of the Snowflake connection shows the statements to run. See Allowing Streamlit apps on pages. - The portal is served over
https. Snowflake does not embed apps in pages served over plainhttp.
Adding a Streamlit app to a page
- Find the page you’d like to add the app to, or click the ”+ New Page” button.
- Select the element you’d like to use, or click the plus (+) icon to add a new blank element.
- In the “Add Element” pop-up, click on the Analytic Elements tab at the top and select the Snowflake Streamlit App option.
- In the Snowflake Streamlit App Settings section on the left-hand side, fill in the fields:
- Click Save.
What viewers can see
Good to know
- Each viewer may load up to 20 apps per minute.
- Curator records each app load in its audit log with the viewer, the page, and the app, never the address Snowflake returned.