-
Notifications
You must be signed in to change notification settings - Fork 519
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
Add CIS benchmark checks for generating a Kubernetes compliance report #3239
Commits on Sep 5, 2023
-
bloodhound: Add base Kubernetes checker binary
This adds a multicall binary to be used as the common entry point for all Kubernetes CIS benchmark checks. Signed-off-by: Sean McGinnis <[email protected]>
2Configuration menu - View commit details
-
Copy full SHA for 76b8b54 - Browse repository at this point
Copy the full SHA 76b8b54View commit details -
bloodhound: Add Kubernetes 4.1.1 check
This adds the 4.1.1 check to verify the kubelet service file has restrictive permissions. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d54fe47 - Browse repository at this point
Copy the full SHA d54fe47View commit details -
bloodhound: Add Kubernetes 4.1.2 check
This adds the 4.1.2 check to make sure the kubelet service file ownership is root:root. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for efad077 - Browse repository at this point
Copy the full SHA efad077View commit details -
bloodhound: Add Kubernetes 4.1.5 check
This adds the 4.1.5 check to ensure the kubelet.conf file has restrictive permissions. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a23d4f9 - Browse repository at this point
Copy the full SHA a23d4f9View commit details -
bloodhound: Add Kubernetes 4.1.6 check
This adds the 4.1.6 check to verify kubelet.conf is owned by root:root. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40c2285 - Browse repository at this point
Copy the full SHA 40c2285View commit details -
bloodhound: Add Kubernetes 4.1.7 check
This adds the 4.1.7 check to verify the kubelet CA file has restrictive permissions. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebe394c - Browse repository at this point
Copy the full SHA ebe394cView commit details -
bloodhound: Add Kubernetes 4.1.8 check
This adds check 4.1.8 to verify the kubelet CA file is owned by root:root. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f767fca - Browse repository at this point
Copy the full SHA f767fcaView commit details -
bloodhound: Add Kubernetes 4.1.9 check
This adds the 4.1.9 check to verify the kubelet configuration file has restrictive permissions. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a6ae3a0 - Browse repository at this point
Copy the full SHA a6ae3a0View commit details -
bloodhound: Add Kubernetes 4.1.10 check
This adds check 4.1.10 to verify the kubelet config file is owned by root:root. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b950ef - Browse repository at this point
Copy the full SHA 7b950efView commit details -
bloodhound: Add Kubernetes 4.2.1 check
This adds check 4.2.1 to verify anonymous auth is not enabled. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dc59983 - Browse repository at this point
Copy the full SHA dc59983View commit details -
bloodhound: Add Kubernetes 4.2.2 check
This adds check 4.2.2 to verify authorization mode is not set to AlwaysAllow. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f5c4107 - Browse repository at this point
Copy the full SHA f5c4107View commit details -
bloodhound: Add Kubernetes 4.2.3 check
This adds check 4.2.3 to verify clientCAFile is configured and points to an actual file. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 409a6cd - Browse repository at this point
Copy the full SHA 409a6cdView commit details -
bloodhound: Add Kubernetes 4.2.4 check
This adds the 4.2.4 to verify the readOnlyPort is not set to 0. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 124420b - Browse repository at this point
Copy the full SHA 124420bView commit details -
bloodhound: Add Kubernetes 4.2.5 check
This adds check 4.2.5 to verify streamingConnectionIdleTimeout is not set to 0. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d897d7b - Browse repository at this point
Copy the full SHA d897d7bView commit details -
bloodhound: Add Kubernetes 4.2.6 check
This adds check 4.2.6 to verify makeIPTablesUtilChains is true. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13fb801 - Browse repository at this point
Copy the full SHA 13fb801View commit details -
bloodhound: Add Kubernetes 4.2.9 check
This adds the check to make sure the server TLS certificates are configured correctly. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8591741 - Browse repository at this point
Copy the full SHA 8591741View commit details -
bloodhound: Add Kubernetes 4.2.10 check
This adds check 4.2.10 to verify rotateCertificates is not disabled. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 32ccf06 - Browse repository at this point
Copy the full SHA 32ccf06View commit details -
bloodhound: Add Kubernetes 4.2.11 check
This adds check 4.2.11 to verify RotateKubeletServerCertificate is not disabled. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3aecece - Browse repository at this point
Copy the full SHA 3aececeView commit details -
bloodhound: Add Kubernetes 4.2.12 check
This adds check 4.2.12 to check that kubelet is only configured to use secure cryptographic ciphers. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f2eb742 - Browse repository at this point
Copy the full SHA f2eb742View commit details -
bloodhound: Add Kubernetes 4.2.13 check
This adds verification that podPidsLimit is configured to restrict the maximum number of PIDs allowed per-pod. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d48b3a - Browse repository at this point
Copy the full SHA 2d48b3aView commit details -
bloodhound: Skip K8s 4.2.10 as not applicable
This changes the 4.2.10 check to be a manual test response. This check does not apply to EKS or EKS-D since external IAM auth is used. This leaves the validation logic in place as we may want to use it in the future. For not EKS-related use cases, it may make sense to enable configuration of certificate rotation. If/when that is done, this check can be reenabled and updated to validate under the proper conditions. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a0f46eb - Browse repository at this point
Copy the full SHA a0f46ebView commit details -
apiserver: Add support for Kuberenetes CIS report
This adds handling for a "type" parameter to be passed along to the `/report/cis` endpoint to control what type of CIS report to generate. The default type is the Bottlerocket CIS benchmark report, with "kubernetes" being the only recognized other option. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2ca030 - Browse repository at this point
Copy the full SHA c2ca030View commit details -
apiclient: Add
report cis-k8s
commandThis adds the `cis-k8s` report subcommand to access the Kubernetes CIS report. It uses the standard CIS arguments of `-l` for level and `-f` for format. Signed-off-by: Sean McGinnis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8767ea0 - Browse repository at this point
Copy the full SHA 8767ea0View commit details