HIGH
Source
Trivy
ID
AVD-GCP-0064

Legacy client authentication methods utilized.

It is recommended to use Service Accounts and OAuth as authentication methods for accessing the master in the container cluster.

Basic authentication should be disabled by explicitly unsetting the username and password on the master_auth block.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Use service account or OAuth for authentication

1
2
3
4
resource "google_container_cluster" "good_example" {
  name     = "my-gke-cluster"
  location = "us-central1"
}