Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snyk-oss-category

Universal Broker UI

A small Streamlit app that walks through Snyk Universal Broker setup: session initialization against the Snyk REST API, tenant selection, connections, credentials, org integration, and a generated docker run command. The HTTP client lives in ub_client.py (UniversalBrokerClient).

Prerequisites

  • Python 3.10+ (3.10 is what this repo was developed with)
  • A Snyk personal API token with access to Universal Broker (the in-app help notes that service accounts are not supported for app install)
  • Network access to your chosen Snyk API region (see Snyk regional hosting)

Quick start (local)

  1. Clone (after you create the GitHub repo and push, or clone your existing remote):

    git clone https://github.com/joeshope/ub-wizard
    cd ub_gui
  2. Create and activate a virtual environment

    python3 -m venv .venv
    source .venv/bin/activate   # Windows: .venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Run the app

    streamlit run app.py
  5. Open the URL Streamlit prints (usually http://localhost:8501).

First-time use in the browser

  1. Expand Start / Resume.
  2. Choose Snyk region or a custom REST API base URL (and broker server URL if custom).
  3. Paste your API token, optionally set SSL options, then click Initialize session.
  4. If you did not enter a Tenant ID, pick a tenant from the list when it appears.
  5. Use the rest of the wizard for installs, deployments, connections, credentials, and Generate Docker Command as needed.

Optional fields (install ID, deployment ID, connection ID, client ID/secret) are for resuming an existing setup.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages