Ce produit n'est pas pris en charge par le site Datadog que vous avez sélectionné. ().
Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Kubernetes clusters in Google Kubernetes Engine (GKE) should use the default OAuth authentication to ensure that client certificates are not issued for cluster authentication. In Terraform, this is enforced by setting master_auth.client_certificate_config.issue_client_certificate to false or by omitting the attribute entirely. Allowing client certificate issuance (issue_client_certificate = true) increases the cluster’s attack surface by enabling users to authenticate with potentially compromised or unmanaged certificates, which could lead to unauthorized access.
For a secure configuration, ensure the relevant block in Terraform is configured as shown below or omitted entirely.
#this code is a correct code for which the query should not find any result
resource"google_container_cluster""negative1"{name="marcellus-wallace"location="us-central1-a"initial_node_count=3master_auth{client_certificate_config{issue_client_certificate=false}}timeouts{create="30m"update="40m"}}# leaving the field undefined is acceptable
resource"google_container_cluster""negative2"{name="marcellus-wallace"location="us-central1-a"initial_node_count=3timeouts{create="30m"update="40m"}}
Non-Compliant Code Examples
#this is a problematic code where the query should report a result(s)
resource"google_container_cluster""positive1"{name="marcellus-wallace"location="us-central1-a"initial_node_count=3master_auth{}timeouts{create="30m"update="40m"}}resource"google_container_cluster""positive2"{name="marcellus-wallace"location="us-central1-a"initial_node_count=3master_auth{client_certificate_config{issue_client_certificate=true}}timeouts{create="30m"update="40m"}}
1
2
rulesets:- Terraform / GCP # Rules to enforce / GCP.
Request a personalized demo
Commencer avec Datadog
Ask AI
AI-generated responses may be inaccurate. Verify important info.