-
Notifications
You must be signed in to change notification settings - Fork 361
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
Tetragon oci hook setup #1842
Tetragon oci hook setup #1842
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ed896f2
to
1ef642f
Compare
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.
I left some comments re container template.
Also, I caused some conflicts with #1845, sorry :) I essentially moved the Helm chart into tetragon directory, so hopefully they should be straightforward to resolve.
This is a preparation patch for subsequent patches. Signed-off-by: Kornilios Kourtis <[email protected]>
tetragon-oci-hook-setup is meant to be executed in an init container to setup run-time hooks on the host. Currently, it only supports the oci-hooks interface (as, for example, used by cri-o). NRI or other interfaces fall into future work. There are two commands: install and uninstall. Install will copy the hook binary to a directory (which should be a host mount) and add a configuration file to the hooks directory (also should be a host mount) to call the binary. Signed-off-by: Kornilios Kourtis <[email protected]>
Add tetragon-oci-hook and tetragon-oci-hook-setup in the tetragon image. This will enable us to use it as an init container to setup the OCI hooks. Signed-off-by: Kornilios Kourtis <[email protected]>
This patch adds the ociHookSetup helm value to configure the tetragon oci hook. For now, it is disabled by default. Signed-off-by: Kornilios Kourtis <[email protected]>
This is mostly for illustration purposes until we find something better. Signed-off-by: Kornilios Kourtis <[email protected]>
Add a developer demo. We will move this to docuemntation proper once the PR is merged, and the image is updated. Signed-off-by: Kornilios Kourtis <[email protected]>
1ef642f
to
28d751f
Compare
Add an init container for installing the tetragon OCI hook.
This, currently, only supports
cri-o
, but it can be extended to support containerd's NRI: https://github.com/containerd/containerd/blob/main/docs/NRI.md.See for a developer demo: https://github.com/cilium/tetragon/blob/pr/kkourt/tetragon-oci-hook-setup/contrib/rthooks/tetragon-oci-hook/docs/demo.md.