ROX-34928: Add CISA KEV UI display and policy criteria - #22103
Draft
ajheflin wants to merge 4 commits into
Draft
Conversation
Add exploit { knownRansomwareCampaignUse } to all WorkloadCves GraphQL
fragments so the existing KnownExploitLabel and
KnownRansomwareCampaignLabel display components receive data.
Partially generated by AI.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Register CisaKev field name, query builder, and field metadata following the Fixable pattern. Enables policies that fire on CVEs in the CISA KEV catalog. Partially generated by AI.
Add radioGroup descriptor for CISA KEV in the policy wizard under Image Scanning. Users can create policies that fire when a CVE is (or is not) in the CISA KEV catalog. Gated behind ROX_CISA_KEV. Partially generated by AI.
|
Skipping CI for Draft Pull Request. |
Contributor
🚀 Build Images ReadyImages are ready for commit c3ec371. To use with deploy scripts: export MAIN_IMAGE_TAG=4.12.x-594-gc3ec371bb2 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## rox-34928/reporting-graphql #22103 +/- ##
============================================================
Coverage 51.35% 51.35%
============================================================
Files 2857 2857
Lines 178871 178885 +14
============================================================
+ Hits 91866 91874 +8
- Misses 78963 78967 +4
- Partials 8042 8044 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The copyFromImageComponentV2Cves function (used for bulk image upserts) was missing the cisa_kev column, causing all values to be NULL in the DB despite the converter correctly setting CVEInfo.CisaKev. Partially generated by AI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wire CISA KEV data through the UI and add policy criteria support. PR 4/4 in a stack.
exploit { knownRansomwareCampaignUse }into all WorkloadCves GraphQL fragments so the existingKnownExploitLabelandKnownRansomwareCampaignLabelcomponents (merged in ROX-31903: Add ROX_CISA_KEV in WorkloadCves #17901) receive dataCISA KEV) following the Fixable pattern: field name, query builder, field metadata, violation message printerradioGrouptype) under Image Scanning, gated behindROX_CISA_KEVStack: [Proto changes] → [Converter wiring] → [Reporting] → 4/4 — UI + Policy
Depends on: #21752
User-facing documentation
Testing and quality
Automated testing
How I validated my change
go test ./pkg/booleanpolicy/... -count=1