GKE client certificate authentication is enabled Affecting Kubernetes (Container) Engine service in Google


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Containers/ Best Practices

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsCSA-CCM
  • Snyk IDSNYK-CC-00420
  • creditSnyk Research Team

Description

The client certificate authentication methods is considered legacy and increase the attack surface for the cluster.

How to fix?

Set master_auth.issue_client_certificate attribute to false.

Example Configuration

resource "google_container_cluster" "allowed" {
  name     = "my-gke-cluster1"
  location = "us-central1-a"
  initial_node_count       = 1
  node_config{
    disk_size_gb = 10
  }
  master_auth {
    client_certificate_config {
      issue_client_certificate = false
    }
  }
}