Repository navigation
fix: fix cookie encryption provider loading on Windows and Linux - #49371
Conversation
76eac79 to
3f9d4b8
Compare
clavin
left a comment
There was a problem hiding this comment.
This provides a subset of Chromium's initialization providers. (Curious to know more about the ones we didn't include.) 👍
|
Release Notes Persisted
|
|
I have automatically backported this PR to "40-x-y", please check out #49375 |
| providers.emplace_back( | ||
| /*precedence=*/10u, | ||
| std::make_unique<os_crypt_async::FreedesktopSecretKeyProvider>( | ||
| password_store, "Electron", nullptr)); |
There was a problem hiding this comment.
@VerteDinde Wouldn't this cause an issue, multiple apps sharing same product name, wallet folder https://source.chromium.org/chromium/chromium/src/+/main:components/os_crypt/async/browser/freedesktop_secret_key_provider.h;l=179-183 ? We should mimic the equivalent of sync path https://github.com/electron/electron/blob/main/shell/browser/electron_browser_main_parts.cc#L499-L543 in the async path as well,
An upstream friendly way would be they provide a config class that we can adjust on initialization with the product_name, wallet folder etc
* Revert "fix: provide explicit cookie encryption provider for cookie encryption (#49348)" This reverts commit 95f097a. * Revert "fix: fix cookie encryption provider loading on Windows and Linux (#49371)" This reverts commit 0e4ee9f. * revert: 6996667: Reland "Port net::CookieCryptoDelegate to os_crypt async" | https://chromium-review.googlesource.com/c/chromium/src/+/6996667
…nux (#49371)" This reverts commit 0e4ee9f. Co-authored-by: Keeley Hammond <[email protected]>
* Revert "fix: provide explicit cookie encryption provider for cookie encryption (#49348)" This reverts commit 95f097a. Co-authored-by: Keeley Hammond <[email protected]> * Revert "fix: fix cookie encryption provider loading on Windows and Linux (#49371)" This reverts commit 0e4ee9f. Co-authored-by: Keeley Hammond <[email protected]> * revert: 6996667: Reland "Port net::CookieCryptoDelegate to os_crypt async" | https://chromium-review.googlesource.com/c/chromium/src/+/6996667 Co-authored-by: Keeley Hammond <[email protected]> * chore: update patch for 40-x-y --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Keeley Hammond <[email protected]> Co-authored-by: John Kleinschmidt <[email protected]>
Description of Change
Fast follow to #49348.
This PR modifies our existing cookie encryption logic to match an upstream change here: "Port net::CookieCryptoDelegate to os_crypt async" | https://chromium-review.googlesource.com/c/chromium/src/+/6996667 However, the previous PR only fixed the issue properly for MacOS. This PR provides the appropriate platform fixes for both Windows and Linux key providers.
We should try to land this fix before the 40.0.0 stable cut, as missing it breaks applications using cookie encryption.
Checklist
npm testpassesRelease Notes
Notes: Fixed an issue on Windows and Linux where no cookie encryption key provider was passed into the network service when cookie encryption was enabled.