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

Louis/dedupe vulns remodel #93

Merged
merged 9 commits into from
Jan 8, 2020
Merged

Louis/dedupe vulns remodel #93

merged 9 commits into from
Jan 8, 2020

Conversation

ldelossa
Copy link
Contributor

This PR accomplishes the following:

  1. Creates a new model called "Environment". This model allows a single unique package to be found in multiple Environment contexts. While an edge case for linux systems, this model is necessary for language package scanning where an indexed Python package can be found several times in multiple PIP databases (in the python example).
  2. Removes the vulnscanner, it was crufty and out of place, in favor of a single Match method in the matcher package
  3. Refactor the linux.Coalescer and heavily comment our algorithm for matching packages with their environment.

debian/matcher_integration_test.go Outdated Show resolved Hide resolved
internal/indexer/linux/coalescer.go Outdated Show resolved Hide resolved
internal/indexer/controller/coalesce.go Outdated Show resolved Hide resolved
internal/indexer/linux/coalescer_test.go Outdated Show resolved Hide resolved
rhel/matcher_test.go Outdated Show resolved Hide resolved
vulnerabilityreport.go Outdated Show resolved Hide resolved
vulnerabilityreport.go Outdated Show resolved Hide resolved
internal/matcher/match.go Outdated Show resolved Hide resolved
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldelossa ldelossa merged commit 27ade1d into master Jan 8, 2020
@ldelossa ldelossa deleted the louis/dedupe-vulns-remodel branch February 28, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants