|
This is unreleased documentation for Vulnerability Scanner 0.13.0-dev. |
SBOMscanner Quick Start
This guide explains how to install SBOMscanner and run an image scan.
|
This is a technical preview. Features may change, be removed, or not ship in the final release. Not intended for production use. |
This guide has these steps:
-
Deploy the SBOMscanner stack in a Kubernetes cluster.
-
Run an image scan with a
Registrycustom resource.
Requirements
Before you deploy SBOMscanner, prepare these items:
-
A Kubernetes cluster, for example a kind cluster.
-
A default Storage Class defined inside of the cluster
-
helminstalled locally -
kubectlinstalled locally -
cert-managerinstalled in the cluster -
CloudNativePGinstalled in the cluster
Install cert-manager
Install cert-manager:
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--set crds.enabled=true \
--wait
|
For configuration details, see the cert-manager documentation. |
Install CloudNativePG
Install CloudNativePG:
helm repo add cnpg https://cloudnative-pg.github.io/charts
helm repo update
helm install cnpg \
--namespace cnpg-system \
--create-namespace \
--wait \
cnpg/cloudnative-pg
For CloudNativePG configuration, see Using CloudNativePG (Recommended) in the Helm values documentation. You can use an external PostgreSQL instance instead. See Using an External PostgreSQL Instance for configuration details.
Deploy SBOMscanner
Install SBOMscanner from your local machine:
Install the Helm chart
helm repo add kubewarden https://charts.kubewarden.io
helm repo update
helm install sbomscanner kubewarden/sbomscanner \
--namespace sbomscanner \
--create-namespace \
--wait
|
SBOMscanner is highly available by default. If your environment has limited resources, reduce the replica count:
This configuration is suitable for development environments where high availability is not required. |
Verify the Deployment
After installation, make sure that all pods are running:
kubectl get pods -n sbomscanner
Example output:
sbomscanner sbomscanner-controller-7f568c88dc-bmjgs 1/1 Running
sbomscanner sbomscanner-controller-7f568c88dc-gcgbn 1/1 Running
sbomscanner sbomscanner-controller-7f568c88dc-q7hbh 1/1 Running
sbomscanner sbomscanner-nats-0 2/2 Running
sbomscanner sbomscanner-nats-1 2/2 Running
sbomscanner sbomscanner-nats-2 2/2 Running
sbomscanner sbomscanner-storage-5f596cd8f8-4t7z8 1/1 Running
sbomscanner sbomscanner-worker-d9d68c5c-5dtck 1/1 Running
sbomscanner sbomscanner-worker-d9d68c5c-qcp7n 1/1 Running
sbomscanner sbomscanner-worker-d9d68c5c-tlpgm 1/1 Running
Summary
The SBOMscanner deployment is running. You can scan images and generate reports. == Run a Scan
This section explains how to create a registry source and trigger an automated scan.
Prepare a registry.yaml file
Before you run a scan, define a Registry custom resource. SBOMscanner
uses this resource to fetch images.
apiVersion: sbomscanner.kubewarden.io/v1alpha1
kind: Registry
metadata:
name: test-registry
namespace: default
spec:
uri: ghcr.io
repositories:
- name: kubewarden/sbomscanner/test-assets/golang
Prepare a scan-job.yaml
The ScanJob CR tells SBOMscanner which registry to scan.
apiVersion: sbomscanner.kubewarden.io/v1alpha1
kind: ScanJob
metadata:
name: test-scanjob
namespace: default
spec:
registry: test-registry
Wait for Results
When the scan completes, examine the generated SBOMs and vulnerability reports:
kubectl get sbom -n default
kubectl get vulnerabilityreport -n default
The command shows output similar to this:
NAME CREATED AT
2ca3e0b033d523509544cb6f31c626af2a710d7dbcc15cb9dffced2e4634d69b 2025-06-10T10:26:38Z
...
Summary
You created a Registry resource and triggered an automated scan.
The Querying reports guide explains how to inspect images, SBOMs, and vulnerability reports.