Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SBOMs (Software Bill of Materials)

DockPanel can generate an SPDX 2.3 JSON SBOM for any deployed Docker app’s image, listing every package present in the container. This is the composition companion to image vulnerability scanning, which reports risk.

SBOMs are useful for:

  • Compliance — the EU Cyber Resilience Act (CRA) requires SBOMs for software placed on the EU market by September 2026.
  • Supply-chain auditing — answer “what’s actually inside this image?” without trusting the registry’s metadata.
  • Vulnerability triage — feed the SBOM into other scanners (Grype, Trivy, Dependency-Track) for a second opinion or richer reporting.

SBOM generation is disabled by default — admins opt in from the Settings UI.

Enable

  1. Go to Settings → Services → SBOM Generation.
  2. Click Install Generator. DockPanel downloads syft (~80 MB) into /var/lib/dockpanel/scanners/. Self-contained — nothing is written to /usr/local/bin, and it lives entirely inside the agent’s hardened sandbox.

That’s the whole setup. SBOMs are generated on demand — there is no scheduled sweep.

Download an SBOM for a deployed app

  1. On the Apps page, click the row of any running app to open its scan drawer.
  2. Click Download SBOM. The first time, DockPanel runs syft against the app’s image (2 – 4 minutes), persists the result, and triggers a browser download of <app>.spdx.json. On every later click it serves that persisted document immediately — no re-scan.
  3. Click Regenerate instead to force a fresh syft scan, bypassing the persisted document. Do this after redeploying under a mutable tag (e.g. :latest) — the SBOM is keyed by the image reference string, so a rebuild that keeps the same tag won’t be noticed automatically.

Verify the SBOM matches the binary you’re auditing

The SBOM endpoint returns SPDX 2.3 JSON. Quick spot-checks:

# How many packages does syft see in this image?
jq '.packages | length' my-app.spdx.json

# What's the SPDX document namespace (proves which image was scanned)?
jq -r '.documentNamespace' my-app.spdx.json

# List package + version pairs
jq -r '.packages[] | "\(.name)\t\(.versionInfo)"' my-app.spdx.json

The SBOM also pairs cleanly with grype to repeat the vulnerability assessment without re-pulling the image:

grype sbom:./my-app.spdx.json

Verifying DockPanel’s own release SBOMs

Since v2.7.10, DockPanel itself ships SPDX SBOMs for dockpanel-agent, dockpanel-api, and dockpanel (CLI), all signed with cosign keyless via Sigstore. See SECURITY.md for the full verification snippet — short version:

cosign verify-blob \
  --certificate dockpanel-agent.spdx.json.pem \
  --signature  dockpanel-agent.spdx.json.sig \
  --certificate-identity-regexp '^https://github\.com/ovexro/dockpanel/\.github/workflows/release\.yml@refs/tags/v.+$' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  dockpanel-agent.spdx.json

A successful verify proves the SBOM was produced by this repository’s release workflow and recorded in the public Rekor transparency log.

API

All endpoints require admin auth.

MethodPathPurpose
GET/api/sbom/settingsWhether the syft binary is installed
POST/api/sbom/installInstall syft
POST/api/sbom/uninstallRemove syft
POST/api/sbom/generateGenerate SBOM for {"image": "..."}
GET/api/sbom/image/:refFetch the persisted SBOM for an image ref
POST/api/apps/:name/sbomGenerate SBOM for an app’s image (returns JSON)
GET/api/apps/:name/sbomDownload the persisted SBOM as application/json attachment

Storage

SBOMs live in the image_sbom table — one row per image, overwritten on regeneration. Stored as JSONB so the API serves the SPDX document directly without re-parsing on the agent.

The syft binary lives at /var/lib/dockpanel/scanners/syft. Uninstalling from the UI removes it.

Relationship to image vulnerability scanning

Image scanning (grype) and SBOM generation (syft) are siblings — both share the install pattern, both target the same images, but they answer different questions:

  • Image Vulnerability Scanning (grype) — what’s broken? Per-app CVE counts, deploy gating, scheduled rescans.
  • SBOM Generation (syft) — what’s in there? On-demand SPDX export per image, suitable for compliance and external tooling.

Operators who care about supply-chain provenance should enable both.