8000 GitHub - sfc-gh-pkommini/tios: Vulnerability and Threat Intelligence on Snowflake
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sfc-gh-pkommini/tios

Repository files navigation

linting-action

Vulnerability and Threat Intelligence on Snowflake - Vuln Asset Search Streamlit App

TIOS is a user interface that has the following features:

  1. TIOS Dashboards
  2. Search App to search of vulns that impact snowflake assets

Setting Up a Local Python Environment

  1. Install miniconda

    brew install miniconda
    conda init zsh
  2. Create a python 3.10 environment compatible with snowpark

    conda create \
      --name streamlit-tios python=3.10 \
      --override-channels \
      -c https://repo.anaconda.com/pkgs/snowflake
  3. Activate environment and install packages

    conda activate streamlit-tios
    pip install --upgrade -r requirements-dev.txt
  4. Create .streamlit/secrets.toml

     [snowflake]
     user="<my_ldap_id>"
     authenticator="externalbrowser"
     account="my_account_id"
     warehouse="DEV_WH"
     database="my_db"
     schema="TIOS_DEV"
     role="my_tios_role"
    

With this your local environment is ready to run the application.

Running TIOS Locally

Activate the environment and run the app

conda activate streamlit-tios
streamlit run tios/1_tios_app.py

Deploying to SIS from Local

We use snowcli to do the deployments.

  1. Create ~/.snowflake/config.toml to setup connections required by snowflakecli. You'll need account locator

     [connections]
    
     [connections.tios_demo]
     account = "my_account_id" # Use account locator
     user = "my_username"
     authenticator = "externalbrowser"
     database = "my_db"
     schema = "TIOS_DEMO"
     warehouse = "MY_WH"
     role = "my_tios_role"
    
  2. Install and Setup snowflakecli using instructions

    pip install git+https://github.com/Snowflake-Labs/snowcli.git@v2.2.0
  3. Deploy the Streamlit App

    snow streamlit deploy -c tios_demo --project=./ --replace

About

Vulnerability and Threat Intelligence on Snowflake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
39D3

Contributors 2

  •  
  •  

Languages

0