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 kubelet config control #69

Merged
merged 1 commit into from
Nov 8, 2022
Merged
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
30 changes: 16 additions & 14 deletions core/mondoo-kubernetes-security.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,20 +451,22 @@ queries:
chmod 600 /etc/kubernetes/kubelet.conf
```
query: |
if (file(k8s.kubelet.configuration['config']).exists) {
file(k8s.kubelet.configuration['config']) {
user.name == "root"
group.name == "root"
}
file(k8s.kubelet.configuration['config']).permissions {
user_readable == true
user_executable == false
group_readable == false
group_writeable == false
group_executable == false
other_readable == false
other_writeable == false
other_executable == false
if (k8s.kubelet.configFile != null) {
if (k8s.kubelet.configFile.exists) {
k8s.kubelet.configFile {
user.name == "root"
group.name == "root"
}
k8s.kubelet.configFile.permissions {
user_readable == true
user_executable == false
group_readable == false
group_writeable == false
group_executable == false
other_readable == false
other_writeable == false
other_executable == false
}
}
}
- uid: mondoo-kubernetes-security-secure-kubelet-cert-authorities
Expand Down