[Serverless Mini Agent] Use Web PKI certificates for HTTPS Connections for Serverless Mini Agent#523
Merged
duncanpharvey merged 11 commits intomainfrom Jul 11, 2024
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
|
Member
|
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. |
bwoebi
reviewed
Jul 9, 2024
Member
|
Thanks for addressing my concern ❤️ 🙇 |
Contributor
Author
bwoebi
approved these changes
Jul 10, 2024
Contributor
bwoebi
left a comment
There was a problem hiding this comment.
Yep, that's exactly what we had in mind :-)
Member
|
Looks reasonable to me too! :) |
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.
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_rootstoddcommonto 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-agentAzure
Google