Support parallel execution of trivy k8s containers on the same volume #9731
Closed
festeveira
started this conversation in
Bugs
Replies: 1 comment
-
|
Hi @festeveira! let's discuss this feature in aquasecurity/trivy-operator#2795 at first. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Description
Currently it is not possible to run trivy-operator with TMPDIR configured to use the same volume, when jobs are running in parallel.
Because the
process-specific temp directorydepends on the processpid, as can be seen in:trivy/pkg/x/os/os.go
Line 25 in 29f0347
, it is not possible to run several instances of containers in parallel, jobs sometimes remove the directory prematurely causing other jobs to fail.
I believe that simply making the directory where image layers are temporarily stored a random string should suffice.
Target
Container Image
Scanner
Vulnerability
Beta Was this translation helpful? Give feedback.
All reactions