guardian
guardian copied to clipboard
Ability to configure roles for `gcloud_iam` provider
Summary At the moment, for every provider one can configure a set of roles with permission sets. It enables one to control the access roles to which a user can raise appeals for.
Bigquery example - https://odpf.github.io/guardian/docs/providers/bigquery#yaml-representation which has roles and permission set for each resource type.
This is not true for gcloud_iam
provider. Only this provider does not have a way to take in the configured roles/permissions from the provider config file. Due to which if the gcloud_iam
is exposed as a provider to users, the GetRoles method will fetch every iam role available in GCP. If one wants to restrict users to only a certain roles through guardian like other providers, they cannot currently., and the user would be able to raise an appeal for any role in gcp.
Proposed solution Modify the gcp provider to
- get roles from the provider config if roles are provided, and use them as the only roles available for appeals.
- continue as it is in the current form if the roles are not provided in the provider config.
@bsushmith @rahmatrhd is this duplicate of #218?
@ravisuhag not initially, but now the discussion for this also happens in #218
Covered in #218