Review Shielded GKE node protection

Enable node identity protection and check separate boot-protection settings.

Description

Shielded GKE Nodes verifies each worker’s identity when it joins the cluster. It defaults to on in Standard and is always on in Autopilot. The control plane is shielded regardless of the worker setting.

Potential impact

Without the extra identity check, stolen bootstrap credentials can make it easier to impersonate a worker node.

Remediation

Set enable_shielded_nodes = true on a Standard cluster. On an existing cluster, GKE recreates the control plane immediately and replaces workers as maintenance scheduling and available capacity allow. Plan time and capacity, then verify the replacement nodes registered and are Ready.

Examples

The examples change only the worker setting on the same cluster. Supply the project, network and node count. Check Secure Boot compatibility and integrity monitoring alerts separately for each node pool.

Before

hcl
resource "google_container_cluster" "cluster" {
  name                  = "my-gke-cluster"
  location              = "us-central1"
  enable_shielded_nodes = false
}

After

hcl
resource "google_container_cluster" "cluster" {
  name                  = "my-gke-cluster"
  location              = "us-central1"
  enable_shielded_nodes = true
}

References