-
Notifications
You must be signed in to change notification settings - Fork 137
Change how we correlate SSL to connection information #1875
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
Conversation
@@ -31,7 +31,7 @@ static __always_inline u64 extra_runtime_id() { | |||
|
|||
static __always_inline u64 parent_runtime_id(u64 runtime_id) { | |||
u64 lookup_id = runtime_id; | |||
bpf_dbg_printk("parent lookup id %llx", lookup_id); | |||
//bpf_dbg_printk("parent lookup id %llx", lookup_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be printing inside loops to avoid large programs.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1875 +/- ##
==========================================
+ Coverage 73.96% 74.41% +0.44%
==========================================
Files 177 177
Lines 19423 19432 +9
==========================================
+ Hits 14367 14460 +93
+ Misses 4319 4232 -87
- Partials 737 740 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This actually didn't quite work. We can't read the SSL BIO like that for a few reasons:
I'm working on a different approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great effort!
Automated port of #1875 from grafana/beyla. Original PR: grafana/beyla#1875
Automated port of #1875 from grafana/beyla. Original PR: grafana/beyla#1875
Automated port of #1875 from grafana/beyla. Original PR: grafana/beyla#1875
* [port] #1875: Change how we correlate SSL to connection information Automated port of #1875 from grafana/beyla. Original PR: grafana/beyla#1875 * fix rejections * format * fix bpf code * fix stuff * delete files --------- Co-authored-by: GitHub Actions Bot <actions@github.com>
Until now, the way we correlated SSL information to a connection was based on looking for traffic while SSL_read or SSL_write were running. This sort of worked, but we recently found that it can be unstable with relation to sort interrupts. We can take a look at the following Beyla kernel trace:
So, while are handling the SSL operations, we can be interrupted to handle something else on the same thread which throws a wrench in our SSL to connection tracking.
To counter that, we now do something else:
Testing: