Skip to content
See Also

Image Extras installable feature ​

Optional Feature

This feature is not preinstalled in Kloud Workspace. Install it with the features system first.

The image-extras feature installs four tools to generate an SBOM, scan container images for known vulnerabilities, and inspect image layers.

Installation ​

Install the bundle using the features system:

sh
# Manual installation
ws-cli feature install image-extras

# Or at boot time
docker run \
  -e WS_FEATURES_ADDITIONAL_FEATURES="image-extras" \
  ghcr.io/kloudkit/workspace:v0.6.0

Typical Workflow ​

sh
# Generate a CycloneDX SBOM for an image
syft ghcr.io/kloudkit/workspace:dev -o cyclonedx-json=sbom.cdx.json

# Scan the SBOM against current CVE feeds
grype sbom:sbom.cdx.json --only-fixed

# Second opinion, scanning the image layer by layer
osv-scanner scan image ghcr.io/kloudkit/workspace:dev

# Inspect image layers interactively
dive ghcr.io/kloudkit/workspace:dev

What's Included ​

The image-extras feature installs four CLIs to /usr/local/bin:

  • syft: Generate a Software Bill of Materials (SBOM) for a container image, directory, or filesystem.
  • grype: Vulnerability scanner. Reads an SBOM from syft (or scans an image directly).
  • dive: Interactive TUI for exploring a container image's layers and discovering bloat.
  • osv-scanner: Layer-aware vulnerability scanner from Google.

Released under the MIT License