Repository navigation
fix(storage): make EncryptionKey stream output consistent with CreateHmacKeyResponse - #16707
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the operator<< overloads for EncryptionKey and SourceEncryptionKey in well_known_headers.cc to censor the actual key values by printing [censored] instead of the raw key. It also updates existing unit tests and adds several new integration and unit tests across multiple test files (including connection_impl_file_upload_test.cc, connection_impl_object_test.cc, logging_stub_test.cc, object_requests_test.cc, tracing_connection_test.cc, and well_known_headers_test.cc) to verify that the encryption keys are correctly redacted in error statuses, logging stubs, tracing spans, and formatted headers. There are no review comments to address.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16707 +/- ##
==========================================
+ Coverage 92.80% 92.82% +0.01%
==========================================
Files 2279 2279
Lines 229093 229442 +349
==========================================
+ Hits 212620 212977 +357
+ Misses 16473 16465 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The
operator<<overloads forEncryptionKeyandSourceEncryptionKeynow print[censored]for the key value, the same placeholderCreateHmacKeyResponseuses. The algorithm and SHA-256 fields are still printed, and requests sent to the service are unchanged.Existing tests that checked the stream output are updated, and new tests cover the output of requests that set these options.