Developer guide for plugins
Is there a guide to getting started with building/testing the plugins, and how to add a new one?
An example from the Kubernetes project
Thanks!
Hi, You can read our blog post which describes how to write a plugin. https://falco.org/blog/extend-falco-inputs-with-a-plugin-the-basics/
We'll trying to adapt it as a tutorial in the docs for future.
Thank you, I was attempting to follow that guide but ran in to issues where the libc on my machine doesn't match the version included in the falco container image I was running. Perhaps we could update this guide to use the same container image used to build the falco images to prevent this sort of issue?
My current (bad) approach has been to do the following (or building an image based on falco), to avoid this issue
nerdctl run --rm -it -v$(pwd):/example:rw --entrypoint="/bin/bash" falcosecurity/falco -c 'apt update ; apt --fix-broken install -y ; apt install -y wget && wget https://go.dev/dl/go1.19.5.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.19.5.linux-amd64.tar.gz && export PATH=$PATH:/usr/local/go/bin && cd /example && make clean && make && /usr/bin/falco -u -c /example/examples/running-locally/falco.yaml -r /example/examples/running-locally/falco_rules.yaml --list-plugins'
Thanks!
cc @jasondellaluce
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
/remove-lifecycle stale
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
/remove-lifecycle stale
In the last months, our documentation has been revised and extended. I guess most of what the developers need is described at https://falco.org/docs/plugins/developers-guide/.
Do you think anything still needs to be added? :thinking:
I'm ok for closing this issue.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
It's still missing build details like which glibc to target, which go versions to use and other toolchain like things Instead of documenting it, it could be as simple as providing a container which can be used to generate compatible plugins? My approach to this can be seen in the command in https://github.com/falcosecurity/plugins/issues/225#issuecomment-1412405353
It's still missing build details like which glibc to target, which go versions to use and other toolchain like things
cc @LucaGuerra
/remove-lifecycle stale
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
/remove-lifecycle stale /help
@leogr: This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.
In response to this:
/remove-lifecycle stale /help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/assign
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community. /close
@poiana: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with
/reopen.Mark the issue as fresh with
/remove-lifecycle rotten.Provide feedback via https://github.com/falcosecurity/community. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.