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

Add GKE 1.6 CIS benchmark for GCP environment #1672

Merged
merged 14 commits into from
Oct 11, 2024
Merged
7 changes: 7 additions & 0 deletions cfg/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ version_mapping:
"eks-1.2.0": "eks-1.2.0"
"gke-1.0": "gke-1.0"
"gke-1.2.0": "gke-1.2.0"
"gke-1.6.0": "gke-1.6.0"
"ocp-3.10": "rh-0.7"
"ocp-3.11": "rh-0.7"
"ocp-4.0": "rh-1.0"
Expand Down Expand Up @@ -380,6 +381,12 @@ target_mapping:
- "controlplane"
- "policies"
- "managedservices"
"gke-1.6.0":
- "master"
- "node"
- "controlplane"
- "policies"
- "managedservices"
"eks-1.0.1":
- "master"
- "node"
Expand Down
9 changes: 9 additions & 0 deletions cfg/gke-1.6.0/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
## Version-specific settings that override the values in cfg/config.yaml

node:
proxy:
defaultkubeconfig: "/var/lib/kubelet/kubeconfig"

kubelet:
defaultconf: "/etc/kubernetes/kubelet/kubelet-config.yaml"
20 changes: 20 additions & 0 deletions cfg/gke-1.6.0/controlplane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
controls:
version: "gke-1.6.0"
id: 2
text: "Control Plane Configuration"
type: "controlplane"
groups:
- id: 2.1
text: "Authentication and Authorization"
checks:
- id: 2.1.1
text: "Client certificate authentication should not be used for users (Manual)"
type: "manual"
Comment on lines +11 to +13
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check marked as automation.
If there is no way to automate it, we should add a command to test in remediation section:

$ kubectl get secrets --namespace kube-system

# Look for secrets with names starting with gke-. These secrets contain the client
certificates.

remediation: |
Alternative mechanisms provided by Kubernetes such as the use of OIDC should be
implemented in place of client certificates.

You can remediate the availability of client certificates in your GKE cluster. See
Recommendation 5.8.1.
scored: false
Loading
Loading