-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Serverless Mini Agent] Use Web PKI certificates for HTTPS Connections for Serverless Mini Agent #523
[Serverless Mini Agent] Use Web PKI certificates for HTTPS Connections for Serverless Mini Agent #523
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #523 +/- ##
==========================================
- Coverage 70.25% 70.08% -0.17%
==========================================
Files 206 206
Lines 27823 27810 -13
==========================================
- Hits 19546 19491 -55
- Misses 8277 8319 +42
|
Hey! One thing that came to mind 🤔 : Since this change affects ddcommon, I suspect this will increase the size of libdatadog binaries even outside the serverless mini agent (e.g. for profiling). It may be worth checking the libdatadog release sizes produced by GitLab CI with this PR to see if it's something we need to care about or not? |
BenchmarksThis comment was omitted because it was over 65536 characters.Please check the Gitlab Job logs to see its output. |
Thanks for addressing my concern ❤️ 🙇 |
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.
LGTM
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.
Yep, that's exactly what we had in mind :-)
Looks reasonable to me too! :) |
What does this PR do?
Use Web PKI certificates when establishing an HTTPS connection for the Serverless Mini Agent.
Motivation
Resolve certificate errors when running the Serverless Mini Agent in an Azure Function on Windows.
Error when on premium plan
Error when on consumption plan
Additional Notes
Adds feature
use_webpki_roots
toddcommon
to use Web PKI root certificates instead of native certifcates when establishing an HTTPS connection. Currently this is only enabled for the Serverless Mini Agent.How to test the change?
DD_MINI_AGENT_PATH
/home/site/wwwroot/datadog-serverless-trace-mini-agent
/workspace/datadog-serverless-trace-mini-agent
Azure
Google