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

Cloudwf 2062 - address discrepancies in vuln generation #22

Open
wants to merge 94 commits into
base: oval-v2
Choose a base branch
from

Conversation

johnbe11
Copy link

@johnbe11 johnbe11 commented Jul 1, 2020

Changes related to https://projects.engineering.redhat.com/browse/CLOUDWF-2062 (Address discrepancies in OVAL data vs VMaaS)

johnbe11 added 30 commits March 16, 2020 16:43
…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
…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
johnbe11 added 20 commits July 2, 2020 12:42
…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
…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
@johnbe11
Copy link
Author

johnbe11 commented Jul 2, 2020

@Allda - rebased and resolved conflicts

@Allda
Copy link
Member

Allda commented Jul 2, 2020

@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.

ext/vulnsrc/redhat/redhat.go Outdated Show resolved Hide resolved
ext/vulnsrc/redhat/redhat.go Outdated Show resolved Hide resolved
@johnbe11
Copy link
Author

johnbe11 commented Jul 3, 2020

@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])
Copy link
Member

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?

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.

2 participants