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

pull/385/head^2
Roberto Rojas 5 years ago committed by Liz Rice
parent 4b5a877f1f
commit 7a53806863

@ -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

@ -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

Loading…
Cancel
Save