Skip to content

Data Ingestion Scenarios #164

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

Closed
haikoschol opened this issue Mar 15, 2020 · 0 comments · Fixed by #152
Closed

Data Ingestion Scenarios #164

haikoschol opened this issue Mar 15, 2020 · 0 comments · Fixed by #152

Comments

@haikoschol
Copy link
Collaborator

This issue is just a rough note about various scenarios our import code needs to handle. Should be translated to automated tests eventually.

both new

a new vulnerability has been found.

the data source emits a package (with impacted and resolved versions) and a vulnerability which both do not exist in the database yet.

the expected outcome is (bulk inserted) new entries for packages and vulnerabilities

new package, existing vulnerability

an existing vulnerability has been found to impact a package that was previously considered unaffected.

the data source emits a new package (with impacted and resolved versions) for a vulnerability that already exists in the database.

the expected outcome is (bulk inserted) new entries for packages linked to the existing vulnerability

existing package, existing vulnerability, fixed version is new

a vulnerability and an affected package version are known and a new version with a fix has been published.

the data source emits a new (fixed) version for an already existing package and an already existing vulnerability.

the expected outcome is a (bulk inserted) new entry in Package for the new version and a new entry in ResolvedPackage linking it to the existing vulnerability.

existing package, existing vulnerability, more info about vulnerability

an existing security advisory is updated with more information; the vulnerability got a more detailed description.

the data source emits a package (with impacted and resolved versions) and a vulnerability that both already exist in the database.

th expected outcome is an update to the stored vulnerability, adding the detailed description.

CVE ID added to existing advisory

an existing advisory is updated with a newly issued CVE ID for the vulnerability.

tricky...

@haikoschol haikoschol linked a pull request Mar 15, 2020 that will close this issue
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 a pull request may close this issue.

1 participant