A biotechnology company manages its Google Cloud workloads within a resource hierarchy containing a dedicated folder named Genomics-Research. An automated CI/CD deployment pipeline running in a separate management project needs to attach and execute jobs as a specific worker service account inside a project under Genomics-Research. The security team mandates adhering strictly to the principle of least privilege while maintaining operational isolation. Which configuration recommended by Google Cloud best practices meets these requirements?
- Grant the Service Account User role (roles/iam.serviceAccountUser) on the specific worker service account resource to the deployment pipeline service account.Cevap
- BGrant the Service Account Admin role (roles/iam.serviceAccountAdmin) on the target project to the deployment pipeline service account.
- CGrant the Editor primitive role (roles/editor) at the Genomics-Research folder level to the deployment pipeline service account.
- DEnforce a VPC Service Controls perimeter around the Genomics-Research folder without assigning IAM service account impersonation roles.
Cevap
Grant the Service Account User role (roles/iam.serviceAccountUser) on the specific worker service account resource to the deployment pipeline service account.
The optimal Google Cloud security design mandates granting roles at the narrowest resource level possible. Granting the Service Account User role (roles/iam.serviceAccountUser) directly on the specific worker service account gives the deployment pipeline principal exact authorization to impersonate and launch workloads with that identity without granting broader project or folder permissions.
Adım Adım Çözüm
Anahtar Kavram
Fine-Grained IAM Service Account Impersonation and Resource Hierarchy Scoping