Skip to content

feat: [five-c] Create extended policy rules set #411#556

Merged
tdruez merged 19 commits into
mainfrom
5c-extended-policy-rules
Jul 24, 2026
Merged

feat: [five-c] Create extended policy rules set #411#556
tdruez merged 19 commits into
mainfrom
5c-extended-policy-rules

Conversation

@tdruez

@tdruez tdruez commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Issues

Changes

  • Three new vulnerability rules covering vulnerability detection, unresolved triage, and stale high-risk vulnerabilities
  • Configurable parameters per rule (minimum risk score, maximum days unaddressed) resolved from the per-dataspace configuration
  • detected_date field added to package-vulnerability links to track when a vulnerability was first recorded
  • Inventory filter by policy rule to show only packages that triggered a specific rule, shared across the product relation filtersets
  • Compliance tab badge updated to "triggered" with color reflecting the highest violation severity (red for error, yellow for warning)
  • Violation table ordering follows the rule registry order rather than alphabetical
  • Violation count on the dashboard now excludes obsolete rule types no longer present in the registry

New extended policy rules

Rule Severity Description
Vulnerability Detected Error Packages with at least one known vulnerability, with an optional minimum risk score
Vulnerability Unresolved Warning Packages with known vulnerabilities and no completed vulnerability analysis
Vulnerability Stale Error Packages with high-risk vulnerabilities unaddressed beyond a configured number of days

All rules count the number of affected packages in a product. A rule triggers when that count exceeds the configured threshold (default: 0, meaning any match triggers).

Screens

Screenshot 2026-07-24 at 09 23 15 Screenshot 2026-07-24 at 09 23 46 Screenshot 2026-07-24 at 09 24 07

tdruez added 19 commits July 22, 2026 14:09
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
@tdruez
tdruez merged commit c2cd145 into main Jul 24, 2026
8 checks passed
@tdruez
tdruez deleted the 5c-extended-policy-rules branch July 24, 2026 05:26
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.

1 participant