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

Rancher node checks correction #1563

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions cfg/k3s-cis-1.23/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/k3s-cis-1.24/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/k3s-cis-1.7/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/rke-cis-1.23/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
12 changes: 6 additions & 6 deletions cfg/rke-cis-1.24/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,27 @@ groups:

- id: 4.1.7
text: "Ensure that the certificate authorities file permissions are set to 600 or more restrictive (Automated)"
audit: "stat -c permissions=%a /node/etc/kubernetes/ssl/kube-ca.pem"
audit: '/bin/sh -c "if test -e /node/etc/kubernetes/ssl/kube-ca.pem; then stat -c permissions=%a /node/etc/kubernetes/ssl/kube-ca.pem; else echo \"File not found\"; fi"'
tests:
bin_op: or
test_items:
- flag: "permissions"
compare:
op: bitmask
value: "600"
- flag: "File not found"
remediation: |
Run the following command to modify the file permissions of the
--client-ca-file chmod 600 <filename>
scored: true

- id: 4.1.8
text: "Ensure that the client certificate authorities file ownership is set to root:root (Automated)"
audit: "stat -c %U:%G /node/etc/kubernetes/ssl/kube-ca.pem"
audit: '/bin/sh -c "if test -e /node/etc/kubernetes/ssl/kube-ca.pem; then stat -c %U:%G /node/etc/kubernetes/ssl/kube-ca.pem; else echo \"File not found\"; fi"'
tests:
bin_op: or
test_items:
- flag: root:root
compare:
op: eq
value: root:root
- flag: "File not found"
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/rke-cis-1.7/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/rke2-cis-1.23/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/rke2-cis-1.24/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
3 changes: 0 additions & 3 deletions cfg/rke2-cis-1.7/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ groups:
tests:
test_items:
- flag: root:root
compare:
op: eq
value: root:root
remediation: |
Run the following command to modify the ownership of the --client-ca-file.
chown root:root <filename>
Expand Down
Loading