-
Notifications
You must be signed in to change notification settings - Fork 701
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
Fixed the apigateway__enum module #437
Conversation
- If the user has "GET" permissions on API Gateways but not the API Keys, the module will still get all the paths from the Gateway rather than failing - There was no error handling on "all regions" so it would fail. Added error handling so the user can check all regions without issues - Previously it saved the data to a standalone file, updated this so it stores to the Pacu DB like other modules
print = pacu.print | ||
session = pacu.get_active_session() | ||
session = pacu_main.get_active_session() | ||
print = pacu_main.print | ||
args = parser.parse_args(args) | ||
|
||
outfile_path = downloads_dir()/'apigateway' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove all file output stuff if this data is now saved in the DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stand by, I think I missed something on the database. Digging into this now and will also fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DaveYesland -- This should all be fixed now
- I broke error handling in my last commit when targeting multiple regions -- this fixes that
If the user has "GET" permissions on API Gateways but not the API Keys, the module will still get all the paths/methods/resources rather than failing
There was no error handling on "all regions" so it would fail. Added error handling so the user can check all regions without issues
Previously it saved the data to a standalone file, updated this so it stores to the Pacu DB like other modules