Skip to content

Files

Latest commit

 

History

History
26 lines (16 loc) · 599 Bytes

google-iam-no-org-level-service-account-impersonation.md

File metadata and controls

26 lines (16 loc) · 599 Bytes

Pattern: Use of org-level service account access for Google IAM

Issue: -

Description

Users with service account access at organization level can impersonate any service account. Instead, they should be given access to particular service accounts as required.

Resolution: Provide access at the service-level instead of organization-level, if required.

Examples

Example of incorrect code:

Example of correct code:

resource "google_organization_iam_binding" "organization-123" {
	org_id  = "org-123"
	role    = "roles/nothingInParticular"
}