An organization is establishing strict compliance guardrails for service account administration in Google Cloud. A dedicated security team created a custom service account named `[email protected]` in project `proj-backend`. Developers in the project need to attach this service account to newly deployed Cloud Run services. However, security policy strictly forbids developers from modifying service account permissions, creating key files, or managing other service accounts in the project. Which IAM role configuration meets these security requirements while applying the principle of least privilege?
- Grant the developers the Service Account User role (roles/iam.serviceAccountUser) bound directly on the sa-app-deployer service account resource.Cevap
- BGrant the developers the Editor primitive role (roles/editor) at the project level for proj-backend.
- CGenerate a private JSON key file for sa-app-deployer and assign the Service Account Token Creator role (roles/iam.serviceAccountTokenCreator) to the developer group at the organization level.
- DGrant the developers the Service Account Admin role (roles/iam.serviceAccountAdmin) at the project level to ensure inheritance down to the individual service account.
Cevap
Grant the developers the Service Account User role (roles/iam.serviceAccountUser) bound directly on the specific service account resource.
To allow a user or group to attach a service account to a GCP compute resource without granting permission to manage service accounts, you must grant the Service Account User role (roles/iam.serviceAccountUser) on that specific service account resource. Binding the role on the individual service account rather than at the project level enforces strict least-privilege control.
Adım Adım Çözüm
Anahtar Kavram
Fine-grained IAM Delegation for Service Accounts
Tahmini Süre:2m 0s