Closed arunpaladin closed 2 months ago
The modifications enhance the flexibility and clarity of policy management regarding retention durations for various security logs. Key changes include generalizing retention parameters, updating policy names, and improving error handling. The adjustments aim to provide a dynamic approach to compliance checks, allowing configurations based on user-defined retention periods.
Files | Change Summary |
---|---|
installer/resources/pacbot_app/files/DB_Policy.sql |
Updated SQL insert and update statements to generalize retention periods for policies, renamed parameters for clarity, and removed outdated policy entries. |
jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/azurerules/NSGRule/NetworkFlowLogRetentionRule.java |
Enhanced retention policy flexibility by introducing a configurable parameter, updated method names and logic to accommodate dynamic retention checks. |
jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/azurerules/SQLServer/SetRetentionDaysGreaterThanNinety.java |
Modified policy to validate against a configurable retention duration, updated annotations and method names, and improved error handling. |
jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/azurerules/VirtualMachine/EncryptionAppTierRule.java |
Adjusted parameter name handling to align with new conventions without altering the overall control flow. |
sequenceDiagram
participant User
participant PolicyManager
participant Database
User->>PolicyManager: Set retention duration
PolicyManager->>Database: Update retention settings
Database-->>PolicyManager: Confirm update
PolicyManager-->>User: Acknowledge configuration
π In fields of green, where rabbits play,
New rules have come to brighten the day.
With flexible days and names so bright,
Our policies now feel just right!
Hops of joy, letβs dance and cheer,
For changes made bring us good cheer! πΌβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
β οΈ DELETE statement found in the changes of SQL files. Requesting review from @ershad-paladin and @arunpaladin.
Failed conditions
36.1% Duplication on New Code (required β€ 10%)
PLG-637 Use Policy params retention days in Policy class.
Set NSG flow log retention period >= N days Set Retention Duration To 'Greater Than N Days' For SQL Server Use Policy params retention days in Policy class. and modified the order of the Tag Name and Tag Value for "Enable Encryption For Application Tier Disk Volumes Using CMK" Policy
Problem
Solution
Fixes # (issue if any)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
Other Information:
List any documentation updates that are needed for the Wiki
Summary by CodeRabbit
New Features
Bug Fixes
Improvements