1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-19 21:28:07 +00:00

fixes issue #346 by explicitly only checking read-only property (#404)

This commit is contained in:
Roberto Rojas 2019-08-30 03:56:48 -04:00 committed by Liz Rice
parent 4b5a877f1f
commit 7a53806863
2 changed files with 0 additions and 6 deletions

View File

@ -96,10 +96,7 @@ groups:
text: "Ensure that the --read-only-port argument is set to 0 (Scored)"
audit: "cat $kubeletconf"
tests:
bin_op: or
test_items:
- path: "{.readOnlyPort}"
set: false
- path: "{.readOnlyPort}"
compare:
op: eq

View File

@ -74,15 +74,12 @@ groups:
text: "Ensure that the --read-only-port argument is set to 0 (Scored)"
audit: "cat $kubeletconf"
tests:
bin_op: or
test_items:
- path: "{.readOnlyPort}"
compare:
op: eq
value: 0
set: true
- path: "{.readOnlyPort}"
set: false
remediation: |
If using a Kubelet config file, edit the file to set readOnlyPort to 0 .
If using command line arguments, edit the kubelet service file