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

Added a configuration to define the reports retention period #49

Merged
merged 19 commits into from
Oct 16, 2019

Conversation

sandy724
Copy link
Contributor

Currently, CS-Suite runs in a mode where either it saves all the reports or none. We would like to add a configuration where we can define reports retention period

Added a parameter -n or --number using which end user can define how many reports to be retained.

Comment on lines 11 to 13
from modules import gcpaudit
from modules import awsaudit
from modules import azureaudit
Copy link
Contributor

Choose a reason for hiding this comment

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

By importing the modules by default, will result in breaking of the tool

Let's assume the case, where a user is running audit for Azure environment
from modules import awsaudit
The awsaudit file will run this line
https://github.com/opstree/cs-suite/blob/master/modules/awsaudit.py#L30

Which basically requires AWS cli to be configured.
Hence breaking it, as the user will be running the scan only for Azure.
Can we import these based on the environment parameter given by the user

Something like this
https://github.com/opstree/cs-suite/blob/master/cs.py#L65

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done with the suggested changes, please review

Devesh sharma and others added 2 commits October 4, 2019 16:35
@shivankar-madaan shivankar-madaan merged commit 4970e14 into SecurityFTW:master Oct 16, 2019
shivankar-madaan added a commit that referenced this pull request Oct 16, 2019
@shivankar-madaan
Copy link
Contributor

Thanks guys!!
Awesome work..

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

Successfully merging this pull request may close these issues.

4 participants