-
Notifications
You must be signed in to change notification settings - Fork 94
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
Community Auditor Scan issues #97
Comments
Please include a sample policy and an example of the crash. This is not enough information for me to understand the problem. To your first issue, not using the community auditors is the expected functionality. If you do not |
Apologies for not providing enough detail. Here's a sample policy:
Here's what I am running: Here's the crash:
|
I think this is best resolved by just wrapping the community auditors in code to check for exceptions here: parliament/parliament/policy.py Line 316 in be62b85
By doing:
The problem is that some findings will hide other findings by basically causing an exception to ignore further investigations because parliament doesn't know how to proceed. This was called out in #101. I think until #101 is given more thought, I cannot do something smarter here. |
I did a test using one of our common policies. The library call I make is as follows -
parliament.analyze_policy_string(POLICY_ARN, include_community_auditors=True)
it does the additional scan against community rules.Now that's fine and I'm happy to add the argument.
But then, say I scan for community rules and there is an InvalidARN, the code crashes. In my opinion, it should report the Invalid ARN and continue scanning. If I do not scan for community rules, the code does not crash.
The text was updated successfully, but these errors were encountered: