Skip to content
Snippets Groups Projects
Unverified Commit 5f7fb350 authored by Lennard Klein's avatar Lennard Klein Committed by GitHub
Browse files

Add a trailing slash to find directory path (#1006)

This transplants #687 to cis-1.6 and cis-1.20. Fixes #686 for cis-1.6 and cis-1.20.
parent e50de814
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,7 @@ groups: ...@@ -278,7 +278,7 @@ groups:
- id: 1.1.20 - id: 1.1.20
text: "Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual)" text: "Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual)"
audit: "find /etc/kubernetes/pki -name '*.crt' | xargs stat -c permissions=%a" audit: "find /etc/kubernetes/pki/ -name '*.crt' | xargs stat -c permissions=%a"
use_multiple_values: true use_multiple_values: true
tests: tests:
test_items: test_items:
...@@ -294,7 +294,7 @@ groups: ...@@ -294,7 +294,7 @@ groups:
- id: 1.1.21 - id: 1.1.21
text: "Ensure that the Kubernetes PKI key file permissions are set to 600 (Manual)" text: "Ensure that the Kubernetes PKI key file permissions are set to 600 (Manual)"
audit: "find /etc/kubernetes/pki -name '*.key' | xargs stat -c permissions=%a" audit: "find /etc/kubernetes/pki/ -name '*.key' | xargs stat -c permissions=%a"
use_multiple_values: true use_multiple_values: true
tests: tests:
test_items: test_items:
......
...@@ -278,7 +278,7 @@ groups: ...@@ -278,7 +278,7 @@ groups:
- id: 1.1.20 - id: 1.1.20
text: "Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual)" text: "Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Manual)"
audit: "find /etc/kubernetes/pki -name '*.crt' | xargs stat -c permissions=%a" audit: "find /etc/kubernetes/pki/ -name '*.crt' | xargs stat -c permissions=%a"
use_multiple_values: true use_multiple_values: true
tests: tests:
test_items: test_items:
...@@ -294,7 +294,7 @@ groups: ...@@ -294,7 +294,7 @@ groups:
- id: 1.1.21 - id: 1.1.21
text: "Ensure that the Kubernetes PKI key file permissions are set to 600 (Manual)" text: "Ensure that the Kubernetes PKI key file permissions are set to 600 (Manual)"
audit: "find /etc/kubernetes/pki -name '*.key' | xargs stat -c permissions=%a" audit: "find /etc/kubernetes/pki/ -name '*.key' | xargs stat -c permissions=%a"
use_multiple_values: true use_multiple_values: true
tests: tests:
test_items: test_items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment