Description
issue_client_certificate controls whether a new cluster issues a legacy client certificate alongside the default OAuth authentication. It leaves API server TLS certificate verification unchanged.
Potential impact
Copies of a certificate and private key are hard to track and retire. Someone who obtains both can use the identity’s permissions.
Remediation
For new clusters, set issue_client_certificate = false and grant OAuth clients only the required IAM and Kubernetes RBAC permissions. On existing clusters, migrate certificate users to OAuth, remove the certificate’s grants and test required operations.
Examples
Both blocks refer to google_container_cluster.example and differ only in client certificate issuance.
Before
resource "google_container_cluster" "example" {
name = "marcellus-wallace"
location = "us-central1-a"
initial_node_count = 3
master_auth {
client_certificate_config {
issue_client_certificate = true
}
}
}
After
resource "google_container_cluster" "example" {
name = "marcellus-wallace"
location = "us-central1-a"
initial_node_count = 3
master_auth {
client_certificate_config {
issue_client_certificate = false
}
}
}
Explanation:
- Before:
truerequests the legacy credential. - After:
falseskips issuance at creation. It cannot revoke a certificate already issued.