For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

GCP Kubernetes Engine Clusters not configured with private nodes feature misconfiguration detected i

Rule Details

Cortex AppSec Rule ID

APPSEC_GCP_64

Category - Subcategory

Kubernetes - Management Services Exposure

Provider

GCP

Severity

LOW

Framework

Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

5e4752d9-554b-4a6b-bad3-b41ba62fa6f7

Impact

Disable public IP addresses for cluster nodes, so that they only have private IP addresses. Private Nodes are nodes with no public IP addresses. Disabling public IP addresses on cluster nodes restricts access to only internal networks, forcing attackers to obtain local network access before attempting to compromise the underlying Kubernetes hosts.

How to Fix

Resource: google_container_cluster

  • Arguments: private_cluster_config [source,go]


resource "google_container_cluster" "example" { name = var.name location = var.location project = data.google_project.project.name

  • private_cluster_config {

  • enable_private_nodes = var.private_cluster_config["enable_private_nodes"]

  • enable_private_endpoint = var.private_cluster_config["enable_private_endpoint"]

  • master_ipv4_cidr_block = var.private_cluster_config["master_ipv4_cidr_block"]

  • }


Last updated

Was this helpful?