PR #43: two new security statements that the code does not fully meet, and gaps in the document tests #44
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two items remain from the reviews of PR #43 (issue #32). PR #49 (
8a1e4f0) closed items 1 and 3 to 10 of the first list, and narrowed the documents for item 2 to what the code checks. The first list is in the edit history of this issue.What remains
syncchecks the socket path's mode bits atstattime and refuses any group or other permission bit. It checks neither the socket's owner nor the peer. If another user can write the socket's parent directory, that user can rename a socket onto the path between thestatand the connect, andsyncsends the Feeder token to that user. The README andSECURITY.mdstate this gap, and they make an owner-only parent directory a deployment duty. Fix: after the connect and before the token is sent, read the peer user (getpeereidorLOCAL_PEERCREDon macOS,SO_PEERCREDon Linux) and refuse a peer that is not the process user, with a coded error.moreis false. A Feeder that answersmore=truewithout end grows the memory ofsyncwithout limit and commits nothing.SECURITY.mdstates this today. Fix: a named constant for the most Chats in one pass, and a coded error when a pass receives more.Decisions
Acceptance criteria
syncrefuses a socket peer that is not the process user, before it sends the token. A test proves the refusal and its code.SECURITY.mdstate both controls. The sentences that describe the two gaps are removed or narrowed. The document tests pass.Human act
ruling: the operator sets
svd:goto approve dispatch of this credential-path change (CONV-40)Blocked by
Filed under: operator word "Grant" sha256:78b7d0379d5e
Triage
8a1e4f0. It carried rows R1 to R10 of the #32 spec, which closed items 1 and 3 to 10 of this issue and narrowed the socket sentence of item 2. The body now holds only the two items that remain.ready-for-human. The human act is the operator's dispatch approval (svd:go).sync.py,source.pyandREADME.md, so it runs one item at a time with #38 (CONV-37).