mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-18 20:58:10 +00:00
Fixes bugs on tests 2.1.4 and 2.1.5 - 1.13-json (#365)
* Adds bin_op to Test 2.1.4 * Adds bin_op to Test 2.1.5
This commit is contained in:
parent
b649588f46
commit
c87c5cfb51
@ -74,12 +74,15 @@ groups:
|
|||||||
text: "Ensure that the --read-only-port argument is set to 0 (Scored)"
|
text: "Ensure that the --read-only-port argument is set to 0 (Scored)"
|
||||||
audit: "cat $kubeletconf"
|
audit: "cat $kubeletconf"
|
||||||
tests:
|
tests:
|
||||||
|
bin_op: or
|
||||||
test_items:
|
test_items:
|
||||||
- path: "{.readOnlyPort}"
|
- path: "{.readOnlyPort}"
|
||||||
compare:
|
compare:
|
||||||
op: eq
|
op: eq
|
||||||
value: 0
|
value: 0
|
||||||
set: true
|
set: true
|
||||||
|
- path: "{.readOnlyPort}"
|
||||||
|
set: false
|
||||||
remediation: |
|
remediation: |
|
||||||
If using a Kubelet config file, edit the file to set readOnlyPort to 0 .
|
If using a Kubelet config file, edit the file to set readOnlyPort to 0 .
|
||||||
If using command line arguments, edit the kubelet service file
|
If using command line arguments, edit the kubelet service file
|
||||||
@ -95,12 +98,15 @@ groups:
|
|||||||
text: "Ensure that the --streaming-connection-idle-timeout argument is not set to 0 (Scored)"
|
text: "Ensure that the --streaming-connection-idle-timeout argument is not set to 0 (Scored)"
|
||||||
audit: "cat $kubeletconf"
|
audit: "cat $kubeletconf"
|
||||||
tests:
|
tests:
|
||||||
|
bin_op: or
|
||||||
test_items:
|
test_items:
|
||||||
- path: "{.streamingConnectionIdleTimeout}"
|
- path: "{.streamingConnectionIdleTimeout}"
|
||||||
compare:
|
compare:
|
||||||
op: noteq
|
op: noteq
|
||||||
value: 0
|
value: 0
|
||||||
set: true
|
set: true
|
||||||
|
- path: "{.streamingConnectionIdleTimeout}"
|
||||||
|
set: false
|
||||||
remediation: |
|
remediation: |
|
||||||
If using a Kubelet config file, edit the file to set streamingConnectionIdleTimeout to a
|
If using a Kubelet config file, edit the file to set streamingConnectionIdleTimeout to a
|
||||||
value other than 0.
|
value other than 0.
|
||||||
|
Loading…
Reference in New Issue
Block a user