-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[configopaque] Implement encoding.BinaryMarshaler interface for String #9279
[configopaque] Implement encoding.BinaryMarshaler interface for String #9279
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9279 +/- ##
==========================================
+ Coverage 90.31% 90.33% +0.02%
==========================================
Files 341 340 -1
Lines 18308 17970 -338
==========================================
- Hits 16535 16234 -301
+ Misses 1437 1412 -25
+ Partials 336 324 -12 ☔ View full report in Codecov by Sentry. |
32292d6
to
bb3aa4d
Compare
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.
cc @bogdandrutu, will merge this by Friday morning EU time if there are no objections/the PR is not blocked. Please block if you need more time to think about this
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.
Approved. I don't see any reason not to add this support.
Co-authored-by: Antoine Toulme <[email protected]>
open-telemetry#9279) **Description:** <Describe what has changed.> Implements the `encoding.BinaryMarshaler` interface for `String`. This prevents the situation `configopaque` -> `[]byte` -> `string` from leaking the `String` value. **Link to tracking Issue:** <Issue number if applicable> Closes open-telemetry#9272 **Testing:** Added unit test --------- Co-authored-by: Antoine Toulme <[email protected]>
Description:
Implements the
encoding.BinaryMarshaler
interface forString
. This prevents the situationconfigopaque
->[]byte
->string
from leaking theString
value.Link to tracking Issue:
Closes #9272
Testing:
Added unit test