Repository navigation
docs(spec): a box's stored spec is readable only by the daemon's user (spec 29) - #3772
Conversation
… (spec 29) BOX-232 writes the stored spec owner-only under directories only the daemon's user can enter, whatever the umask, and tightens wider ones when the store opens. Karl's decision of 2026-11-24 on #3761. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
|
/arch-review |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Spec lint
Advisory. None of this blocks the merge; the review decides. Advisory, and never a merge gate. Linter: |
|
Approved: no findings at Nothing to do. Clobber: none. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
BOX-232 makes the stored spec readable and writable only by the user that runs minimald. The design gives the box record to minimald alone (architecture.md line 521) and keeps secrets out of specs (line 1023). The design names no file mode, so this amendment narrows access and contradicts no line. The sub-bullet tightens old wide files before the store serves a request, so it fails closed. The code follows as plan task T139, filed on #3761.
Ruled at 150c615 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
Spec 29 amendment for #3761, on Karl's decision of 2026-11-24.
What changes
minimald, under a box directory and a store directory that only that user can enter, whatever the user's umask.env_varsvalue as written, so on a shared host another local user must not read it. On unix this is mode 0600 for the file and 0700 for the directories.Not in this PR
The code (
crates/boxes/src/store.rs) follows as the plan task T139 once this merges. #3766, the follow-up task the runtime refused for missing triage provenance, is closed as superseded by it. Karl approved this route on 2026-11-24.spec-lint: P004 only (tests not written yet).
Refs #3761. Refs #2236.
🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
Summary by CodeRabbit