Skip to content

Conversation

@sbs2001
Copy link
Collaborator

@sbs2001 sbs2001 commented Nov 25, 2020

Fixes #165

@sbs2001 sbs2001 requested a review from pombredanne November 25, 2020 11:04
@sbs2001 sbs2001 added the TBD label Nov 27, 2020
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

I think it makes sense, but I would prefer to have a function flag that's called ignore_temporary_vulnerabilities=True added so what we are doing is very explicit


for cve_id, record in records.items():
impacted_purls, resolved_purls = set(), set()
if not cve_id.startswith("CVE"):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if not cve_id.startswith("CVE"):
if not cve_id.startswith("CVE"):
# vulnerabilities starting with something may not be public yet
# see for instance https://web.archive.org/web/20201215213725/https://security-tracker.debian.org/tracker/TEMP-0000000-A2EB44
# TODO: this would need to be revisited though to ensure we are not missing out on anything

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Shouldn't that be with something else may not be public ?

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Dec 17, 2020

@pombredanne re: ignore_temporary_vulnerabilities=True

We can add a config like that at https://github.com/nexB/vulnerablecode/blob/5e551675152b5dea32a50b6f2348a1fbff7c58b6/vulnerabilities/importer_yielder.py#L61 .

@pombredanne
Copy link
Member

ignore_temporary_vulnerabilities=True

The thing with a config flag like that is that nobody will know what to do with it. You could add this but a TODO code comment is simpler and add a ticket so we can revisit the issue latest

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001 sbs2001 force-pushed the 165-debian-ignore-temp-vulns branch from 3639a67 to bf4adff Compare December 18, 2020 05:40
@sbs2001
Copy link
Collaborator Author

sbs2001 commented Dec 18, 2020

@pombredanne re: a ticket so we can revisit the issue latest

Yeah this makes sense. In fact RustSecDb too has temp advisories so this is not limited to debian

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Dec 18, 2020

I have added a comment to revisit this. I'm merging this for now .

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian importer is treating lots of non-cves like cves

2 participants