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

permission-discrepancy-finder doesn't work due to google-cloud-asset bad version #572

Open
radkomateusz opened this issue Oct 14, 2020 · 1 comment

Comments

@radkomateusz
Copy link

Hi Googlers ;)

It seems that permission-discrepancy-finder doesn't work due to using bad version of google-cloud-asset library.

requirements.txt says:

google-api-python-client
google-cloud-asset

which downloads newest version of google-cloud-asset -> 2.1.0

Unfortunately, during running script, I get:
WARNING[2020-10-14 09:46:39,552]:Cannot retrive data for project: xxxx because of error analyze_iam_policy() got an unexpected keyword argument 'analysis_query'.

Changing requirements to:

google-api-python-client
google-cloud-asset==1.3.0

solves that issue.

Please update requirements.txt file or adjust script to newest version.

Note that this script is mentioned multiple times in documentation as solution for finding affected users of recent changes with default compute/app engine service accounts, so would be nice if it works without debugging.

Best regards
Mateusz :)

@agold-rh
Copy link
Contributor

@misabhishek Do you have any input, or should this be closed?

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