mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-01-18 19:51:05 +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)"
|
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"
|
audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep"
|
||||||
tests:
|
tests:
|
||||||
|
bin_op: or
|
||||||
test_items:
|
test_items:
|
||||||
- flag: "--enable-admission-plugins"
|
- flag: "--enable-admission-plugins"
|
||||||
compare:
|
compare:
|
||||||
op: has
|
op: has
|
||||||
value: "SecurityContextDeny"
|
value: "SecurityContextDeny"
|
||||||
set: true
|
set: true
|
||||||
|
- flag: "--enable-admission-plugins"
|
||||||
|
compare:
|
||||||
|
op: has
|
||||||
|
value: "PodSecurityPolicy"
|
||||||
|
set: true
|
||||||
remediation: |
|
remediation: |
|
||||||
Edit the API server pod specification file $apiserverconf
|
Edit the API server pod specification file $apiserverconf
|
||||||
on the master node and set the --enable-admission-plugins parameter to include
|
on the master node and set the --enable-admission-plugins parameter to include
|
||||||
|
Loading…
Reference in New Issue
Block a user