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

Add types in reference URLs #712

Open
Hritik14 opened this issue Apr 27, 2022 · 0 comments
Open

Add types in reference URLs #712

Hritik14 opened this issue Apr 27, 2022 · 0 comments

Comments

@Hritik14
Copy link
Collaborator

Hritik14 commented Apr 27, 2022

Context

Many vulnerability database designs have a support for types of given reference URLs. For eg:

NVD

image

Schema:

OSV

https://ossf.github.io/osv-schema/#references-field

Proposal

Having the type of reference might help in future to filter out the patches and exploits from other references.
It is not sure that we want to restrict our reference types to a few choices as done by OSV and NVD.
Further, we are not inferring the type of reference by our own but trust the upstream.

Thus, we are considering having a JSONField with contents like nvd:customer-entitlement, osv:fix, osv:web for reference type.
It is a JSONField and not a postgres Array because Arrays are specific to postgres but JSONFields are available in other dbs as well.

(via: https://github.com/nexB/vulnerablecode/wiki/WeeklyMeetings#meeting-on-tuesday-2022-04-26-at-1000-utc)

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

No branches or pull requests

1 participant