Skip to content

Commit 9f33d40

Browse files
author
pirog-spb
committed
fix(trivy): ignore KSV-0121 for the eUPF /sys hostPath mount
The chart defaults now mount the host /sys read-only into the pod (#645), which is required by the image entrypoint to mount bpffs and debugfs for the eBPF data plane. Trivy flags the hostPath volume as a disallowed volume type (AVD-KSV-0121, HIGH), failing the scan-config job of Security scan on this PR - same 'by design' class as AVD-KSV-0118 (privileged container) ignored earlier. Add the rule to .trivyignore with the justification instead of weakening the chart defaults. Verified locally: trivy fs --scanners misconfig --severity HIGH,CRITICAL with this .trivyignore and trivy.yaml reports 0 findings. Signed-off-by: pirog-spb <[email protected]>
1 parent 1369669 commit 9f33d40

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.trivyignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ AVD-KSV-0117
2020
# programs, mount bpffs/debugfs and raise RLIMIT_MEMLOCK - running with
2121
# a restricted security context is not supported by design.
2222
AVD-KSV-0118
23+
24+
# The eUPF data plane needs a read-only /sys hostPath mount: the image
25+
# entrypoint mounts bpffs and debugfs under /sys to load the eBPF
26+
# programs. A "disallowed volume type" (hostPath) is by design here.
27+
AVD-KSV-0121

0 commit comments

Comments
 (0)