ROX-30352: add CVE detail and affected VMs endpoints#19667
ROX-30352: add CVE detail and affected VMs endpoints#19667ajheflin wants to merge 1 commit intoaheflin/ROX-30352/vm-v2-vm-scoped-endpointsfrom
Conversation
Add 2 CVE-scoped endpoints to VirtualMachineV2Service:
- GetVMCVEDetail (GET /v2/virtualmachines/cves/{id}) - single CVE detail
with cross-VM severity aggregation, affected VM/guest OS counts
- ListVMCVEAffectedVMs (GET /v2/virtualmachines/cves/{id}/vms) - VMs
affected by a specific CVE with per-VM severity and fixability
Partially generated by AI.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This change is part of the following stack:
Change managed by git-spice. |
|
Images are ready for the commit at 6729330. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## aheflin/ROX-30352/vm-v2-vm-scoped-endpoints #19667 +/- ##
===============================================================================
- Coverage 49.35% 49.35% -0.01%
===============================================================================
Files 2744 2744
Lines 207123 207123
===============================================================================
- Hits 102222 102217 -5
- Misses 97318 97323 +5
Partials 7583 7583
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Part 5/6 of the VirtualMachineV2Service API stack (ROX-30352).
Adds 2 CVE-scoped endpoints:
GetVMCVEDetail(GET /v2/virtualmachines/cves/{id}) - single CVE detail with cross-VM severity aggregation, affected VM count, affected guest OS count, and top CVSSListVMCVEAffectedVMs(GET /v2/virtualmachines/cves/{id}/vms) - VMs affected by a specific CVE with per-VM severity, fixability, and affected component countUser-facing documentation
Testing and quality
Automated testing
Service tests to be added in a follow-up.
How I validated my change
go build ./central/virtualmachine/v2/service/...compiles cleanly