|
|
@ -441,12 +441,15 @@ groups:
|
|
|
|
text: "Ensure that the admission control plugin ServiceAccount is set(Scored)"
|
|
|
|
text: "Ensure that the admission control plugin ServiceAccount is 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: has
|
|
|
|
op: has
|
|
|
|
value: "ServiceAccount"
|
|
|
|
value: "ServiceAccount"
|
|
|
|
set: true
|
|
|
|
set: true
|
|
|
|
|
|
|
|
- flag: "--enable-admission-plugins"
|
|
|
|
|
|
|
|
set: false
|
|
|
|
remediation: |
|
|
|
|
remediation: |
|
|
|
|
Follow the documentation and create ServiceAccount objects as per your environment.
|
|
|
|
Follow the documentation and create ServiceAccount objects as per your environment.
|
|
|
|
Then, edit the API server pod specification file $apiserverconf
|
|
|
|
Then, edit the API server pod specification file $apiserverconf
|
|
|
|