-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6548 from Tohar-orca/support-gcp-iam-policy-membe…
…rs-as-list fix(query): support GCP IAM policy members as lists
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
assets/queries/terraform/gcp/service_account_with_improper_privileges/test/positive3.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/compute.imageUser" | ||
|
||
members = [ | ||
"serviceAccount:[email protected]", | ||
] | ||
} | ||
binding { | ||
role = "roles/owner" | ||
members = [ | ||
"serviceAccount:[email protected]", | ||
] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
assets/queries/terraform/gcp/service_account_with_improper_privileges/test/positive4.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/admin" | ||
members = [ | ||
"serviceAccount:[email protected]", | ||
] | ||
} | ||
binding { | ||
role = "roles/editor" | ||
members = [ | ||
"serviceAccount:[email protected]", | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters