Private registries
Two parts of Heimdall talk to registries, and each is configured separately.
Tag lookups (the OCI watcher)
Section titled “Tag lookups (the OCI watcher)”To find new tags for images in a private registry, add a credential under
registries: in the config. It names the registry host and an environment
variable that holds user:password:
registries: - host: registry.example.com secret_env: REGISTRY_EXAMPLE_CREDENTIALSThen set the variable (in Kubernetes, add it to the Secret named by
existingSecret):
export REGISTRY_EXAMPLE_CREDENTIALS='ci-bot:s3cret-token'Heimdall uses it as basic auth when the registry sends a token challenge. Only
the first : splits the user from the password. This applies to the OCI tag
watcher.
Scanning images (the CronJob)
Section titled “Scanning images (the CronJob)”The image-SBOM CronJob needs to pull private images so syft can read them. Create a
kubernetes.io/dockerconfigjson Secret and give its name to the chart:
kubectl -n heimdall create secret docker-registry regcred \ --docker-server=registry.example.com \ --docker-username=ci-bot --docker-password='s3cret-token'scanImages: dockerConfigSecret: regcredThe chart mounts it so syft finds it as its Docker config. Leave the value empty for public images only. See the Helm values.
Your own images
Section titled “Your own images”Images from registries you list under own_registries are scanned for
vulnerabilities but never release-watched. See
Watching infrastructure.