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

[RFE] handling events in userspace with wasm #2202

Open
Tracked by #1929
alban opened this issue Nov 6, 2023 · 0 comments · May be fixed by #2818
Open
Tracked by #1929

[RFE] handling events in userspace with wasm #2202

alban opened this issue Nov 6, 2023 · 0 comments · May be fixed by #2818

Comments

@alban
Copy link
Member

alban commented Nov 6, 2023

Current situation

Containerized gadgets have a ebpf module but currently don't yet contain code in userspace to handle events.

Impact

Some gadgets lose features after they're converted from the build-in gadget to a containerized gadget.

Example: the dns gadget has a "NAME" column with a domain name with dots:

$ sudo ig trace dns -c test-trace-dns
QR TYPE      QTYPE      NAME
Q  OUTGOING  A          inspektor-gadget.io.

This string is built up from userspace. The ebpf program only sends the encoded name from the DNS packet. The containerized dns gadget does not have this string with dots.

Ideal future situation

Gadget authors can include a wasm module in their gadgets to implement custom changes in events in userspace.

Implementation options

We can use wazero, a WebAssembly runtime in Go that does not require dependencies with cgo.

Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

2 participants