-
Notifications
You must be signed in to change notification settings - Fork 7
Experimental service mapping pt.1 #163
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
Merged
LorenzoTettamanti
merged 15 commits into
CortexFlow:feature/ebpf-core
from
LorenzoTettamanti:feature/ebpf-core
Dec 20, 2025
Merged
Experimental service mapping pt.1 #163
LorenzoTettamanti
merged 15 commits into
CortexFlow:feature/ebpf-core
from
LorenzoTettamanti:feature/ebpf-core
Dec 20, 2025
Conversation
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
… info from tcp packets using tcp_V4_connect kprobe
… experimental service discovery to combine the result from the kprobe and the kubeapi
…aml kubernetes manifest, added /sys/fs/cgroup as mountPath
…es from the kubeapi
…commented 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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:

