Repository navigation
Description
Browser cookie import from Chrome 150 fails to decrypt on Linux (XDG secret portal, no encrypted_key in Local State)
Summary
"Import Cookies -> From [installed Chromium browser]" silently imports almost no usable cookies on Linux when the source Chrome is v150+. Chrome 150 on GNOME stores the cookie master key via the XDG secret portal instead of writing os_crypt.encrypted_key to Local State. Orca's importer cannot retrieve the key, so v11 cookie decryption fails for nearly all cookies, and the imported session is unusable. The diagnostic log already states the cause: Linux keyring unavailable - v11 cookies may fail to decrypt.
Environment
- OS: Linux x86_64 (Ubuntu, GNOME/Wayland)
- Orca: 1.4.180
- Source browser: Google Chrome 150.0.7871.186
- Chrome
Local Stateos_cryptsection contains only aportalkey (e.g.{"portal": {"prev_desktop": "ubuntu:GNOME", ...}}) and noencrypted_keyfield.
Reproduce
- On Linux with Chrome 150 installed and a signed-in Google session, open Orca.
- Browser -> Import Cookies -> From [installed Chromium browser] -> select Chrome.
- Observe: import reports a small number of cookies loaded; Google (and most other authenticated) sessions are not usable in the Orca browser afterward.
Observed behavior
From ~/.config/orca/cookie-import-diag.log (three separate import attempts, all identical in outcome):
importCookiesFromBrowser: browser=chrome partition="persist:orca-browser"
source has 2395 cookies
Linux keyring unavailable - v11 cookies may fail to decrypt
skipped 0 Google integrity cookies (SIDCC/STRP/AEC)
SQLite staging complete: 22 cookies, 19 domains
cleared existing session cookies before loading 22 imported cookies
memory load: 1 OK, 21 failed
staged at ... for 21 cookies that need restart
- Source DB has ~2395 cookies; only 22 are staged, and of those 21 fail to decrypt (1 OK, 21 failed).
- The staging DB contains 0 cookies for authenticated Google domains after import.
os_crypt.encrypted_keyis absent fromLocal State; onlyos_crypt.portalis present, indicating Chrome 150 delegates key storage to the XDG secret portal / GNOME keyring.
Expected behavior
Either:
- Orca reads the Chrome master key from the XDG secret portal / GNOME keyring (the path Chrome 150 uses on GNOME), so v11 cookies decrypt correctly; or
- Orca detects the
portal-onlyos_cryptshape and surfaces a clear error ("Chrome 150 stores its key in the desktop secret portal, which Orca cannot read on this host") instead of silently importing 1/22 cookies.
Root cause analysis
Chrome 150 on GNOME no longer writes os_crypt.encrypted_key to Local State. It stores the cookie-encryption master key via the XDG secret portal (os_crypt.portal marker). Orca's Linux cookie importer appears to rely on the legacy encrypted_key path; when that field is absent, it logs Linux keyring unavailable and cannot derive the AES key, so 21/22 v11-encrypted cookies fail to decrypt and are staged as inert ciphertext.
This is a Linux-side parallel of #13192 (which tracks Chrome/Edge 140+ app-bound encryption on Windows). The Windows issue is about v20 app-bound encryption; this one is about the Linux secret-portal key source for v11 cookies.
Workaround
Create a browser profile with --no-ua-spoof and sign in directly in Orca's embedded browser instead of importing cookies:
orca tab profile create --label google --no-ua-spoof --jsonThat profile keeps Electron's native user agent (so Google does not reject the sign-in per #11518) and does not depend on cookie import / keyring decryption. (Google sessions still decay after roughly an hour, tracked separately in #10890.)
Related
- [Bug] Browser cookie import silently imports 0 cookies on Chrome/Edge 140+ on Windows (v20 app-bound encryption) #13192 - Windows cookie import 0 cookies (Chrome/Edge 140+ app-bound encryption) -- this is the Linux counterpart.
- [Bug]: Google sign-in is impossible in the in-app browser — the UA laundering added in #885 is what Google rejects #11518 - Google sign-in impossible in-app browser (UA laundering) -- the
--no-ua-spoofworkaround used here. - [Feature]: Keep cookies valid much longer #10890 - Keep cookies valid much longer (session decay, separate issue).
- fix(browser): align cookie import safeguards #12607 - Cookie import path Google safeguard unification (already merged into 1.4.180; does not address keyring decryption).
Activity
fix(browser): report cookies an import could not decrypt (#14683)
fix(browser): report cookies an import could not decrypt (#14683)
fix(browser): report cookies an import could not decrypt (stablyai#14683
brennanb2025 commentedon Oct 26, 2026
Thanks for the detailed report. On Linux, Orca reads Chrome's cookie key with
secret-tooland doesn't useencrypted_keyfrom Local State, so we'd like to narrow down which case you're hitting. Could you check two things on that machine?secret-toolinstalled?which secret-tool(it comes from thelibsecret-toolspackage on Ubuntu).If
secret-toolis missing, installinglibsecret-toolsshould fix the import, and the next Orca release will say that directly instead of pointing at the keyring. If most rows showv12, that's Chrome's desktop secret portal encryption, which Orca can't read yet.Bluenip commentedon Dec 1, 2026
Same root cause reproduces with Brave on KDE Plasma (not just Chrome on GNOME), and the Brave case has an extra wrinkle: the importer labels Brave as
chromium.Environment
Local State→os_cryptcontains only the portal entry, noencrypted_key:{"portal": {"prev_desktop": "KDE", "prev_init_success": true}}CookiesDB arev11.secret-tool lookup application braveandsecret-tool lookup application chromiumboth return nothing.Observed
The Orca settings page shows the import as done ("Last imported from Chromium (Personal)"), but no authenticated session carries over. Four attempts, all identical in
~/.config/orca/cookie-import-diag.log:For example, Brave has a valid Facebook session (
c_userandxs, both valid until 2027). The Orca partition has noc_userorxsafter the import; it only hasdatr/sb/fr/wd, which Orca's own browser created itself.Expected