{"id":31482335,"url":"https://github.com/snowflake-labs/sentry","last_synced_at":"2025-10-02T07:47:51.396Z","repository":{"id":235568075,"uuid":"789159440","full_name":"Snowflake-Labs/Sentry","owner":"Snowflake-Labs","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-05T20:59:56.000Z","size":1054,"stargazers_count":19,"open_issues_count":11,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-05T22:31:23.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snowflake-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-19T20:24:30.000Z","updated_at":"2025-08-05T20:59:59.000Z","dependencies_parsed_at":"2024-06-12T01:59:59.019Z","dependency_job_id":"46142b7b-8011-4ec6-b138-fc9497310083","html_url":"https://github.com/Snowflake-Labs/Sentry","commit_stats":null,"previous_names":["snowflake-labs/sentry"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Snowflake-Labs/Sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FSentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FSentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FSentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FSentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snowflake-Labs","download_url":"https://codeload.github.com/Snowflake-Labs/Sentry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FSentry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974415,"owners_count":25908396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-02T07:47:49.665Z","updated_at":"2025-10-02T07:47:51.391Z","avatar_url":"https://github.com/Snowflake-Labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a repository containing the Streamlit version of the [Snowflake\nsecurity dashboards][1].\n\n![Main page screenshot](./docs/assets/main_page.png \"Sentry main page screenshot\")\n\n# About\n\nThis project is first and foremost a set of tools aimed to help with step #2 of\nCIRP incident response, **identification**. It is not meant to be a complete\nend-to-end solution, but rather a reference implementation that needs to be\nadapted to the company's needs.\n\nThis project contains a set of queries with reference information that explains\nwhat kind of information those queries provide.\n\nThe provided tools can be used individually through stored procedures.\nAlternatively, the project contains a Streamlit in Snowflake UI that can be\ndeployed as:\n\n- a Streamlit application\n- Snowflake native application\n- docker image\n- stored procedures\n\nAlternatively the queries are kept as `.sql` files in a [dedicated directory][4]\nwith accompanying README files.\n\n# Deployment\n\nSentry can be quickly deployed using the Git integration with Streamlit in\nSnowflake:\n\n```sql\n-- Optional: set up dedicated role to own the Streamlit app\nUSE ROLE useradmin;\nCREATE OR REPLACE ROLE sentry_sis_role;\nGRANT ROLE sentry_sis_role TO ROLE sysadmin;\n-- End of role setup\n\n-- Optional: database setup\nUSE ROLE sysadmin;\nCREATE OR REPLACE DATABASE sentry_db;\n-- End of database setup\n\n-- Optional: if using a custom warehouse\n-- TODO: Drop this when issue #8 is implemented\nCREATE OR REPLACE WAREHOUSE sentry WITH\n    WAREHOUSE_SIZE = XSMALL\n    INITIALLY_SUSPENDED = TRUE\n;\nGRANT USAGE ON WAREHOUSE sentry to ROLE sentry_sis_role;\n-- End of warehouse setup\n\nUSE ROLE ACCOUNTADMIN;\nCREATE OR REPLACE API INTEGRATION gh_snowflake_labs\n    API_PROVIDER = GIT_HTTPS_API\n    API_ALLOWED_PREFIXES = ('https://github.com/Snowflake-Labs')\n    ENABLED = TRUE;\n\nUSE ROLE sysadmin;\nCREATE OR REPLACE GIT REPOSITORY sentry_db.public.sentry_repo\n    API_INTEGRATION = GH_SNOWFLAKE_LABS\n    ORIGIN = 'https://github.com/Snowflake-Labs/Sentry/';\n\n-- Optional, if using custom role\nGRANT USAGE ON DATABASE sentry_db TO ROLE sentry_sis_role;\nGRANT USAGE ON SCHEMA sentry_db.public TO ROLE sentry_sis_role;\nGRANT READ ON GIT REPOSITORY sentry_db.public.sentry_repo TO ROLE sentry_sis_role;\nGRANT CREATE STREAMLIT ON SCHEMA sentry_db.public TO ROLE sentry_sis_role;\nUSE ROLE accountadmin;\nGRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE sentry_sis_role;\nUSE ROLE sentry_sis_role;\n--\n\nCREATE OR REPLACE STREAMLIT sentry_db.public.sentry\n    ROOT_LOCATION = '@sentry_db.public.sentry_repo/branches/main/src'\n    MAIN_FILE = '/Authentication.py'\n    QUERY_WAREHOUSE = SENTRY; -- Replace the warehouse if needed\n\n-- Share the streamlit app with needed roles\nGRANT USAGE ON STREAMLIT sentry_db.public.sentry TO ROLE SYSADMIN;\n```\n\n# See also\n\nAdditional information, including installation and upgrade instructions is\navailable on the [Sentry documentation website][doc].\n\n[1]:\nhttps://quickstarts.snowflake.com/guide/security_dashboards_for_snowflake/index.html\n\n[4]: ./src/queries\n\n[doc]: https://snowflake-labs.github.io/Sentry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowflake-labs%2Fsentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowflake-labs%2Fsentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowflake-labs%2Fsentry/lists"}