Cluster Labels Disabled

  • Query id: 8810968b-4b15-421d-918b-d91eb4bb8d1d
  • Query name: Cluster Labels Disabled
  • Platform: GoogleDeploymentManager
  • Severity: Low
  • Category: Insecure Configurations
  • CWE: 1188
  • URL: Github

Description

Kubernetes Clusters must be configured with labels, which means the attribute 'resourceLabels' must be defined
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - yaml file
resources:
  - name: cluster
    type: container.v1.cluster
    properties:
      name: my-cluster

Code samples without security vulnerabilities

Negative test num. 1 - yaml file
resources:
  - name: cluster
    type: container.v1.cluster
    properties:
      name: my-cluster
      resourceLabels:
        name: "wrench"