|
This is unreleased documentation for SBOM Scanner 1.0-dev. |
Common problems
This page documents common errors that occur while users run Kubewarden SBOM Scanner. It explains how to correct these errors.
Docker Hub pull rate limit reached
Problem
Scans end up in an error state with a message similar to:
You have reached your unauthenticated pull rate limit
This happens because anonymous image pulls from Docker Hub (docker.io) are subject to rate limiting. Once the limit is hit, further pulls are rejected until the window resets.
See the official Docker documentation for full details:
Solution
Authenticate with Docker Hub. Then pulls count against your account limits instead of the shared anonymous quota. See the Docker documentation for available options:
After you get credentials, create a kubernetes.io/dockerconfigjson Secret
in the Kubewarden SBOM Scanner installation namespace. Reference the Secret from the
applicable Registry resource. To propagate credentials to managed
registries, set the authSecret field in WorkloadScanConfiguration. See
Private Registries for the procedure.
CA bundle errors
Problem
The ScanJob of a registry fails.
The message of its Failed condition starts with cannot resolve CA bundle:, and then contains one of the errors in the table below.
To see the message, run this command, with the namespace of the Registry:
kubectl get scanjobs -n <registry-namespace> -o yaml
SBOM Scanner reads the CA bundle from the spec.caBundleRef or the spec.caBundle field of the Registry.
For a Registry that the workload scan manages, the namespace in the errors is the SBOM Scanner installation namespace.
Solution
| Error | Cause and fix |
|---|---|
|
The ConfigMap does not exist in the namespace that the error shows. Create the ConfigMap in that namespace, or correct the |
|
The ConfigMap has no key with the name in |
|
The Secret does not exist in the namespace that the error shows. Create the Secret in that namespace, or correct the |
|
The Secret has no key with the name in |
|
The value has no certificate in PEM format. Each certificate must start with |