[PM-40047] refactor: detect blob ciphers via format_version probe#7930
[PM-40047] refactor: detect blob ciphers via format_version probe#7930shane-melton wants to merge 1 commit into
Conversation
… JSON is blob encrypted
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the refactor of Code Review DetailsNo blocking findings. Notes considered and not raised as findings:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7930 +/- ##
===========================================
- Coverage 61.34% 14.90% -46.44%
===========================================
Files 2244 1374 -870
Lines 98673 59652 -39021
Branches 8912 4725 -4187
===========================================
- Hits 60531 8894 -51637
- Misses 36006 50606 +14600
+ Partials 2136 152 -1984 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-40047
📔 Objective
The SDK now stores blob-encrypted cipher payloads as JSON, which starts with
{and collides with the leading-byte heuristic previously used to tell blob from legacy field-levelCipherData. This replaces that heuristic inCipher.IsDataBlobEncrypted()with a top-levelformat_versionproperty probe (viaUtf8JsonReader, so large payloads aren't fully materialized), matching the SDK. Tests updated. Paired with the sdk-internal change for PM-40047.