prancer-io / cloud-validation-framework

prancer platform is an IaC Security engine + Continuous Compliance for your cloud (Azure, AWS, GCP) and Kubernetes environment
https://www.prancer.io
Mozilla Public License 2.0
122 stars 29 forks source link

GCP is not crawling "masterSnapshotId": "GOOGLE_PROJECTS_IDENTITY_PLATFORM_ACCOUNTS" #711

Closed rezoan closed 5 months ago

rezoan commented 1 year ago

During running compliances no snapshots are being generated for GOOGLE_PROJECTS_IDENTITY_PLATFORM_ACCOUNTS

MasterSnapshotid is at: https://github.com/prancer-io/prancer-compliance-test/blob/dev-rezoan-gcp/google/cloud/master-snapshot.json#L362 googleParams.json is at https://github.com/prancer-io/prancer-hello-world/blob/rezoan-patch-2/googleParams.json IAM compliances is at https://github.com/prancer-io/prancer-compliance-test/blob/dev-rezoan-gcp/google/cloud/iam.rego#L670

Crawler console output:

2023-09-17 12:54:51,878 -   Snapshot:
2023-09-17 12:54:51,904 -   GOOGLE_PROJECTS_IDENTITY_PLATFORM_ACCOUNTS:false
vatsalgit5118 commented 7 months ago

@rezoan, please include the get_method in master snapshot file with identitytoolkit/projects.accounts.batchGet value. Also, add the following parameters in the googleParams.json inside GoogleGetApis.

"identitytoolkit/projects.accounts.batchGet": {
    "url" : "https://identitytoolkit.googleapis.com/v1/projects/{project}/accounts:batchGet"
}
rezoan commented 6 months ago

@vatsalgit5118 @farchide snapshots are generating correctly. can close this issue.