Skip to content

Commit 014ac45

Browse files
authored
eks-1.7.0: allow default value for eventRecordQPS rule (#1954)
The CIS Benchmark for Amazon EKS v1.7.0, recommendation 3.2.7 asks to "Ensure that the --eventRecordQPS argument is set to 0 or a level which ensures appropriate event capture". The --event-qps option on the command line and the eventRecordQPS option in the configuration file both have the same default value of 5, but differ in how they treat the an explicitly set value of 0: - The --event-qps command line option treats 0 as the default value of 5 QPS. - The eventRecordQPS configuration file option treats 0 as unlimited (and the absence of the option as the default value of 5 QPS). Since setting --event-qps=0, using the default value, is acceptable for the command line option, using the default value for eventRecordQPS by not explicitly setting the option should be allowed as well. Note that this is already the case in the configuration for the generic Kubernetes CIS Benchmark.
1 parent 844a28b commit 014ac45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cfg/eks-1.7.0/node.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ groups:
352352
compare:
353353
op: gte
354354
value: 0
355+
- flag: --event-qps
356+
path: '{.eventRecordQPS}'
357+
set: false
358+
bin_op: or
355359
remediation: |
356360
If using a Kubelet config file, edit the file to set eventRecordQPS: to an appropriate
357361
level.

0 commit comments

Comments
 (0)