Create staged documents readable only by the user from the start
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Snapshot::from_document created its /tmp/och-stage-*.och file with the default mode and narrowed it to 0600 after. Another local user who opened it in between kept a descriptor through the chmod and could read the whole imported, populated or staged document as it was written. It is now created 0600 (OpenOptions mode on Unix). Test: the staged file is 0600 whatever the umask and never an existing file, and the snapshot's folder is 0700. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/dbd149703ebfc1c4eee09d197a287e871c92125e
Open Create staged documents readable only by the user from the start in the timeline