-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Current Behavior
Vulnerability Policies don't have support for tagging the analysis if violated.
Proposed Behavior
Allow vulnerability policies to attach string tags to findings when a policy matches. Tags will be strictly policy-driven, user edits should not set or override them.
Policies can specify a list of tags, reconciliation applies them to matching analyses and removes them when policies stop applying.
Design Notes:
- Store tags inline on the
ANALYSISrecord, and clear them when a finding is no longer covered by a policy. (For backward-compatible migration, add a nullablePOLICY_TAGScolumn to theANALYSIStable (JSON/array) and map it on the Analysis domain object.) - Extend
VulnerabilityPolicyAnalysiswith List tags. - Reconciliation:
- In
AnalysisReconcilerderive desiredtagsfrom policy analysis. - If tags differ from stored policyTags, update analysis and add an audit comment.
- When a finding loses policy coverage, clear policyTags.
- UI exposure: Include policyTags in analysis/findings responses.
- Audit notification: Optional : Add a tag-change entry to the analysis audit comments.
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this enhancement was already requested
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request