Repository navigation
fix(browser): check the sealed export header fully and list what remove could not check - #254
Open
william-monroy wants to merge 3 commits into
Open
william-monroy wants to merge 3 commits into
william-monroy wants to merge 3 commits into
Conversation
…ve could not check Import refuses an IV other than 12 bytes or a tag other than 16 bytes before it derives a key, opens the file with a 16-byte tag only, and gives one error for any other decryption problem. One CLI import derives the key once. export --force writes a new mode 600 file in place of the old one. remove lists unreadable registration and export records, unreadable half-written vault copies and recorded exports, an identities folder it cannot list and Codex servers in forms it does not read as unchecked, and keeps what they name. It reads Codex servers written with dotted keys or inline tables, runs the final check when a process does not stop, and shows the home folder as ~ in commands, reasons and errors. The help, the references, SECURITY.md and the policy page state the behavior as it is.
…ing's start A named recording reads the vault's values when it starts. A secret store read that fails is no longer kept as no values: the step that waited on it reads again once, and so does the next step. The docs and the --record-screenshots help say what the code does: no screenshot of a page a vault sign-in or a secret went into, until it navigates away.
… keep unreadable records A failed vault read stands for 30 seconds and is shared by the steps meanwhile, including the host's check in the same step; while it stands no typed value keeps its default, and a machine without a secret store is not asked again. A Codex server whose command or args cannot be read is listed by remove as unchecked. export --force writes a temporary file of its own name inside the cleanup, and reports an existing file only without --force. Export and init keep a record they cannot read instead of rewriting it, and say so.
william-monroy
force-pushed
the
fix/browser-followups-2
branch
from
December 4, 2026 01:22
62c68bb to
59cbae0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Session export and import
unsealderives the key, then creates the decipher, sets the AAD and tag and decrypts inside onetry, so any decryption problem gives the one "wrong passphrase, or the file was changed" error.parseEnveloperequires a 12-byte IV and a 16-byte tag, and the decipher is created withauthTagLength: 16: a tag cut to 12, 8 or 4 bytes (accepted by Node 22 to 25) is refused as damaged before any key derivation.importderives the key once:importSessiontakes the result ofreadSessionExportfor the same text (opened, tracked in a WeakMap) and checks the expiry again; anything else is ignored and derives as before.export --forcewrites a new mode 600 temporary file (a name of its own, removed if anything fails) and renames it over the old one, so a replaced export never keeps the old mode. "exists; pass --force" is said only without--force.--force, and the header check.remove
unchecked, as the help says.agents.jsonorexports.jsonthat cannot be read or parsed, a half-written vault index copy or a recorded export that cannot be read, and an identities folder that cannot be listed are listed underleftwithunchecked. The files that name other items are kept (the records with the state folder that holds them). A secret another identity may use is kept when the identities folder cannot be listed.--jsonand the lines for people show the home folder as~incommand,reasonanderrortoo.--jsonwithout--yes; 1 also for a no and an unknown identity) and that on Windows other turno-browser-mcp processes for the id are listed, not stopped. The comments at the top of destroy.ts and onRemovalPlan.leftmatch the code.Flow recording
--record-screenshotshelp, the references, the README, the landing copy and the docs say what the code does: no screenshot of a page a vault sign-in or a secret went into, until it navigates away.Docs
Tests
sealed (cut tags, wrong IV lengths, no scrypt call before a refusal, a lower N with a valid tag opens), session-export (import reuses the opened export without decrypting again), cli/session (
--forceends at mode 600, the export is read once), cli/remove (the new unchecked cases, Codex forms, the check after a process that does not stop), recorder (a failing store is read at most once per 30 seconds; typed values keep no default meanwhile), cli/session (stale temporary file, failed rename, unreadable record).