mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-18 20:58:10 +00:00
Updated check to pass if flag isn't set (#375)
This commit is contained in:
parent
937bfc7b2e
commit
893aa3588c
@ -153,12 +153,15 @@ groups:
|
|||||||
text: "Ensure that the admission control plugin AlwaysAdmit is not set (Scored)"
|
text: "Ensure that the admission control plugin AlwaysAdmit is not set (Scored)"
|
||||||
audit: "ps -ef | grep $apiserverbin | grep -v grep"
|
audit: "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: nothave
|
op: nothave
|
||||||
value: AlwaysAdmit
|
value: AlwaysAdmit
|
||||||
set: true
|
set: true
|
||||||
|
- flag: "--enable-admission-plugins"
|
||||||
|
set: false
|
||||||
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 a
|
on the master node and set the --enable-admission-plugins parameter to a
|
||||||
|
@ -153,12 +153,15 @@ groups:
|
|||||||
text: "Ensure that the admission control plugin AlwaysAdmit is not set (Scored)"
|
text: "Ensure that the admission control plugin AlwaysAdmit is not set (Scored)"
|
||||||
audit: "ps -ef | grep $apiserverbin | grep -v grep"
|
audit: "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: nothave
|
op: nothave
|
||||||
value: AlwaysAdmit
|
value: AlwaysAdmit
|
||||||
set: true
|
set: true
|
||||||
|
- flag: "--enable-admission-plugins"
|
||||||
|
set: false
|
||||||
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 a
|
on the master node and set the --enable-admission-plugins parameter to a
|
||||||
|
Loading…
Reference in New Issue
Block a user