Documentation menu

Community Edition

Install the open-source StackRadar Community Edition in your cluster: prerequisites, one Helm command, what to expect, the secrets to replace, and uninstall.

Last updated

The community edition is the same server and dashboard that run app.stackradar.io, installed in your own cluster as the dashboard for that cluster. One Helm chart brings the server, the web UI, a Postgres and the scanner, so the cluster it lands in is already being scanned. The code is AGPL-3.0. Nothing phones home: the only outbound traffic is the advisory feeds.

Want to see the dashboard before installing anything? Open the live demo — read-only, no account needed.

This is the self-hosted install: everything runs in your cluster. To run only the scanner and use the hosted dashboard instead, see the cloud quick start.

Prerequisites

  • A Kubernetes cluster, 1.25 or newer, and a kubectl context that can create a namespace and cluster-wide RBAC. The scanner needs a ClusterRole to list and watch pods; it never writes to the cluster.
  • Helm 3.8 or newer (the chart is published as an OCI package).
  • A default StorageClass. The bundled Postgres claims a 10 GiB volume (2 GiB with the laptop values below).
  • About 2 GB of free memory on one node while the vulnerability mirror is built, and a few hundred MB after. The laptop values trim this to 1 GB.
  • Outbound HTTPS from the cluster to OSV.dev, FIRST (EPSS) and CISA (KEV) for the advisory feeds, and to whichever registries your pods pull from. Nothing else leaves the cluster.
  1. Install the chart

    No values file and no database to bring. Pick the command for the cluster you have.

    Any cluster

    The default install mirrors the common ecosystems: about 1.2 GB of advisory data, which takes 5 to 25 minutes depending on your connection.

    bash
    helm install stackradar \
      oci://ghcr.io/lockdep/helm-charts/stackradar \
      --namespace stackradar --create-namespace

    Laptop cluster (kind, minikube, Docker Desktop)

    Same chart, with trimmed resource requests and an Alpine-only mirror that is ready in about two minutes. It covers most of what a laptop cluster runs. Not for anything you intend to keep.

    bash
    helm install stackradar \
      oci://ghcr.io/lockdep/helm-charts/stackradar \
      --namespace stackradar --create-namespace \
      -f https://raw.githubusercontent.com/lockdep/helm-charts/main/charts/stackradar/values-quickstart.yaml

    The command installs the latest chart release. Add --version to pin one; the releases page lists them, and published versions are immutable.

  2. Check that everything is running

    bash
    kubectl -n stackradar get pods

    Within a minute or two all four pods should be Running:

    output
    NAME                                          READY   STATUS    RESTARTS   AGE
    stackradar-client-7c9d6f8b4d-x2k4q            1/1     Running   0          2m
    stackradar-postgresql-0                       1/1     Running   0          2m
    stackradar-scanner-watcher-6b7f9c5d8-9hq2z    1/1     Running   0          2m
    stackradar-server-5f8b7c6d9-tr4wp             1/1     Running   0          2m

    The server applies its own migrations at start-up and seeds the default organisation and the cluster, so there is no migration step. The scanner starts beside it and its first heartbeats may be rejected for a few seconds until that seed has run. That is expected; it retries. A pod stuck at 0/1 for longer is waiting on its readiness probe, and kubectl -n stackradar logs deploy/stackradar-server says why.

  3. Open the dashboard

    Port-forward the UI (an Ingress comes later, in step 5):

    bash
    kubectl -n stackradar port-forward svc/stackradar-client 3000:3000

    Open http://localhost:3000 and sign in as admin@stackradar.local with the password admin. You are asked to change it before anything else loads.

    A yellow strip above every page says Vulnerability database is being built, one line per feed, with how far each download and import has got. Meanwhile the scanner has already swept the cluster: the Containers and Images pages fill with what is running, with zero findings until the mirror is live. Nothing to do; the strip goes away on its own, and turns red with the error if a feed fails.

  4. Read your first findings

    When the strip is gone, every image has been matched against the mirror. Three places to look first:

    • Dashboard: severity counts across the cluster, and Fix these first, the upgrades that remove the most risk.
    • Images: every running image, worst first. Open one for its findings, split into what your build added and what the base image brought.
    • Containers: the same findings grouped by namespace and workload, with the Helm release or Argo CD application that delivers each one.

    Something looks off? Administration → Overview in the sidebar is the pipeline's health, one tile each for the scanner, inventory, SBOMs, queue, mirror and feeds, with a retry button where one applies.

  5. Keep it: replace the fixture secrets

    The bare install uses a bundled single-node Postgres and public fixture credentials, the same on every install that leaves the defaults. helm install printed a warning naming each one still in effect. Replace them before anyone else can reach the cluster.

    Nothing in the chart is generated for you, because a generated secret would rotate on every GitOps render. Set your own:

    yaml
    # my-values.yaml
    secrets:
      internalServiceKey: <openssl rand -hex 32>
      apiKeyEncryptionKey: <openssl rand -hex 32>   # set once; changing it later makes stored scanner keys unreadable
      authSecret: <openssl rand -base64 32>
    scanner:
      stackradar:
        clusterId: <uuidgen | tr A-Z a-z>
        apiKey: <openssl rand -hex 32>
    bash
    helm upgrade stackradar oci://ghcr.io/lockdep/helm-charts/stackradar \
      --namespace stackradar -f my-values.yaml

    Or provision the Secrets with your own tooling and reference them; the chart README has the key names. The database password is the one that cannot be flipped afterwards: set postgresql.auth.password before the first install, or change it in Postgres and in the values in the same upgrade.

    A hostname instead of the port-forward is a few lines under ingress, and an identity provider a few more under auth.oidc. Both are in the Helm walkthrough, with the resource budget and the move to a Postgres you run.

  6. Uninstall

    helm uninstall removes everything except the database volume, which is kept on purpose so an accidental uninstall loses nothing. Delete it yourself when you are done:

    bash
    helm uninstall stackradar --namespace stackradar
    kubectl -n stackradar delete pvc data-stackradar-postgresql-0   # the database volume, kept on purpose
    kubectl delete namespace stackradar

No Kubernetes at all?

If you have Docker Desktop, turn on its Kubernetes and use the laptop command in step 1: that is the real product on a real cluster. Without any cluster, Docker Compose runs the server, the UI and Postgres on one machine. It cannot run the scanner, so you upload an SBOM by hand to see findings.

bash
curl -LO https://raw.githubusercontent.com/lockdep/stackradar/main/deploy/compose/docker-compose.yml
docker compose up -d

Same default login, same fixture secrets. The Compose walkthrough has the two curl lines that upload a sample SBOM, and the two-minute Alpine-only setting.

The manual

The rest of the self-hosting documentation lives next to the code, in the repository's docs/self-hosting/, so a page and the release it describes change together.

  • Kubernetes with Helm — The full walkthrough: Ingress, resources, sign-in providers, the split topology, GitOps, and where to look when something is wrong.
  • Docker Compose — The try-out without a cluster, including the SBOM upload that stands in for the scanner.
  • Users and local login — The bootstrap admin, roles, creating local users, lockouts, and resetting an admin you are locked out of.
  • OpenID Connect — Keycloak, Authentik, Microsoft Entra ID, Okta and the rest, with a group mapped to platform admin.
  • Your own Postgres — Pointing the install at a database you run, and moving off the bundled one.
  • Upgrading — What to read before an upgrade and in which order; how migrations run; rolling back.
  • Backups — What to back up (one database, one encryption key), how, and how to prove the restore works.

Community Edition or the cloud?

One cluster, self-hosted, free: the community edition. Several clusters in one dashboard, across networks and accounts, with email alerts and nothing to run but the scanner: the cloud, from one free cluster on the pricing page. Both run the same images, and the repository README lists the differences row by row.

Questions about a self-hosted install go to GitHub Discussions; defects to Issues.

Next steps