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

matcher: Introduce Remote Matcher interface #202

Merged
merged 5 commits into from Jul 16, 2020

Conversation

arajkumar
Copy link
Contributor

RemoteMatcher is an additional interface that a Matcher can implement.

When called the interface can invoke the remote matcher using the RESTful API
to fetch new vulnerabilities associated with the given IndexRecords.

The information retrieved from this interface won't be persisted into ClairCore database.

RemoteMatcher is an additional interface that a Matcher can implement.

When called the interface can invoke the remote matcher using the RESTful API
to fetch new vulnerabilities associated with the given IndexRecords.

The information retrieved from this interface **won't be persisted** into ClairCore database.
@arajkumar
Copy link
Contributor Author

arajkumar#3 is a WIP PR which implements the RemoteMatcher to fetch Python vulnerabilities from CRDA platform.

@arajkumar arajkumar changed the title matcher: Add preliminary support for Remote Matcher matcher: Introduce Remote Matcher interface Jul 16, 2020
internal/matcher/controller.go Outdated Show resolved Hide resolved
internal/matcher/controller.go Show resolved Hide resolved
Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

LGTM. Excited to see the implementation.

@ldelossa ldelossa merged commit d51d4c3 into quay:master Jul 16, 2020
arajkumar added a commit to arajkumar/claircore that referenced this pull request Jul 20, 2020
* matcher: Add preliminary support for Remote Matcher

RemoteMatcher is an additional interface that a Matcher can implement.

When called the interface can invoke the remote matcher using the RESTful API
to fetch new vulnerabilities associated with the given IndexRecords.

The information retrieved from this interface **won't be persisted** into ClairCore database.

* Update internal/matcher/controller.go

Co-authored-by: Louis DeLosSantos <louis.delos@gmail.com>

* remotematcher: Add a realistic deadline for QueryRemoteMatcher call

* remotematcher: Change deadline to 60s according to review comments

Co-authored-by: Louis DeLosSantos <louis.delos@gmail.com>
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