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

Environment-Specific Log Group Retention Policy Validation #6240

Open
prit2477 opened this issue Dec 18, 2024 · 0 comments
Open

Environment-Specific Log Group Retention Policy Validation #6240

prit2477 opened this issue Dec 18, 2024 · 0 comments
Labels
feature-request New feature request for Prowler.

Comments

@prit2477
Copy link

New feature motivation

When scanning multiple accounts, we often have environment-specific log group retention policies:

Sandbox: 7 days
Staging: 30 days
Production: 365 days
Currently, these policies may be flagged as non-compliant unless explicitly configured for each environment. For example, a Sandbox log group with a retention policy of exactly 7 days should pass the compliance check, while any configuration below 7 days should be flagged as non-compliant. Similarly, Staging and Production environments should align with their respective policies.
Introduce functionality to allow environment-specific log group retention policies to be validated dynamically based on predefined rules.

Expected Behavior:

Ability to define retention policies per environment (e.g., Sandbox, Staging, Production).
Ensure that compliance checks only flag log groups as non-compliant when their configuration deviates from the defined environment-specific rules.
Support for handling multiple accounts and environments seamlessly.

Solution Proposed

Add a configuration file or parameter to specify retention rules for each environment.
Update compliance logic to check against these rules during scans.
Provide detailed output for any non-compliance based on environment-specific thresholds

Describe alternatives you've considered

This feature would be useful for organizations managing multiple cloud accounts with distinct compliance requirements for different environments. It ensures accurate reporting without false positives and better adherence to organizational policies.

Additional context

No response

@prit2477 prit2477 added feature-request New feature request for Prowler. status/needs-triage Issue pending triage labels Dec 18, 2024
@pedrooot pedrooot self-assigned this Dec 19, 2024
@pedrooot pedrooot removed the status/needs-triage Issue pending triage label Dec 19, 2024
@pedrooot pedrooot removed their assignment Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature request for Prowler.
Projects
None yet
Development

No branches or pull requests

2 participants