IAM permission assigned to user Affecting IAM service in Google


Severity

0.0
medium
0
10
    Severity Framework
    Snyk CCSS
    Rule category
    IAM / Users

Is your enviroment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
    Frameworks
    CIS-Controls CSA-CCM HIPAA
  • Snyk ID SNYK-CC-00349
  • credit Snyk Research Team

Description

Assigning the IAM permission directly to the user increases the security management overhead.

How to fix?

Do not include users in the IAM binding members attribute.

Example Configuration

resource "google_project_iam_binding" "allowed" {
  project = "your-project-id"
  role    = "roles/editor"
  members = [
    "group:test@example.com",
  ]
}

Terraform