Skip to content
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

fix: by-cpe pivot by vuln metadata rather than vulnerability record #1188

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

westonsteimel
Copy link
Contributor

This changes the --by-cve logic to only reorient the vulnerability metadata around NVD data rather than attempting to get the corresponding vulnerability table record. This will address performance concerns since their was no index on id, namespace on the vulnerabilities table, but there is on the vulnerability_metadata table. This also preserves the fixed in information from the actual match rather than losing it since the NVD data has no fix info. It also correctly returns the CVE identifier in cases where there is more than one vulnerability record for a given id, namespace since that is the primary key on the vulnerability_metadata table.

Fixes #1185

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
@westonsteimel westonsteimel requested a review from a team March 20, 2023 13:59
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--by-cve takes a noticeable amount more time to complete
2 participants