feat(vault): add key id validation - #8184
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## tmp-part-3 #8184 +/- ##
==============================================
- Coverage 67.53% 63.13% -4.41%
==============================================
Files 2317 2317
Lines 100561 100547 -14
Branches 9051 9042 -9
==============================================
- Hits 67911 63477 -4434
- Misses 30358 34881 +4523
+ Partials 2292 2189 -103 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the new Code Review Details
|
Adds validation for vault update requests. If a cipher is posted, if the key id is not present on either the user or the request, the validation succeeds. If the key id is present it must match.
This allows us to validate and prevent ciphers from being posted that are encrypted for the wrong key id. We will later remove the encrypted for user id, and it is marked obsolete.
https://bitwarden.atlassian.net/browse/PM-40814