GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(browser): enable real OS cookie encryption, CefCookieManager, remote cookie mirror, and Rust cookie importer by Hona · Pull Request #286 · anomalyco/opencode-rune

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Implements Phase 3b of UP-095 (#63002) — real OS cookie encryption, CefCookieManager profile operations, loop-free two-way remote cookie mirroring, "Sign out everywhere", and the cross-browser / cookie-file Rust importer & Choose-sites backend (apps/browser-engine, crates/browser-pane) with zero new external crates:

  • Real OS cookie encryption (apps/browser-engine/src/engine.rs): Removes --use-mock-keychain so Chromium encrypts cookies with Windows DPAPI, macOS Keychain, or Linux Secret Service/KWallet, and adds the startup PROBE_COOKIE (cookie-check.opencode.invalid) flow (ProfileProbeCookies + cookies::database::probe_disk_cookies) so the app can detect denied Keychain / locked keyring sessions.
  • CefCookieManager, Sign out everywhere & remote cookie mirror (apps/browser-engine/src/cookies.rs):
    • Additive wire.rs / protocol.rs messages gated by Ready { cookies: true }: ProfileCookiesList, ProfileCookiesSet, ProfileCookieDelete, ProfileProbeCookies, ClearProfileData, SetShareSignIns, SyncRemoteCookies.
    • Zero-cookie-safe CefCookieVisitor, __Host- host-only enforcement, and probe-cookie invisibility.
    • "Sign out everywhere" (ClearProfileData) clears HTTP auth credentials (with a valid CompletionCallback), open-tab origin storage/caches (skipping IsolatedPreview), and wipes cookies on both Default and all active RemoteServer partitions.
    • Two-way remote cookie mirror (reconcile_cookie, exact link-machine.ts parity): off by default, never touches IsolatedPreview, and wipes shared remote partition cookies immediately when turned off.
  • Zero-new-crate Rust cookie importer & Choose sites (crates/browser-pane/src/cookies/*):
    • Reuses locked workspace crates (ring 0.17, rusqlite 0.41, windows 0.62, security-framework 3.7) plus pure-Rust #![forbid(unsafe_code)] FIPS-197 AES-128-CBC and RFC 3492 Punycode.
    • Supports all 15 external browsers (Chrome, Edge, Helium, Brave, Arc, Dia, Comet, Vivaldi, Opera, Chromium, Safari, Firefox, Zen, LibreWolf, Floorp), private 0o700 SQLite + WAL snapshots, in-process Windows DPAPI (CryptUnprotectData), macOS Keychain, Linux secret-tool, DB v24 SHA256(host) prefix stripping, v20 Protected classification, CHIPS exclusion, Firefox default-container + 139+ ms expiry, bounds-checked Safari Cookies.binarycookies, and Netscape / Chrome JSON / Playwright cookie files (<= 32 MiB).
    • Exposes BrowserHost::{engine_cookies, share_sign_ins, set_share_sign_ins, request_profile_cookies, import_profile_cookies, delete_profile_cookie, probe_profile_cookies, clear_profile_data, sync_remote_cookies, take_profile_events} ready for Settings > Browser.

Verification

  • scripts/guardrails.ps1: 5/5 passed (0 errors; 0 new files > 800 lines)
  • cargo clippy -p browser-pane --features engine --no-deps -- -D warnings: 0 warnings
  • cargo check -p browser-pane --no-default-features, cargo check --workspace, scripts/web.ps1 -Check, apps/browser-engine build: all passed with 0 warnings
  • Live CEF 156 IPC proof (11/11 scenarios): Ready.cookies: true, batch import (__Host- host-only, expired reject), probe write/hide/delete, default isolation, two-way Default <-> RemoteServer mirroring, disable-sharing remote wipe, ClearProfileData full wipe, on-disk Local State "DPAPI" + 77-byte v10 encrypted cookie with empty plaintext value, and cross-restart persistence
  • Live Rust importer proof (8/8 scenarios): dpapi_unprotect + read_chromium_cookies decrypted the actual live CEF 156 Windows DPAPI cookie DB (dpapi_check=supersecret123), FIPS-197 AES-128-CBC + PBKDF2 + v20, Netscape/Chrome JSON/Playwright files, Choose-sites PSL/private-tenant/Punycode/IPv6 grouping, Firefox default-container/ms-expiry, Safari bounds-checked binarycookies, and probe_disk_cookies locked-keyring detection

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
feat(browser): enable real OS cookie encryption, CefCookieManager, re…
0cc1538
…mote cookie mirror, and Rust cookie importer

Implements Phase 3b of `UP-095` (`#63002`) across `apps/browser-engine` and
`crates/browser-pane` with zero new external crates (reusing locked `ring`, `rusqlite`,
`windows`, and `security-framework`):

- **Real OS cookie encryption (`apps/browser-engine/src/engine.rs`):** Removes
  `--use-mock-keychain` so Chromium encrypts profile cookies with the real OS key store
  (Windows DPAPI, macOS Keychain, Linux Secret Service/KWallet), paired with a short-lived
  startup persistence probe cookie (`cookie-check.opencode.invalid`) to detect denied
  Keychain or locked keyring sessions (`probe_disk_cookies`).
- **`CefCookieManager` & loop-free remote cookie mirror (`apps/browser-engine/src/cookies.rs`):**
  Adds additive wire messages (`Ready.cookies`, `ProfileCookiesList`, `ProfileCookiesSet`,
  `ProfileCookieDelete`, `ProfileProbeCookies`, `ClearProfileData`, `SetShareSignIns`,
  `SyncRemoteCookies`) with zero-cookie-safe `CefCookieVisitor`, `"Sign out everywhere"`
  (clears cookies, HTTP auth credentials via completion callback, and site storage/caches
  across default + remote partitions), and exact `link-machine.ts::reconcileCookie` two-way
  remote mirroring (off by default; wipes remote partition cookies when turned off; never
  mirrors `IsolatedPreview` contexts).
- **Pure-Rust cookie importer & Choose-sites backend (`crates/browser-pane/src/cookies/*`):**
  Discovers all 15 Chromium/Firefox/Safari browsers across Windows/macOS/Linux; reads live
  SQLite DBs from private `0o700` WAL snapshots; decrypts Windows DPAPI + AES-256-GCM and
  macOS/Linux PBKDF2 + pure-Rust FIPS-197 AES-128-CBC (stripping Chromium DB v24
  `SHA256(host)` prefixes and reporting `v20` app-bound cookies as `Protected`); parses
  Safari `Cookies.binarycookies` and Netscape/Chrome-JSON/Playwright exports (<= 32 MiB);
  and groups registrable sites (PSL + private hosting tenants + RFC 3492 Punycode) without
  reading or decrypting cookie values for the Choose-sites list.
@github-actions

github-actions Bot commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Merge origin/dev (#288) into ws1-phase3b with Phase 3b security harde…
9093f0a
…ning (unpushed WIP)
Hona added a commit that referenced this pull request Nov 20, 2026
@Hona
docs(sync): fold #278-#293, add browser Reviewed column, and add UP-1…
e9b29cd
…18..UP-122 (#295)

- Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and
  #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort)
  into docs/upstream-sync/ledger.{json,md}
- Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 /
  UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign
  UP-115, UP-116, UP-075 to BROWSER-UI
- Add separate Reviewed column for browser rows tracking retrospective
  security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287,
  #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294,
  and BROWSER-TOOLS PR 3+)
- Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits:
  1 skipped, 5 added: UP-118..UP-122) and refine radar routing
@Hona Hona mentioned this pull request Nov 21, 2026
fix(browser): match official Settings > Browser layout and copy #327
Merged
Hona added 4 commits November 21, 2026 11:26
@Hona
Merge remote-tracking branch 'origin/dev' into ws1-phase3b
06e1dbc
# Conflicts:
#	apps/browser-engine/src/context.rs
#	apps/browser-engine/src/engine.rs
#	apps/browser-engine/src/main.rs
#	apps/browser-engine/src/wire.rs
#	crates/browser-pane/src/client.rs
#	crates/browser-pane/src/lib.rs
#	crates/browser-pane/src/machine.rs
#	crates/browser-pane/src/protocol.rs
@Hona
Merge remote-tracking branch 'origin/dev' into ws1-phase3b
d7aec02
@Hona
Merge remote-tracking branch 'origin/dev' into ws1-phase3b
b7ecd26
@Hona
fix(browser): classify #286 profile cookie messages in the controlled…
fc96702
…-tab dispatch guard
@Hona
Hona merged commit ae32f01 into dev Nov 21, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona deleted the ws1-phase3b branch November 21, 2026 02:01
@Hona Hona mentioned this pull request Nov 21, 2026
fix(browser): detect every browser official knows, Helium included #373
Merged
Hona added a commit that referenced this pull request Nov 21, 2026
@Hona
chore(browser): merge origin/dev (981f9ef, #350/#374/#286/#319/#327/#353
823886c
/#354/#363) into ws9/pr3-pane-extensions
This was referenced Nov 21, 2026
feat(browser): import a cookie file from Settings > Browser #415
Merged
fix(browser): bound and confine browser icon reads #442
Merged
fix(browser): end the sign-in mirror cleanly and keep loopback cookies on their machine #486
Merged
feat(browser): offer sign-ins and history from another browser on the pane #550
Merged
feat(browser): choose which sites a browser import brings #711
Merged
docs(upstream-sync): UP-095's engine core has it #774
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.