-
Notifications
You must be signed in to change notification settings - Fork 20
[PM-25012] Add data field to Cipher type, and add functions for client-side parsing of the field. #517
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
base: main
Are you sure you want to change the base?
Conversation
… vault/PM-25012/cipher_opaque_data
|
Claude finished @nikwithak's task —— View job Code Review CompleteTasks
Summary of ChangesThis PR adds client-side parsing of cipher data by introducing a Key additions:
Critical Issues1.
|
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #517 +/- ##
==========================================
+ Coverage 78.37% 78.62% +0.25%
==========================================
Files 291 291
Lines 29391 29775 +384
==========================================
+ Hits 23034 23410 +376
- Misses 6357 6365 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This looks really good. I just have a few questions
|
@nikwithak I think we can target main directly |
|
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.
I don't think platform owns any of this code anymore, but I'll approve anyways :)




🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-25012
📔 Objective
This PR adds the
datafield to the Cipher struct, and adds a function for parsing that field into the appropriate CipherType (Identity, SshKey, Login, SecureNote, Card) on the client-side, rather than consuming the server-provided values.The function sits unused - after #455 is merged, we should consider adding this to the
CiphersClient::getandCipherClient::listfunctions behind a new feature flag.⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes