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

Refactoring/aws/dynamodb #274

Merged
merged 3 commits into from
Mar 25, 2019

Conversation

Aboisier
Copy link
Contributor

@Aboisier Aboisier commented Mar 21, 2019

This PR migrates DynamoDB to the new architecture, see #183 . This is part of a proprietary feature, please also review the proprietary PR.

Interesting stuff:
The get for one table requires 3 API calls (getting the table info, the manual backups info and the continuous backups). I batched the requests instead of just parallelizing all the requests. This will mitigate the risk of being throttled.
EDIT: The batching was actually reverted. We realized the number of concurrent requests was already limited by the number of threads, so this became superfluous.

Copy link
Contributor

@misg misg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@codecov-io
Copy link

Codecov Report

Merging #274 into refactoring/resource-configs will decrease coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@                       Coverage Diff                        @@
##           refactoring/resource-configs     #274      +/-   ##
================================================================
- Coverage                            31%   30.99%   -0.02%     
================================================================
  Files                               130      130              
  Lines                              5632     5634       +2     
================================================================
  Hits                               1746     1746              
- Misses                             3886     3888       +2
Impacted Files Coverage Δ
ScoutSuite/providers/aws/facade/facade.py 43.85% <50%> (-1.6%) ⬇️
ScoutSuite/providers/aws/configs/services.py 49.18% <75%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f855ab...fa96d2f. Read the comment docs.

from ScoutSuite.providers.aws.services.kms_private import KMSConfig
except ImportError:
ConfigConfig = None
DynamoDBConfig = None
Config = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bye bye ConfigConfig 😍

@Aboisier Aboisier merged commit 77e95ff into refactoring/resource-configs Mar 25, 2019
@Aboisier Aboisier deleted the refactoring/aws/dynamodb branch March 25, 2019 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants