A global healthcare technology company is deploying a HIPAA-compliant patient monitoring platform on Google Cloud. As the principal cloud architect, you must provision private Google Kubernetes Engine (GKE) clusters using Terraform in a shared Virtual Private Cloud (VPC) environment, ensuring strict control plane isolation, least-privilege automation, and reliable IaC state management. Which THREE architectural configurations and deployment practices should you implement to satisfy these security and operational requirements?
- Enable Control Plane Authorized Networks on the GKE private cluster and restrict access to the CIDR blocks of your management bastion hosts and CI/CD runners.Answer
- Store the Terraform state in a Cloud Storage backend configured with Object Versioning and state locking enabled via a remote backend configuration.Answer
- Grant the deployment pipeline service account the Service Account User role (roles/iam.serviceAccountUser) on the dedicated GKE node service account.Answer
- DGrant the GKE node service account the primitive Editor role (roles/editor) to ensure node pools can dynamically provision required cloud storage and network resources.
- EMaintain Terraform state files in local storage within the CI/CD container workspace to avoid external network storage overhead during deployment steps.
Answer
The correct implementation requires securing the GKE master endpoint with Control Plane Authorized Networks, using Cloud Storage with versioning and state locking for Terraform state management, and granting the Service Account User role to the CI/CD pipeline service account.
Securing a private GKE cluster deployment with Terraform demands three core architectural controls: restricting control plane administrative access via Control Plane Authorized Networks, configuring centralized Terraform state management in Cloud Storage with locking and versioning enabled, and delegating service account usage rights to CI/CD pipelines via the dedicated Service Account User role instead of elevated admin or primitive roles.
Step-by-Step Solution
Key Concept
Provisioning secure GKE private clusters using Infrastructure as Code (Terraform) requires enforcing control plane authorized networks, centralized remote state locking, and least-privilege IAM role assignments for deployment service accounts.