Skip to content

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

Closed
sbs2001 wants to merge 9 commits into
aboutcode-org:developfrom
sbs2001:cvrf-opensuse
Closed

[WIP]Add cvrf parser and import opensuse cvrf advisories#173
sbs2001 wants to merge 9 commits into
aboutcode-org:developfrom
sbs2001:cvrf-opensuse

Conversation

@sbs2001

@sbs2001 sbs2001 commented Apr 15, 2020

Copy link
Copy Markdown
Collaborator

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 added 3 commits April 15, 2020 17:51
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 commented Apr 16, 2020

Copy link
Copy Markdown
Collaborator Author

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 <shivam.sandbhor@gmail.com>
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>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001

sbs2001 commented May 17, 2020

Copy link
Copy Markdown
Collaborator Author

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