Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix v1.24 Cluster Scan Failures #92

Merged
merged 4 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
RKE2 hardened fixes
  • Loading branch information
rayandas committed Jul 22, 2022
commit ca865e12dcab2ecb530bc42cc9a5edb733181838
6 changes: 4 additions & 2 deletions package/cfg/rke2-cis-1.20-hardened/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,16 @@ groups:

- id: 1.2.18
text: "Ensure that the --insecure-port argument is set to 0 (Automated)"
audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep"
audit: "/bin/ps -ef | grep $apiserverbin"
tests:
bin_op: or
test_items:
- flag: "--insecure-port"
compare:
op: eq
value: 0
set: true
- flag: "--insecure-port"
set: false
remediation: |
Edit the API server pod specification file $apiserverconf
on the master node and set the below parameter.
Expand Down
6 changes: 4 additions & 2 deletions package/cfg/rke2-cis-1.5-hardened/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,16 @@ groups:

- id: 1.2.19
text: "Ensure that the --insecure-port argument is set to 0 (Scored)"
audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep"
audit: "/bin/ps -ef | grep $apiserverbin"
tests:
bin_op: or
test_items:
- flag: "--insecure-port"
compare:
op: eq
value: 0
set: true
- flag: "--insecure-port"
set: false
remediation: |
Edit the API server pod specification file $apiserverconf
on the master node and set the below parameter.
Expand Down
6 changes: 4 additions & 2 deletions package/cfg/rke2-cis-1.6-hardened/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,16 @@ groups:

- id: 1.2.19
text: "Ensure that the --insecure-port argument is set to 0 (Automated)"
audit: "/bin/ps -ef | grep $apiserverbin | grep -v grep"
audit: "/bin/ps -ef | grep $apiserverbin"
tests:
bin_op: or
test_items:
- flag: "--insecure-port"
compare:
op: eq
value: 0
set: true
- flag: "--insecure-port"
set: false
remediation: |
Edit the API server pod specification file $apiserverconf
on the master node and set the below parameter.
Expand Down