You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cfg/cis-1.9/master.yaml
+3-3
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ groups:
189
189
- id: 1.1.13
190
190
text: "Ensure that the default administrative credential file permissions are set to 600 (Automated)"
191
191
audit: |
192
-
for adminconf in /etc/kubernetes/{admin.conf,super-admin.conf}; do if test -e $adminconf; then stat -c \"permissions=%a %n\" $adminconf; fi; done
192
+
for adminconf in /etc/kubernetes/admin.conf /etc/kubernetes/super-admin.conf; do if test -e $adminconf; then stat -c "permissions=%a %n" $adminconf; fi; done
193
193
use_multiple_values: true
194
194
tests:
195
195
test_items:
@@ -207,7 +207,7 @@ groups:
207
207
- id: 1.1.14
208
208
text: "Ensure that the default administrative credential file ownership is set to root:root (Automated)"
209
209
audit: |
210
-
for adminconf in /tmp/{admin.conf,super-admin.conf}; do if test -e $adminconf; then stat -c "ownership=%U:%G %n" $adminconf; fi; done
210
+
for adminconf in /etc/kubernetes/admin.conf /etc/kubernetes/super-admin.conf; do if test -e $adminconf; then stat -c "ownership=%U:%G %n" $adminconf; fi; done
211
211
use_multiple_values: true
212
212
tests:
213
213
test_items:
@@ -219,7 +219,7 @@ groups:
219
219
Run the below command (based on the file location on your system) on the control plane node.
220
220
For example, chown root:root /etc/kubernetes/admin.conf
221
221
On Kubernetes 1.29+ the super-admin.conf file should also be modified, if present.
222
-
For example, chmod 600 /etc/kubernetes/super-admin.conf
222
+
For example, chown root:root /etc/kubernetes/super-admin.conf
0 commit comments