← all rules
iac/iam/iam-gcp-primitive-editor
GCP primitive role roles/editor granted
mediumCloud IAMiac-iam
What it detects
`roles/editor` is a broad primitive role granting write access to almost all resources. Prefer predefined or custom roles scoped to the task.
Remediation
Replace `roles/editor` with narrower predefined role(s).
How it runs
Run against JSON/YAML/source files. AWS IAM rules require a policy-document context (Statement + Effect); GCP primitive roles are matched anywhere. HCL is left to the Terraform layer.
Found a false positive or want this rule tuned? File an issue. You can also suppress per-repo via a .repoguardignore line.