Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support IAM Conditions #70

Open
lawliet89 opened this issue Dec 17, 2019 · 1 comment
Open

Feature: Support IAM Conditions #70

lawliet89 opened this issue Dec 17, 2019 · 1 comment

Comments

@lawliet89
Copy link
Contributor

lawliet89 commented Dec 17, 2019

I would like to request for support of Cloud IAM conditions in the rolesets. Conditions are attached to the IAM bindings themselves and would be useful to further restrict what the rolesets can and cannot do.

Suggested HCL Syntax

resource "projects/X" {
	roles = [
		"roles/viewer",
	]

       condition "roles/viewer" {
		title = "A conditional IAM title"
		description = "A conditional IAM description"
		expression = "ResourceA==ResourceB"
       }

       condition "roles/editor" {
		title = "A conditional IAM title"
		description = "A conditional IAM description"
		expression = "ResourceA==ResourceB"
       }
}
@cvolante54
Copy link

I think this feature would be very beneficial. My understanding is that only work on the hcl parsing needs to be done to support this feature since #77 already updated the policy object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants