Beta - Google Kubernetes Engine Cluster Has Alpha Features Enabled

  • Query id: 8ca7e731-56f6-4fb4-9b98-fcb0a93518c8
  • Query name: Beta - Google Kubernetes Engine Cluster Has Alpha Features Enabled
  • Platform: Terraform
  • Severity: Low
  • Category: Insecure Configurations
  • CWE: 1269
  • Risk score: 1.0
  • URL: Github

Description

Alpha clusters are not covered by an SLA and are not production-ready
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "google_container_cluster" "positive" {
  name               = "pud-example-rg"
  location           = "us-central1-a"
  enable_kubernetes_alpha = true
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "google_container_cluster" "negative1" {
  name               = "pud-example-rg"
  location           = "us-central1-a"
  enable_kubernetes_alpha = false
}
Negative test num. 2 - tf file
resource "google_container_cluster" "negative2" {
  name               = "pud-example-rg"
  location           = "us-central1-a"
}