ROX-30569: Add SBOM Scanning REST API to Central#18484
Conversation
|
Skipping CI for Draft Pull Request. |
4eaf9ae to
5993fc8
Compare
|
Images are ready for the commit at 09f9e5f. To use with deploy scripts, first |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18484 +/- ##
==========================================
- Coverage 49.52% 49.50% -0.02%
==========================================
Files 2666 2667 +1
Lines 201181 201389 +208
==========================================
+ Hits 99629 99698 +69
- Misses 94115 94249 +134
- Partials 7437 7442 +5
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:
|
5993fc8 to
9749407
Compare
9a425e2 to
1aa7166
Compare
1aa7166 to
be324f8
Compare
|
Rebased from master, expecting that to address the prior unrelated UI errors |
971c703 to
2643358
Compare
2643358 to
01e65a6
Compare
|
Rebased to address conflicts |
So that it is easier to differentiate between the the generation vs. scanning handler.
- HTTP handler - Pass http request reader to Scanner V4 integration - Mock conversion of vuln report to Scan SBOM response
- made 'getScannerV4SBOMIntegration' reusable from SBOM gen and scan - now pass request context down to scannerv4 client - read size exceeds limit from error directly - removed operating system variable from the sbom response type
01e65a6 to
09f9e5f
Compare
|
Rebased onto latest master (to get new required CI checks to run) |
Description
Adds the
/api/v1/sboms/scancustom route and handler to facilitate SBOM scanning. Reading the SBOM content from the request and scanning it will be handled in a future PR - a fake response is returned for now.A few decisions to call out (happy to change as needed):
ROX_SBOM_SCANNINGROX_SBOM_MATCHING- I'm happy to change it, the API endpoint hasscanin its path and other user exposed areas of ACS reference 'scanning' - 'SCAN' seemed like the more consistent value.File sizes from: https://security.access.redhat.com/data/sbom/v1/spdx/
PR Stack:
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Unit tests + sending a fake request to the API:
Max request size enforcement