trivy-operator icon indicating copy to clipboard operation
trivy-operator copied to clipboard

policiesBundle: tls: failed to verify certificate: x509: certificate signed by unknown authority

Open teimyBr opened this issue 1 year ago • 0 comments

What steps did you take and what happened: We get this error when using a private registry for policiesBundle, we have to use this because when pulling from ghcr.io we get the Rate Limit Error.

tls: failed to verify certificate: x509: certificate signed by unknown authority

Still when these setting is set:

policiesBundle:
    insecure: true

As Information the registry we want to pull from is without user+pw

Probably related to: https://github.com/aquasecurity/trivy-operator/issues/2212 https://github.com/aquasecurity/trivy-operator/pull/2228

What did you expect to happen:

Not getting an Certificate Error when using

policiesBundle:
    insecure: true

Environment:

  • Trivy-Operator version (use trivy-operator version): trivy-operator:0.22.0
  • Kubernetes version (use kubectl version): 1.29.4
  • OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): ubuntu-22.04-08-2024

teimyBr avatar Oct 25 '24 08:10 teimyBr