Validate IAM role names
- Dominant language
- Go
- Stars
- 26
- Forks
- 7
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
### TL;DR
It's common to introduce a typo when listing an IAM role in the `google_project_iam_member` resource.
Guardian could use the [IAM roles list API](https://cloud.google.com/sdk/gcloud/reference/iam/roles/list) to retrieve all of the roles from the project that is going to be modified and validate the string before merging a change.
### Detailed design
```markdown
```
### Alternatives considered
```markdown
```
### Additional information
_No response_
Contributor guide
Research direction
Find where google_project_iam_member resources are processed. Use the Google Cloud IAM roles list API to fetch valid roles for the target project. Add validation to compare the provided role name against the retrieved list. Look for existing API client usage and error handling patterns in the codebase.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp
- Domain
- backend-api-design, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100