nccgroup / PMapper

A tool for quickly evaluating IAM permissions in AWS.
GNU Affero General Public License v3.0
1.41k stars 169 forks source link

PR: Address Issues 1 and 3 #6

Closed ncc-erik-steringer closed 6 years ago

ncc-erik-steringer commented 6 years ago

Issue #1 was an issue with hitting a throttle when calling the SimulatePrincipalPolicy too frequently. Additionally, there was another issue raised when too many actions and resources were passed to the API at one time. The commits in the fix3 branch mitigates both issues by wrapping the API call in a throttle-aware loop, and chunking resources passed to the simulation API to twenty at a time.

Issue #3 was an issue caused by exceptions in function calls wrapped by a tqdm progress-tracking loop. The commits in the fix3 branch attempts to address those exceptions.