aboutcode-org / aboutcode-org/vulnerablecode

Add types in reference URLs

Đang mở
#712 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
702
Fork
328
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
3

Mô tả

## Context
Many vulnerability database designs have a support for types of given reference URLs. For eg:
### NVD
image
Schema:

- https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/CVE_JSON_5.0_schema.json
- https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/tags/reference-tags.json

### 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)_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.