-
Notifications
You must be signed in to change notification settings - Fork 50
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
[PM-4270] Individual cipher key encryption #278
Conversation
96cb9a4
to
dd33b1e
Compare
No New Or Fixed Issues Found |
@@ -77,6 +79,8 @@ pub struct CipherView { | |||
pub folder_id: Option<Uuid>, | |||
pub collection_ids: Vec<Uuid>, | |||
|
|||
pub key: Option<EncString>, |
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.
Do we want to expose the key in a view?
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.
If we want to encrypt it back with the same Key, yeah. Though I guess we can generate a new key each time we encrypt a CipherView into a Cipher, if we wanted.
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.
Makes sense, once the SDK has state we don't have to expose it though and can just look it up internally.
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.
Should we add a TODO or open a ticket for the future?
Type of change
Objective
Implement individual vault item encryption and encryption. Note that at the moment it will not migrate items that don't have a key when encrypting.