This is a a repository containing the Streamlit version of the Snowflake security dashboards.
The repository includes an action that deploys the application in an account configured through Github action secrets.
To use this:
-
Run the SQL setup
-
Fork this repo
-
Fill in the action secrets:
SIS_GRANT_TO_ROLE
– which role should have access to the Streamlit
(e.g.ACCOUNTADMIN
)SIS_QUERY_WAREHOUSE
– warehouse for running StreamlitSNOWFLAKE_ACCOUNT
– which Snowflake account to deploy Streamlit inSNOWFLAKE_DATABASE
– which Snowflake database to deploy Streamlit inSNOWFLAKE_SCHEMA
– which Snowflake schema to deploy Streamlit inSNOWFLAKE_USER
– user to authenticateSNOWFLAKE_PASSWORD
– password to authenticateSNOWFLAKE_ROLE
– authentication roleSNOWFLAKE_WAREHOUSE
– warehouse to execute deployment queries
-
Run the "Deploy Streamlit in Snowflake" action
-
Clone this repository and change current directory to its root
-
Build and run the docker image:
$ docker build . -t sentry:latest -f deployment_models/local-docker/Dockerfile ... naming to docker.io/library/sentry:latest $ docker run --rm --mount type=bind,source=$(pwd)/.streamlit,target=/app/.streamlit,readonly --publish-all sentry:latest ... You can now view your Streamlit app in your browser. ...
Replace
$(pwd)/.streamlit
with a path to the directory containing Streamlit secrets toml file.--publish-all
will assign a random port to the container; you can usedocker ps
to determine which port is forwarded to8501
inside the container. -
(if needed) find out the port that Docker assigned to the container using
docker ps
:$ docker ps --format "{{.Image}}\t{{.Ports}}" sentry:latest 0.0.0.0:55000->8501/tcp
-
Open
http://localhost:55000