-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cloudwf 2062 - address discrepancies in vuln generation #22
base: oval-v2
Are you sure you want to change the base?
Cloudwf 2062 - address discrepancies in vuln generation #22
Conversation
…advisories, added tests
…g oval manifest for new advisories, added comments, additional tests
… rpm parsing and efficient ordering of assessments for whether a given advisory is already processed
… and db lookups for already-processed, refactored manifest entry processing to iterate processing by document instead of all at once
…te to post-gather loop, fixed struct xml attribute ref
…red to database, updated tests
…lly excluding the first entry)
…or each namespace
…Name+FlagValue) - redhat package uses ovalv2, needs multiple flags to update multiple key/value processing status markers - updated existing vulnsrc impls to use the flag map
…or each namespace
…Name+FlagValue) - redhat package uses ovalv2, needs multiple flags to update multiple key/value processing status markers - updated existing vulnsrc impls to use the flag map
…pi provider in integration tests
…r out duplicate vuln data which appears across multiple oval docs), updated logging levels
…r out duplicate vuln data which appears across multiple oval docs), organized logging into logical groups, added tests
…a, removed unnecessary len() check from cpe name parsing
…com/johnbe11/clair into CLOUDWF-129_updateintegration_tests
@Allda - rebased and resolved conflicts |
@johnbe11 I still think you screwed up with a rebase. There are currently 90 commits in the PR and most of them are duplicated. Please clean up your commit history. |
…ny non-duplicate features of same-named vulnerabilities are merged rather than skipped, added tests
@Allda I still need to clean up the commit history, but otherwise this is ready for another review if you have time |
i := GetPendingVulnerabilitySliceIndex(vulnerabilities, vulnerability) | ||
if i >= 0 { | ||
// merge any new unique vuln features into the existing vuln | ||
vulnerabilities[i] = MergeVulnerabilityFeature(vulnerability, vulnerabilities[i]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CollectVulnsForAdvisory
takes a single oval file and return vulnerabilities.. how this is going to work when the same combination of RHSA + CVE is also present in different oval file? Can you do a merging outside of CollectVulnsForAdvisory
when all data are collected?
Changes related to https://projects.engineering.redhat.com/browse/CLOUDWF-2062 (Address discrepancies in OVAL data vs VMaaS)