feat: add denylist to sbom verifier#1194
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1194 +/- ##
==========================================
+ Coverage 54.46% 54.92% +0.46%
==========================================
Files 103 104 +1
Lines 6696 6780 +84
==========================================
+ Hits 3647 3724 +77
- Misses 2722 2728 +6
- Partials 327 328 +1 ☔ View full report in Codecov by Sentry. |
b3cb6b9 to
8312178
Compare
Signed-off-by: Susan Shi <huish@microsoft.com>
|
Thanks for the PR @susanshi. now that we have added license filtering in the SBOM verifier, do you think we should mark the licensechecker external plugin as deprecated? |
binbin-li
left a comment
There was a problem hiding this comment.
wonder if you've run Azure tests as well?
TODO: create an issue to deprecate this |
Hi @binbin-li , does the Azure test only run on merge to main? Is there a specific concerns this would impact the azure test? |
|
Hi @binbin-li @junczhu @akashsinghal , i have pushed updates to address the feedback. please review when convenient, thanks! |
issue created at , #1200 |
Co-authored-by: Akash Singhal <akashksinghal98@gmail.com> Signed-off-by: Susan Shi <huish@microsoft.com>
akashsinghal
left a comment
There was a problem hiding this comment.
LGTM. I think there's one comment from @junczhu still outstanding?
Description
What this PR does / why we need it:
Next PR: adding documentation and cluster E2E tests
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when the PR gets merged):Fixes #1095
Type of change
Please delete options that are not relevant.
mainbranch)How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Sample verification response based on denied license of MIT and GPL2.0
{
"subject": "huishwabbit1.azurecr.io/sbom@sha256:6fe8f00273c1acfee907e0674ffe33b5bf0a50f09a97bafeb0abdcb53904f766",
"isSuccess": false,
"name": "sbom",
"message": "SBOM validation failed.",
"extensions": {
"creationInfo": {
"created": "2023-11-29T01:44:41Z",
"creators": [
"Organization: Anchore, Inc",
"Tool: syft-0.76.0"
],
"licenseListVersion": "3.20"
},
"licenseViolation": [
{
"License": "GPL-2.0-only",
"Name": "alpine-baselayout",
"Version": "3.4.0-r0"
},
{
"License": "GPL-2.0-only",
"Name": "alpine-baselayout-data",
"Version": "3.4.0-r0"
},
{
"License": "MIT",
"Name": "alpine-keys",
"Version": "2.4-r1"
},
{
"License": "GPL-2.0-only",
"Name": "apk-tools",
"Version": "2.12.10-r1"
},
{
"License": "GPL-2.0-only",
"Name": "busybox",
"Version": "1.35.0-r29"
},
{
"License": "GPL-2.0-only",
"Name": "busybox-binsh",
"Version": "1.35.0-r29"
},
{
"License": "MPL-2.0 AND LicenseRef-AND AND MIT",
"Name": "ca-certificates-bundle",
"Version": "20220614-r4"
},
{
"License": "MIT",
"Name": "musl",
"Version": "1.2.3-r4"
},
{
"License": "MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later",
"Name": "musl-utils",
"Version": "1.2.3-r4"
},
{
"License": "GPL-2.0-only",
"Name": "scanelf",
"Version": "1.3.5-r1"
},
{
"License": "GPL-2.0-only",
"Name": "ssl_client",
"Version": "1.35.0-r29"
}
]
},
"artifactType": "application/spdx+json"
}
]
}
Checklist:
Post Merge Requirements
Helm Chart Change