Closed Shashankft9 closed 1 month ago
@Shashankft9 thanks for reporting this issue. There's already an issue and a fix related, see #1668 .
Looks like this is resolved by https://github.com/aquasecurity/kube-bench/pull/1649
@emosbaugh thanks! in favor #1649
Overview
here the
actual_value
is being reported as empty string, because there is noadmin.conf
file in/tmp
folder.How did you run kube-bench?
I'm running kube-bench inside a pod using the
job.yaml
What happened?
I suspect this error is coming because there is no
admin.conf
file in/tmp
folder There is a difference in this particular test between CIS 1.9 here and CIS 1.8 here Is there any particular reason why this test was moved to/tmp
folder in CIS 1.9?What did you expect to happen:
I expected this test to pass since the file
/etc/kubernetes/admin.conf
already has the desired permissions.Environment
kube-bench version: v1.8.0 kubectl version: v1.27.15