Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbom report - too long - size limit of 1 MiB is hit and produces an error #1680

Closed
chen-keinan opened this issue Dec 7, 2023 Discussed in #1678 · 1 comment · Fixed by #1683
Closed

sbom report - too long - size limit of 1 MiB is hit and produces an error #1680

chen-keinan opened this issue Dec 7, 2023 Discussed in #1678 · 1 comment · Fixed by #1683

Comments

@chen-keinan
Copy link
Collaborator

Discussed in #1678

Originally posted by BenjaminHerbert December 6, 2023
I upgraded to trivy-operator 0.17.1 and am currently seeing this error in the logs:

It seems the component (kibana) is too complex to store the SBOM in a secret and think this is a bug in trivy-operator.

{"level":"error","ts":"2023-12-06T17:17:57Z","msg":"Reconciler error","controller":"replicaset","controllerGroup":"apps","controllerKind":"ReplicaSet","ReplicaSet":{"name":"<redacted>-kb-554c86db9d","namespace":"<redacted>"},"namespace":"<redacted>","name":"<redacted>-kb-554c86db9d","reconcileID":"e4989169-ae8c-4fab-bca4-2f1308d6eba9","error":"creating secret used by scan job failed: trivy-system/sbom-kibana: Secret \"sbom-kibana\" is invalid: data: Too long: must have at most 1048576 bytes","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}
@JAORMX
Copy link
Contributor

JAORMX commented Dec 8, 2023

@chen-keinan do we want to compress the SBOM in the secret? Might be a good solution that would temporarily allow for some scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants