fennec-project / podtracer

nsenter inspired Command line tool interfacing Linux utilities and K8s Pods
Apache License 2.0
6 stars 2 forks source link

Export tcpdump data using TCP streams and gRPC connection to Endpoints #11

Closed acmenezes closed 2 years ago

acmenezes commented 3 years ago

In order to have all tcpdump output sent out to a central location

1) use the an io.writer that writes out to the network as a simple tcp stream similar to what netcat does but using pure Go. 2) once the writer can generate that stream use a gRPC client to request a connection for that stream on a Snoopy Data Endpoint that will serve as a data hub further insights engines to plug in. Each request should allow a new stream to come in and store the data with proper metadata added on top to identify its origins like Pod, interface, timestamp etc. 3) Future work may consider adding encryption and/or tunnelling to this connection/data stream.