With trivy-operator, for the scan-vulnerabilityreport init container job - missing ssl_cert_file #2708
Unanswered
kirkpabk
asked this question in
Help & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For the trivy-operator, regarding the scan-vulnerabilityreport init container job, in adding all of the tls cert entries... we noticed that it is not accepting entries and missing ssl_cert_file and we cannot determine how to reasonably inject it. (trivy-operator: 0.28.0 / chart: 0.30.0)
Thank you in advance for any assistance or guidance.
ERROR SEEN
For the terminated job, image: /acquasecurity/trivy:0.65.0, we get,
Error (2025-08-13T22:04:48Z INFO Adding schema version to the DB repository for backward compatibility repository="ghcr.io/aquasecurity/trivy-db:2" 2025-08-13T22:04:48Z INFO [vulndb] Need to update DB 2025-08-13T22:04:48Z INFO [vulndb] Downloading vulnerability DB... 2025-08-13T22:04:48Z INFO [vulndb] Downloading artifact... repo="ghcr.io/aquasecurity/trivy-db:2" 2025-08-13T22:04:49Z FATAL Fatal error run error: init error: DB error: failed to download vulnerability DB: OCI artifact error: failed to download vulnerability DB: failed to download artifact from ghcr.io/aquasecurity/trivy-db:2: OCI repository error: 1 error occurred: * Get "https://ghcr.io/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority )WORKAROUND:
YAML (with redacted content)
See the initContainers: section... notice that elsewhere we're injecting cert bundles, but they don't convey to the initContainers and we're not seeing an easy way to get at these dynamic jobs in the chart. In particular initContainers.env for the SSL cert var--how would we inject: SSL_CERT_FILE in that section?
Beta Was this translation helpful? Give feedback.
All reactions