diff --git a/cfg/cis-1.7/master.yaml b/cfg/cis-1.7/master.yaml index 1358242..283e89e 100644 --- a/cfg/cis-1.7/master.yaml +++ b/cfg/cis-1.7/master.yaml @@ -345,16 +345,15 @@ groups: text: "Ensure that the --DenyServiceExternalIPs is set (Manual)" audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep" tests: - bin_op: or test_items: - flag: "--enable-admission-plugins" compare: - op: have + op: has value: "DenyServiceExternalIPs" remediation: | Edit the API server pod specification file $apiserverconf - on the control plane node and remove the `DenyServiceExternalIPs` - from enabled admission plugins. + on the control plane node and add the `DenyServiceExternalIPs` plugin + to the enabled admission plugins, as such --enable-admission-plugin=DenyServiceExternalIPs. scored: false - id: 1.2.4 diff --git a/cfg/cis-1.8/master.yaml b/cfg/cis-1.8/master.yaml index d0c1332..8d639da 100644 --- a/cfg/cis-1.8/master.yaml +++ b/cfg/cis-1.8/master.yaml @@ -345,16 +345,15 @@ groups: text: "Ensure that the --DenyServiceExternalIPs is set (Manual)" audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep" tests: - bin_op: or test_items: - flag: "--enable-admission-plugins" compare: - op: have + op: has value: "DenyServiceExternalIPs" remediation: | Edit the API server pod specification file $apiserverconf - on the control plane node and remove the `DenyServiceExternalIPs` - from enabled admission plugins. + on the control plane node and add the `DenyServiceExternalIPs` plugin + to the enabled admission plugins, as such --enable-admission-plugin=DenyServiceExternalIPs. scored: false - id: 1.2.4 diff --git a/cfg/cis-1.9/master.yaml b/cfg/cis-1.9/master.yaml index 50edab1..51b9ab5 100644 --- a/cfg/cis-1.9/master.yaml +++ b/cfg/cis-1.9/master.yaml @@ -360,12 +360,12 @@ groups: test_items: - flag: "--enable-admission-plugins" compare: - op: have + op: has value: "DenyServiceExternalIPs" remediation: | Edit the API server pod specification file $apiserverconf - on the control plane node and remove the `DenyServiceExternalIPs` - from enabled admission plugins. + on the control plane node and add the `DenyServiceExternalIPs` plugin + to the enabled admission plugins, as such --enable-admission-plugin=DenyServiceExternalIPs. scored: false - id: 1.2.4