Repository navigation
Keep Lyra's files owner-only, gate destructive channels to the main window, and say what goes online. - #100
Merged
Merged
Conversation
- pages:save, pages:delete, pages:restore, pages:reveal, people:enroll/rename/setSelf/delete/ restore, sessions:audio, recorder:start, notes:generate and notes:backfill now refuse the overlay, as settings, keys and the notes folder already did. - requireMainWindow moves to session.ts beside isFromMainWindow.
…eir owner. - Atomic writes create their file 0600; session, audio, checkpoint and index folders are created 0700, and the notes folder too when Lyra creates it (privateFiles.ts). - At startup userData, .sessions and the default ~/.lyra are made 0700 if others could reach them; a notes folder the person chose keeps its own modes. Symlinks and folders another account owns are left alone. Nothing changes on Windows.
- voices.json and keys/<provider>.bin were renamed into place without an fsync, so a power cut could leave an empty file and every saved voice set aside. Both now use writeFileAtomic, and the keys folder is owner-only.
…inger in free pages.
…al, and how to open an unsigned build. - README Privacy: model downloads and the GitHub update check, which can't be turned off yet. - Settings: the local summary choice and its notice name Qwen2.5 3B's non-commercial licence, with a link. - THIRD_PARTY.md: the search model and the bundled fonts; where the hashes live. - TROUBLESHOOTING: Gatekeeper, SmartScreen and gh attestation verify. - THREAT-MODEL: the index, set-aside copies, file permissions, the gated channels, the update check, the licence allowlist (which exists) and what the log keeps of an Error.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Open
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.
Summary
Privacy, file permissions, IPC gating and documentation fixes from the 2026-11-28 audit: LYRA-PRIV-001, LYRA-CONS-003, LYRA-SEC-001, LYRA-PRIV-002 (docs), LYRA-PRIV-003, LYRA-OSS-001, LYRA-OSS-002, LYRA-DX-001 (docs only).
What was wrong
voices.jsonand the key files were renamed into place without an fsync. A power cut right after a save could leave an emptyvoices.json, and every saved voice would be set aside.notes:generate,notes:backfillover every session), answered the overlay window too. This was a defence-in-depth gap, not a known exploit.What changed
privateFiles.ts, new;atomicFile.ts):userData,.sessionsand the default~/.lyraare tightened to 0700 if other accounts could reach them.voices.tsandsecrets.tsusewriteFileAtomic. The keys folder is created owner-only.requireMainWindowmoves tosession.ts. These channels now refuse the overlay:pages:save,pages:delete,pages:restore,pages:revealpeople:enroll,people:rename,people:setSelf,people:delete,people:restoresessions:audio,recorder:startnotes:generate,notes:backfillPRAGMA secure_delete = ON.<a target="_blank">, which main hands to the OS browser).gh attestation verify, plus a corrected note on where the hashes are.security.ymlrunscheck-licenses.mjs). It also corrects the "never a stack" line: anErrorpassed tologis written with its stack.How it was tested
pnpm install --frozen-lockfile: OK.pnpm checkinapps/lyra(typecheck, lint,config:check, vitest): 87 files, 652 tests pass (646 on main).privateFiles.test.ts: folders created 0700; an existing 0755 folder is tightened once; symlinks and missing folders are left alone; nothing changes forwin32.atomicFile.test.ts: an existing 0644 file comes out 0600 after an atomic write. This fails on main.db.test.ts:secure_deleteis on.smoke:uishows they still answer it.pnpm smokeandpnpm smoke:ui(they launch Electron; CI runs them). The website wasn't touched.Needs manual verification
ls -ld ~/.lyra ~/.lyra/.sessions "<userData>"showsdrwx------. Save a voice and an API key, and check the files are-rw-------.For the reviewer to decide
Left out
minimumReleaseAge): this needs pnpm 10.16 or later, and the repo pins 10.15.1. Raising it is a toolchain upgrade.autoInstallOnAppQuit): these are not in this PR. SEC-003 is an accepted risk and a product call.pnpm checkgrep that everyModelFileappears in THIRD_PARTY.md isn't added.meeting/notes.tsandmeeting/pipeline.tsare a few lines inregister*. They stay away from the hunks Name speakers from what was said, with the notes model. #98 touches.Checks
pnpm typecheck(and the rest ofpnpm check).changeset/private-files.md, patch)pnpm smoke/pnpm smoke:ui: not run locally (CI runs them)