SBOMscanner Quick Start
Welcome to the SBOMscanner Quick Start!
|
This is a technical preview. Features may change, be removed, or not ship in the final release. Not intended for production use. |
This guide will walk you through the following steps:
-
Deploying the SBOMscanner stack in a Kubernetes cluster
-
Running an automated image scan using a
Registrycustom resource
Requirements
Before deployment, you need to prepare the following:
-
A Kubernetes cluster (you can simply run a kind cluster)
-
A default Storage Class defined inside of the cluster
-
helminstalled locally -
kubectlinstalled locally -
Credentials for the SUSE Application Collection
-
cert-managerinstalled in the cluster -
CloudNativePGinstalled in the cluster
Authenticate to the SUSE Application Collection
The SUSE Security Vulnerability Scanner Helm chart, its dependencies, and all their container images are distributed through the SUSE Application Collection. See the Application Collection authentication documentation for how to obtain your credentials.
Log in to the registry with Helm:
helm registry login dp.apps.rancher.io \
--username <your-username> \
--password <your-token>
The cluster also needs credentials to pull the container images. Each of
the following sections creates an image pull secret named
application-collection in the namespace where the chart is installed.
Install cert-manager
To install cert-manager from the SUSE Application Collection, run the following commands:
kubectl create namespace cert-manager
kubectl create secret docker-registry application-collection \
--namespace cert-manager \
--docker-server=dp.apps.rancher.io \
--docker-username=<your-username> \
--docker-password=<your-token>
helm install cert-manager oci://dp.apps.rancher.io/charts/cert-manager \
--namespace cert-manager \
--set crds.enabled=true \
--set 'global.imagePullSecrets={application-collection}' \
--wait
|
For more information on configuring cert-manager, please visit the cert-manager documentation |
Install CloudNativePG
To install CloudNativePG from the SUSE Application Collection, run the following commands:
kubectl create namespace cnpg-system
kubectl create secret docker-registry application-collection \
--namespace cnpg-system \
--docker-server=dp.apps.rancher.io \
--docker-username=<your-username> \
--docker-password=<your-token>
helm install cnpg oci://dp.apps.rancher.io/charts/cloudnative-pg \
--namespace cnpg-system \
--set 'global.imagePullSecrets={application-collection}' \
--wait
To customize the CloudNativePG installation, refer to Using CloudNativePG (Recommended) in the Helm values documentation. You can also bring your own PostgreSQL instance instead of using CloudNativePG. See Using an External PostgreSQL Instance for configuration details.
Deploy SBOMscanner
Follow these simple steps from your local machine to get SBOMscanner up and running:
Install the Helm chart
Install the suse-security-vulnerability-scanner Helm chart from the
SUSE Application Collection:
kubectl create namespace sbomscanner
kubectl create secret docker-registry application-collection \
--namespace sbomscanner \
--docker-server=dp.apps.rancher.io \
--docker-username=<your-username> \
--docker-password=<your-token>
helm install sbomscanner \
oci://dp.apps.rancher.io/charts/suse-security-vulnerability-scanner \
--version 0.12.1 \
--namespace sbomscanner \
--set 'global.imagePullSecrets={application-collection}' \
--wait
|
By default, the installation of SBOMscanner is configured to be highly
available. If you want to save on resources, you can reduce the number
of replicas to the minimum by running the following
This configuration is suitable for development environments where high availability is not required. |
Verify the Deployment
After installation, ensure all pods are running:
kubectl get pods -n sbomscanner
Example output:
NAME READY STATUS RESTARTS AGE
sbomscanner-nats-0 2/2 Running 0 81s
sbomscanner-nats-1 2/2 Running 0 81s
sbomscanner-nats-2 2/2 Running 0 81s
sbomscanner-ssvs-cnpg-cluster-1 1/1 Running 0 68s
sbomscanner-ssvs-cnpg-cluster-2 1/1 Running 0 38s
sbomscanner-ssvs-cnpg-cluster-3 1/1 Running 0 15s
sbomscanner-ssvs-controller-6c75597864-d8nb4 1/1 Running 0 81s
sbomscanner-ssvs-controller-6c75597864-dp5xj 1/1 Running 0 81s
sbomscanner-ssvs-controller-6c75597864-mmdpf 1/1 Running 0 81s
sbomscanner-ssvs-storage-5dff4c9549-gdnrh 1/1 Running 0 81s
sbomscanner-ssvs-storage-5dff4c9549-gxfbn 1/1 Running 0 81s
sbomscanner-ssvs-storage-5dff4c9549-mz5wv 1/1 Running 0 81s
sbomscanner-ssvs-worker-66dcd59694-92qmc 1/1 Running 0 81s
sbomscanner-ssvs-worker-66dcd59694-dl85j 1/1 Running 0 81s
sbomscanner-ssvs-worker-66dcd59694-vzhqw 1/1 Running 0 81s
sbomscanner-ssvs-worker-node-66vb7 1/1 Running 0 81s
Run a Scan
In this section, you’ll learn how to create a registry source and trigger an automated scan.
Prepare a registry.yaml file
Before running a scan, you need to define a Registry custom resource
for SBOMscanner 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 scanjob.yaml file
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
Once the scan completes, check the generated SBOMs and vulnerability reports:
kubectl get sbom -n default
kubectl get vulnerabilityreport -n default
You should see output like:
NAME CREATED AT
2ca3e0b033d523509544cb6f31c626af2a710d7dbcc15cb9dffced2e4634d69b 2025-06-10T10:26:38Z
...
Summary
You’ve successfully created a real-world Registry resource and triggered an automated scan.
You can jump to the Querying reports guide to learn how to query and inspect the generated images, SBOMs, and vulnerability reports.