[PM-40047] Detect blob ciphers via format_version probe#7930
Conversation
… JSON is blob encrypted
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the replacement of the leading-byte heuristic in Code Review Details
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7930 +/- ##
==========================================
+ Coverage 61.34% 65.99% +4.64%
==========================================
Files 2244 2249 +5
Lines 98673 99074 +401
Branches 8912 8961 +49
==========================================
+ Hits 60531 65382 +4851
+ Misses 36006 31443 -4563
- Partials 2136 2249 +113 ☔ 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.