-
Notifications
You must be signed in to change notification settings - Fork 24
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
Jv runtime filtering collections feature DON'T REVIEW #1631
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit reenables Falco's full build in order to enable us using the container engines to extract k8s metadata from container labels. A feature flag has been added in order to maintain the current behaviour of using our custom engine that just grabs container ID from cgroups or default to using Falco's engines that also capture metadata by querying runtimes. In order to simplify and (somewhat) abstract extraction of fields, a new K8s class has been created. Unfortunately, due to how Falco works, we still need to pass in the inspector to the constructor and the events need to be forwarded to the getters for the metadata. By default only CRI, CRI-O and containerd engines are used (all 3 of them share the same API), but a couple configuration flags have been added to enable using docker and podman in case we need them at some point in time.
as filter object for runtime config
…d some refactoring to use more functions and less nesting
…nit test before embedded collections are added
…ng fields and empty arrays
Co-authored-by: Mauro Ezequiel Moltrasio <[email protected]>
Moved packages from the suites directory to a pkg directory, this should make it clearer what things are helper packages and what are actual tests. Refactored executor and collector_manager packages out of the common package. Implemented a bare-bones k8s based executor (still needs testing).
The added integration tests relay on KinD being available on the running system.
- Renamed collector_manager package to collector. - Renamed multiple objects in the collector package to shorter names. - Added helper functions to the collector package for getting log paths. - Created a general ContainerFilter object that can be used for multiple operations in the executor package.
…tering-collections-feature
JoukoVirtanen
changed the title
Jv runtime filtering collections feature
Jv runtime filtering collections feature DON'T REVIEW
Apr 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist
Automated testing
If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.
For more details, ref the Confluence page about this section.