Experimental service mapping pt.1#163
Merged
LorenzoTettamanti merged 15 commits intoCortexFlow:feature/ebpf-corefrom Dec 20, 2025
Merged
Experimental service mapping pt.1#163LorenzoTettamanti merged 15 commits intoCortexFlow:feature/ebpf-corefrom
LorenzoTettamanti merged 15 commits intoCortexFlow:feature/ebpf-corefrom
Conversation
… tcp packets using tcp_V4_connect kprobe
…tal service discovery to combine the result from the kprobe and the kubeapi
…etes manifest, added /sys/fs/cgroup as mountPath
…for development reasons). Updated identity.yaml manifest
1 task
Collaborator
|
@LorenzoTettamanti mate it is working great 🚀🚀 Keep up the good work!
|
siddh34
approved these changes
Dec 20, 2025
Member
Author
|
Thanks for the review. I'm working on pt.2 💪🏻🚀 |
bd5976c
into
CortexFlow:feature/ebpf-core
3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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:

