Skip to content

feat(helm): add native private registry credentials for scan jobs#2887

Open
rzala wants to merge 1 commit intoaquasecurity:mainfrom
rzala:feature/helm-registry-credentials
Open

feat(helm): add native private registry credentials for scan jobs#2887
rzala wants to merge 1 commit intoaquasecurity:mainfrom
rzala:feature/helm-registry-credentials

Conversation

@rzala
Copy link

@rzala rzala commented Feb 13, 2026

Add trivy.registryCredentials to automatically create a dockerconfigjson Secret and inject it into scan jobs via the operator ConfigMap's scanJobCustomVolumes/scanJobCustomVolumesMount.

Previously, users had to manually create the docker config secret and hand-craft the JSON for scanJobCustomVolumes, which was error-prone. This feature automates the common case while merging with any existing user-specified custom volumes.

The credential secret is mounted at /root/.docker/config.json (standard Docker config location) so Trivy can pull images from private registries without additional configuration.

New values:

  • trivy.registryCredentials.create: enable secret creation
  • trivy.registryCredentials.secretName: secret name
  • trivy.registryCredentials.registry: registry URL
  • trivy.registryCredentials.username: registry username
  • trivy.registryCredentials.password: registry password

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@rzala rzala requested review from afdesk and simar7 as code owners February 13, 2026 12:18
Add trivy.registryCredentials to automatically create a
dockerconfigjson Secret and inject it into scan jobs via the
operator ConfigMap's scanJobCustomVolumes/scanJobCustomVolumesMount.

Previously, users had to manually create the docker config secret
and hand-craft the JSON for scanJobCustomVolumes, which was
error-prone. This feature automates the common case while merging
with any existing user-specified custom volumes.

The credential secret is mounted at /root/.docker/config.json
(standard Docker config location) so Trivy can pull images from
private registries without additional configuration.

New values:
- trivy.registryCredentials.create: enable secret creation
- trivy.registryCredentials.secretName: secret name
- trivy.registryCredentials.registry: registry URL
- trivy.registryCredentials.username: registry username
- trivy.registryCredentials.password: registry password
@rzala rzala force-pushed the feature/helm-registry-credentials branch from 8c270d3 to fa32386 Compare February 13, 2026 12:22
@rzala rzala changed the title helm: add native private registry credentials for scan jobs feat(helm): add native private registry credentials for scan jobs Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant