Skip to content

Commit

Permalink
Modify 1.2.3 Ensure that the DenyServiceExternalIPs is set in CIS-1…
Browse files Browse the repository at this point in the history
….7/1.8 (#1607)

* Modify 1.2.3 Ensure that the DenyServiceExternalIPs is set
 - op changed from `have` to `has` and removed bin_op: or
 - remediation description changed to only include --enable-admission-plugins

* Apply changes for CIS-1.9
  • Loading branch information
andypitcher authored Sep 30, 2024
1 parent b85ec78 commit 4b4c1ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
7 changes: 3 additions & 4 deletions cfg/cis-1.7/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions cfg/cis-1.8/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cfg/cis-1.9/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b4c1ce

Please # to comment.