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

[WIP]Add cvrf parser and import opensuse cvrf advisories #173

Closed
wants to merge 9 commits into from

Conversation

sbs2001
Copy link
Collaborator

@sbs2001 sbs2001 commented Apr 15, 2020

The cvrf parser is obtained by forking https://github.com/oasis-open/csaf-parser and trimming it down .

TODOs:

  • Trim the parser further. This includes removing the cli funtionality of parser entirely,rather than giving it fixed inputs and removing support for other schemas.

img

sampledata.zip

I also tried this parser to get data from Red hat's cvrfs and it works, but that's not in the scope of this PR for now.

Fixes #62, addresses #44 and #41

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Apr 16, 2020

https://colab.research.google.com/drive/1eLKwA5oe6pfCtKBqP672AQmWITmAKG9s here's google colab notebook to see the importer running

sbs2001 added 6 commits April 17, 2020 13:52
Signed-off-by: Shivam Sandbhor <[email protected]>
Signed-off-by: Shivam Sandbhor <[email protected]>
Signed-off-by: Shivam Sandbhor <[email protected]>
Signed-off-by: Shivam Sandbhor <[email protected]>
Signed-off-by: Shivam Sandbhor <[email protected]>
@sbs2001
Copy link
Collaborator Author

sbs2001 commented May 17, 2020

I've realized that OVAL advisories are better than CVRF advisories, because of following reason

OVAL advisories have a concrete way of denoting a package's name and it's version. On the other hand CVRF advisories publish package with it's name and version in one string. So we have to do some guesswork(which no matter how accurate, is bad) to figure out what is package name and what is package version.

I would rather prefer to import data from SUSE OVAL advisory than CVRF advisories. I'll leave this open in case we might need to handle CVRF advsiories(in case no other formats are available)

@sbs2001 sbs2001 closed this May 21, 2020
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.

Collect SUSE
1 participant