How to use tetragon grpc server in Rust!
This may be outdated. cargo run should launch the demo.
git clone https://github.com/SubconsciousCompute/tetragon-grpc-client.git$ cargo run --example policy -- <Option>listaddremove
Create a file with some content cat foo2thebar > /tmp/tetragon.
cat the said file and see some output.
Then add the policy cargo run --example policy -- add.
cat the said file again and see cat gets killed before it can read.
Run cargo run --example policy -- list to list the policies.
Then remove the policy cargo run --example policy -- remove.
cat said file again to see that it works.
This demo mimic command sudo tetra --server-address unix:///var/run/tetragon/tetragon.sock getevents
NOTE: Requires Root. The program will ask for sudo password.
$ cargo runIf you're requests aren't happening as you expect, try checking the tetra cli code and how they create their request objects.
