-
Notifications
You must be signed in to change notification settings - Fork 912
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
update(userspace/engine): introduce new check_plugin_requirements
API
#2009
Conversation
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
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.
This is great! Just left a minor indentation suggestion.
I think this fix deserves some additional context. The current plugin/rules loading works as follows:
This logic has the simple flow that Falco is not able to find out if the loaded rules require a certain plugin/version that has not been configured to be loaded. For instance, this would cause the This PR proposes a fix for this by letting the Engine perform all the check, and ensures that all rules-plugins dependencies are satisfied at loading time. |
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it> Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Thank you @jasondellaluce for the additional context, I forgot to add it 😄 |
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.
/approve
LGTM label has been added. Git tree hash: 4764457a0efe76b4bde24ae98a675c08352e342e
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, jasondellaluce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
LGTM
Signed-off-by: Andrea Terzolo andrea.terzolo@polito.it
What type of PR is this?
/kind cleanup
/kind feature
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
This PR introduces a new
check_plugin_requirements
API instead of the oldis_plugin_compatible
to check if a list of plugins satisfies all the version requirements.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: