GKE cluster labels are missing Affecting Kubernetes (Container) Engine service in Google
Severity Framework
Snyk CCSS
Rule category
Containers / APIs
Is your enviroment 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 applicationsFrameworks
- Snyk ID SNYK-CC-00422
- credit Snyk Research Team
Description
Increases the security management overhead.
How to fix?
Set resource_labels
attribute, this will decrease the security management overhead.
Example Configuration
resource "google_container_cluster" "allowed" {
name = "gke-cluster422"
location = "us-central1-f"
project = "test-project"
remove_default_node_pool = true
initial_node_count = 1
resource_labels = {
"some" = "label"
}
}