-
Notifications
You must be signed in to change notification settings - Fork 202
RFD: Support CNAs reporting affected artifacts #440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
RFD: Support CNAs reporting affected artifacts #440
Conversation
This RFD introduces support for CNAs to report artifacts affected by a vulnerability by introducing a new "affectedArtifacts" field to the "cnaPublishedContainer". This new field is an array of objects, with each object identifying a single artifact, potentially with multiple identifiers per-artifact. Signed-off-by: Andrew Lilley Brinker <[email protected]>
Signed-off-by: Andrew Lilley Brinker <[email protected]>
We may want to consider supporting an array of synonyms. Here are two variant examples: {
"affectedArtifacts": [
{
"artifacts": {
"omnibor": "gitoid:blob:sha256:9f64df92367881be21e23567a31a8ce01994d98b69d28917b5c132ce32a8e6c8",
"sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
},
"status": "affected",
"version": "0.18.1",
"versionType": "semver",
"platforms": ["macOS", "x86"]
},
{
"artifacts": [
{
"type": "omnibor",
"value": "gitoid:blob:sha256:4043df92367881be21e23567a31a8ce01994d98b69d28917b5c132ce32a8e6c8"
},
{
"type": "sha256",
"value": "40414dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}
],
"status": "affected",
"version": "0.18.1",
"versionType": "semver",
"platforms": ["Windows", "x86"]
}
]
} The value of such an approach is twofold:
I think both of these reasons outweigh the extra verbosity. |
Thanks @david-waltermire! A few thoughts:
|
I'll also note that during today's QWG meeting a couple of folks raised the idea of using a |
I don't think I expressed my thoughts on the I think it may make more sense to not have the version field at all and I'll try to make that case. The case for omitting
|
Thanks @darakian! Regarding removing I'd added them in for this proposal based on feedback from @ElectricNroff (see #427). I assume he would advocate for their inclusion here as well. In this context, they'd semantically be providing information about the artifact but not constraining applicability the way they do when used in the |
This RFD introduces support for CNAs to report artifacts affected by a vulnerability by introducing a new "affectedArtifacts" field to the "cnaPublishedContainer". This new field is an array of objects, with each object identifying a single artifact, potentially with multiple identifiers per-artifact.
This is a replacement for the previous OmniBOR portion of #407 (which originally covered both Package URLs and OmniBOR Artifact IDs, before being narrowed to solely focus on Package URLs).
The potential implementation can be seen in #441.
Rendered