Skip to content

Commit

Permalink
Check PodSecurityPolicy when test 1.2.13 of cis-1.5 (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Aug 3, 2020
1 parent db109da commit 5ff32e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cfg/cis-1.5/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ff32e5

Please sign in to comment.