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
Store dirs and files are created with the process umask - durable memory is group/world-readable #218
The memory store inherits the process umask. ensureDir (src/logfmt.ts:80-82) is the only directory creator and passes no mode; the single append path (src/logfmt.ts:96) and the whole-file-rewrite temp file (src/logfmt.ts:133) also pass none. With the usual umask 0022, the live store reads: store directory drwxr-xr-x; day files, deletions.logfmt and snapshot files -rw-r--r--.
Any local process running as another uid can read the full durable history (session IDs, repository identifiers, open planning threads, transcript fragments) and forge rows. This is the plugin's only confidentiality boundary: the viewer's loopback default protects a port, not the data at rest.
Fix direction
One helper in src/logfmt.ts: mkdir(path, { recursive: true, mode: 0o700 }) with chmod on each created segment (the recursive flag applies modes only to newly created leaves on some platforms), 0o600 for day files, snapshots and the deletion log, and root hardening when the store directory is first resolved. src/portable.ts:124,130 already implements exactly this pattern for export bundles, and test/containment.test.ts:368,383 already tests the property there, so the test shape copies over.
Source
Architecture review 2026-10-31, finding S1 (High); confirmed in the 2026-11-01 synthesis. Reproduced against a throwaway store; the live store was only read.
Taking #218. I will cover owner-only POSIX permissions at directory creation, append, atomic replacement, and snapshot creation; check existing-store handling without changing unrelated parent directories; and add Linux/WSL regressions plus the Windows gate. Windows ACLs will remain an explicit separate platform limitation. I found no existing claim or overlapping PR.
Implemented in #244 (6cdec42). Local Windows gate and Linux/WSL unit suite are green; hosted CI/review pending. The PR spells out existing-store handling, the symlinked-root compatibility change, and the unchanged Windows ACL boundary. Please feel free to request changes or defer it.
Activity
WhollyMindless commentedon Nov 1, 2026
Taking #218. I will cover owner-only POSIX permissions at directory creation, append, atomic replacement, and snapshot creation; check existing-store handling without changing unrelated parent directories; and add Linux/WSL regressions plus the Windows gate. Windows ACLs will remain an explicit separate platform limitation. I found no existing claim or overlapping PR.
WhollyMindless commentedon Nov 1, 2026
Implemented in #244 (6cdec42). Local Windows gate and Linux/WSL unit suite are green; hosted CI/review pending. The PR spells out existing-store handling, the symlinked-root compatibility change, and the unchanged Windows ACL boundary. Please feel free to request changes or defer it.
abogartz-opencode-self-improvement commentedon Nov 2, 2026
🎉 This issue has been resolved in version 0.15.6 🎉
The release is available on:
Your semantic-release bot 📦🚀