Skip to content

Conversation

@LorenzoTettamanti
Copy link
Member

@LorenzoTettamanti LorenzoTettamanti commented Dec 18, 2025

Changes

This PR features an experimental service mapping that combines the kubeapi and the UID extraction from cgroups. The extracted data are combined in a HashMap for O(1) access. The aim is to give more information such as the pod name to better identify the source of a TCP packet (can also have better precision than the bpf_get_current_comm() function that we are currently using)

Changes:
- added unit tests
- added tcp_analyzer function to extract relevant information from the tcp_v4_connect kprobe
- added a new ClusterRole to allow pod info extraction from the kubeapi
- refactored map pinning function

Testing

Docker image:
cortexflow-identity:0.1.1-cgroup_scannerv_exp

Expected behaviour:
Schermata del 2025-12-19 18-35-09
Schermata del 2025-12-19 18-37-09

@LorenzoTettamanti LorenzoTettamanti changed the title service mapping Experimental service mapping Dec 20, 2025
@LorenzoTettamanti LorenzoTettamanti changed the title Experimental service mapping Experimental service mapping pt.1 Dec 20, 2025
@LorenzoTettamanti LorenzoTettamanti added enhancement New feature or request rust Pull requests that update Rust code ebpf eBPF related tasks labels Dec 20, 2025
@LorenzoTettamanti LorenzoTettamanti moved this to In Progress in CortexFlow v0.1 Dec 20, 2025
@LorenzoTettamanti LorenzoTettamanti marked this pull request as ready for review December 20, 2025 12:56
@LorenzoTettamanti LorenzoTettamanti linked an issue Dec 20, 2025 that may be closed by this pull request
1 task
@siddh34
Copy link
Collaborator

siddh34 commented Dec 20, 2025

@LorenzoTettamanti mate it is working great 🚀🚀

Keep up the good work!

image

@LorenzoTettamanti
Copy link
Member Author

Thanks for the review. I'm working on pt.2 💪🏻🚀

@LorenzoTettamanti LorenzoTettamanti merged commit bd5976c into CortexFlow:feature/ebpf-core Dec 20, 2025
3 checks passed
@LorenzoTettamanti LorenzoTettamanti moved this from In Progress to Done in CortexFlow v0.1 Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ebpf eBPF related tasks enhancement New feature or request rust Pull requests that update Rust code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature]: Add command discovery for network events

2 participants