Closed ershad-paladin closed 3 months ago
The recent updates introduce new configurations for database targets and policies, modify existing database entries, and enhance the Java utility methods for ElasticSearch interactions. Additionally, a new policy class is introduced to check resources scanned by external plugins, and constants are updated to support these changes.
File Path | Change Summary |
---|---|
installer/resources/pacbot_app/files/DB.sql |
Added new INSERT and UPDATE statements for cf_Target and cf_AssetGroupDetails tables. |
installer/resources/pacbot_app/files/DB_Policy.sql |
Updated severityToCheck to severityMatchCriteria and added new entries for ec2_cs_resource_scanned policy. |
jobs/.../PacmanUtils.java |
Modified getQueryFromElasticSearch method and introduced getResultFromElasticSearch method. |
jobs/.../CheckResourceScannedByPlugin.java |
Introduced a new policy class to check resources scanned by external plugins. |
jobs/.../PacmanRuleConstants.java |
Added new constants RESOURCE_INDEX and RESOURCE_KEY to support new functionalities. |
sequenceDiagram
actor Admin
participant DB as Database
participant App as Application
participant ES as ElasticSearch
Admin->>DB: Insert new target 'server'
Admin->>DB: Update targetConfig for 'workstation'
Admin->>DB: Update severityMatchCriteria in policies
App->>ES: getResultFromElasticSearch()
ES-->>App: Returns JsonArray
App->>DB: Check resources scanned by plugins
DB-->>App: Returns scan results
In the land of code, where data flows, New targets rise, and policies grow. ElasticSearch whispers secrets in the night, As plugins scan with all their might. Constants stand tall, new fields in sight, PacBot evolves, shining bright! 🌟
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 @santhosh and @arun.
⚠️ DELETE statement found in the changes of SQL files. Requesting review from @santhosh and @arun.
⚠️ DELETE statement found in the changes of SQL files. Requesting review from @santhosh and @arun.
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Description
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
Updates
Improvements
Bug Fixes
groupType
value in asset group details.