Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

[15.x] Backport encryption improvements #312

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

mikesposito
Copy link
Member

@mikesposito mikesposito commented Nov 29, 2023

Description

This PR backports the following commits to 15.x:

Changes

  • ADDED: Optional isVaultUpdated property to GenericEncryptor type
  • CHANGED: Bump @metamask/browser-passworder to ^4.3.0
  • CHANGED: When the encryptor provides an isVaultUpdated method, the latter is used to check if the vault is updated instead of updateVault
  • FIXED: Prefer cached encryption key over password when available
  • REMOVED: GenericEncryptor's updateVault property has been removed as no longer used

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

* fix: prefer encryptionKey for encryption when possible

* refactor: add test case
* chore: update browser-passworder

* refactor: remove `updateVault` from `GenericEncryptor`
@mikesposito mikesposito requested a review from a team as a code owner November 29, 2023 14:59
@mikesposito
Copy link
Member Author

@Gudahtt we probably want to merge this without squashing to preserve the cherry-picked commits, but it is currently not allowed by the repo settings

@Gudahtt
Copy link
Member

Gudahtt commented Nov 29, 2023

Just as a heads up, I've renamed the branch from v15.x to 15.x to match our conventions/documentation

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mikesposito mikesposito changed the title [v15.x] Backport encryption improvements [15.x] Backport encryption improvements Nov 29, 2023
@Gudahtt
Copy link
Member

Gudahtt commented Nov 29, 2023

I think we'll want to regular merge when syncing this back into the main branch, after the next v15 release goes out. Merging here wouldn't have an advantage because commits are already unique to this branch, i.e. they already won't line up with the same commits on main

@mikesposito mikesposito merged commit 3896d3e into 15.x Nov 29, 2023
17 checks passed
@mikesposito mikesposito deleted the backport-encryption-improvements branch November 29, 2023 15:27
Gudahtt added a commit that referenced this pull request Jan 9, 2024
* [15.x] Backport encryption improvements (#312)

* Prefer cached `encryptionKey` for encryption when possible (#307)

* fix: prefer encryptionKey for encryption when possible

* refactor: add test case

* Use encryptor `isVaultUpdated` (#310)

* chore: update browser-passworder

* refactor: remove `updateVault` from `GenericEncryptor`

* 15.1.0 (#313)

* 15.1.0

* edit changelog entries

* rephrase changelog entry

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Michele Esposito <[email protected]>

---------

Co-authored-by: Michele Esposito <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Michele Esposito <[email protected]>
Co-authored-by: legobeat <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants