mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-01-18 11:41:00 +00:00
Check PodSecurityPolicy when test 1.2.13 of cis-1.5 (#651)
This commit is contained in:
parent
db109daf43
commit
5ff32e55eb
@ -520,12 +520,18 @@ groups:
|
||||
text: "Ensure that the admission control plugin SecurityContextDeny is set if PodSecurityPolicy is not used (Not Scored)"
|
||||
audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep"
|
||||
tests:
|
||||
bin_op: or
|
||||
test_items:
|
||||
- flag: "--enable-admission-plugins"
|
||||
compare:
|
||||
op: has
|
||||
value: "SecurityContextDeny"
|
||||
set: true
|
||||
- flag: "--enable-admission-plugins"
|
||||
compare:
|
||||
op: has
|
||||
value: "PodSecurityPolicy"
|
||||
set: true
|
||||
remediation: |
|
||||
Edit the API server pod specification file $apiserverconf
|
||||
on the master node and set the --enable-admission-plugins parameter to include
|
||||
|
Loading…
Reference in New Issue
Block a user