1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-26 16:38:09 +00:00

Fixing checks 2.2.9 and 2.2.10 on 1.11 nodes.

Path to kubelet configuration was accidentally prefixed with a dollar
symbol (probably as a result of copying some other test that used
variable name).
After removing the dollar sign from paths both checks pass on conforming
deployment.
This commit is contained in:
Michal Jankowski 2018-10-24 17:06:21 -07:00
parent 64f4f638e9
commit 5f254de415

View File

@ -460,7 +460,7 @@ groups:
- id: 2.2.9 - id: 2.2.9
text: "Ensure that the kubelet configuration file ownership is set to root:root (Scored)" text: "Ensure that the kubelet configuration file ownership is set to root:root (Scored)"
audit: "/bin/sh -c 'if test -e $/var/lib/kubelet/config.yaml; then stat -c %U:%G $/var/lib/kubelet/config.yaml; fi'" audit: "/bin/sh -c 'if test -e /var/lib/kubelet/config.yaml; then stat -c %U:%G /var/lib/kubelet/config.yaml; fi'"
tests: tests:
test_items: test_items:
- flag: "root:root" - flag: "root:root"
@ -472,7 +472,7 @@ groups:
- id: 2.2.10 - id: 2.2.10
text: "Ensure that the kubelet configuration file has permissions set to 644 or more restrictive (Scored)" text: "Ensure that the kubelet configuration file has permissions set to 644 or more restrictive (Scored)"
audit: "/bin/sh -c 'if test -e $/var/lib/kubelet/config.yaml; then stat -c %a $/var/lib/kubelet/config.yaml; fi'" audit: "/bin/sh -c 'if test -e /var/lib/kubelet/config.yaml; then stat -c %a /var/lib/kubelet/config.yaml; fi'"
tests: tests:
bin_op: or bin_op: or
test_items: test_items: