You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Encrypt stored provider credentials at rest (Electron safeStorage) #543
Source: research round 30. A grep of electron/ shows no use of safeStorage, encryptString, or keychain APIs, which means provider tokens and account credentials are almost certainly sitting in plaintext in the store file. Meanwhile the ecosystem is moving the other way: today's Show HN was a data-protection keychain library for Electron apps, Orca uses Keychain-backed device tokens for pairing, and intentic keeps credentials inside capabilities the agent never sees.
For a local-first product, plaintext-at-rest is the weak point in the story: the whole pitch is "your machine is the trust boundary," and any process that can read the userData directory currently owns every provider account. This is also squarely in the threat model of #128's family (loopback squatting) and the ClawHavoc lesson (malicious skills read config dirs).
Scope:
Encrypt all stored secrets (provider tokens, AHP/pairing tokens, MCP OAuth credentials) with Electron safeStorage.encryptString before writing to disk; decrypt only in the main process at point of use.
Key management is OS-native: Keychain on macOS, DPAPI on Windows, libsecret on Linux. Handle the headless-Linux no-libsecret case with a loud warning, not silent plaintext.
Migration: on first run after upgrade, encrypt existing plaintext entries in place; log the migration count.
Landed on main in the 2026-08-22 backlog merge (2d33d30..bf7c4dc, released as nightly nightly-202608220926-bf7c4dc).
Evidence on main: electron/secrets.js; settings sealed in the JSON payload only
The branch had been finished for a while but was never merged; verification after landing: typecheck clean, vite build ok, core 38/38, renderer 1468/1468, memory 204/204, electron 1848/1848.
Activity
currentbits commentedon Aug 22, 2026
Landed on
mainin the 2026-08-22 backlog merge (2d33d30..bf7c4dc, released as nightlynightly-202608220926-bf7c4dc).Evidence on main: electron/secrets.js; settings sealed in the JSON payload only
The branch had been finished for a while but was never merged; verification after landing: typecheck clean,
vite buildok, core 38/38, renderer 1468/1468, memory 204/204, electron 1848/1848.fix(secrets): disable safeStorage at-rest encryption by default