https://github.com/darkbitio/gcp-iam-role-permissions
Exports primitive and predefined GCP IAM Roles and their permissions
https://github.com/darkbitio/gcp-iam-role-permissions
gcp iam permissions role
Last synced: 4 months ago
JSON representation
Exports primitive and predefined GCP IAM Roles and their permissions
- Host: GitHub
- URL: https://github.com/darkbitio/gcp-iam-role-permissions
- Owner: darkbitio
- Created: 2020-07-18T02:59:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:15:26.000Z (6 months ago)
- Last Synced: 2024-10-24T17:01:51.373Z (6 months ago)
- Topics: gcp, iam, permissions, role
- Language: Ruby
- Homepage:
- Size: 10.1 MB
- Stars: 107
- Watchers: 9
- Forks: 20
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - darkbitio/gcp-iam-role-permissions - Exports primitive and predefined GCP IAM Roles and their permissions (Ruby)
README
# Fetches all Primitive and Predefined GCP IAM Roles

This repository fetches the ~1,170 primitive and predefined IAM Roles in JSON format to the `roles` directory. A GitHub Action is configured to refresh them daily. This allows for automatic tracking of changes as they are made by GCP.
A couple of helper scripts are provided to aid in searching/listing of the output. Note that `jq` should be installed and in your `PATH`:
* `list-all-permissions.sh` grabs the unique list of all permissions contained in all roles fetched
* `list-alpha/beta/ga-roles.sh` lists the roles labeled by GCP as alpha, beta, or GA (generally available)
* `list-roles-with-permission.sh ` lists the roles that contain a specific permission passed by the first argument. e.g.: `./list-roles-with-permission.sh container.clusters.get`
* `list-permissions-of-role.sh ` lists the permissions contained by the role named ``. e.g. `./list-roles-with-permission.sh container.admin` (no need to prepend the `roles/`)