-
Notifications
You must be signed in to change notification settings - Fork 178
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
Collect additional metadata for vulnerabilities from OSV #2219
Conversation
a2b75c7
to
495c479
Compare
Thanks @hown3d this is a great addition! Will review this soon! |
For now I've only included the severity field from the OSV API. I see potential in ingesting additional metadata like summary, details and references into GUAC. |
For the vulnerability summary, details..etc, our thought process was that information did not need to be stored in the graph. Rather, it can be retrieved client side when needed. The CVE - severity field are needed to make decisions. So only information that is needed by admission control or some other policy engine should be in the graph and queryable. Other information can be obtained client side when needed from OSV. |
Sorry for the delay! I will review this soon! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is a great PR, very comprehensive! We should just remove it from "on ingestion" otherwise this is good to go! Thank You!
Rechecking the code i don't think it's necessary to use a flag instead just defaulting to add vulnerability metadata. It introduces so many places to add this flag that it gets quite confusing. |
For on ingestion we should default it to false (no need for a flag). The certifier can have a flag which the user can enable/disable if they want. |
495c479
to
1b514ed
Compare
a365f7d
to
0a3286f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - this is a great addition to the OSV certifier, thanks @hown3d ! I have one request, else LGTM!
* Bump github.com/99designs/gqlgen from 0.17.54 to 0.17.55 Bumps [github.com/99designs/gqlgen](https://github.com/99designs/gqlgen) from 0.17.54 to 0.17.55. - [Release notes](https://github.com/99designs/gqlgen/releases) - [Changelog](https://github.com/99designs/gqlgen/blob/master/CHANGELOG.md) - [Commits](99designs/gqlgen@v0.17.54...v0.17.55) --- updated-dependencies: - dependency-name: github.com/99designs/gqlgen dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * update generated code Signed-off-by: pxp928 <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: pxp928 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pxp928 <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]> Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
Signed-off-by: Lukas Hoehl <[email protected]>
a87eefa
to
f10b2ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I just have a concern on the timestamp that I may be misunderstanding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see follow up too comment. minor change
Signed-off-by: Lukas Hoehl <[email protected]>
Description of the PR
This PR introduces a new flag,
add-vuln-metadata
, that enables the collection of severity information for CVEs directly from the OSV API. When this flag is enabled, the collected severity data is ingested into GUAC as aVulnerabilityMetadata
nodes, enriching vulnerability data with additional context on severity levels.Key Changes:
VulnerabilityMetadata
node, allowing for improved vulnerability assessment and analysis within GUAC.This enhancement provides better visibility into CVE severity, enabling users to prioritize vulnerabilities more effectively based on standardized severity metrics.
PR Checklist
-s
flag togit commit
.make generate
has been runmake generate
has been runmake generate
has been runcollectsub
protobuf has been changed,make proto
has been runSigned-off-by: Lukas Hoehl [email protected]