Confine attachment reads to canonical root #10
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
svd:go
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/apple-messages-blade-mcp!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-apple-messages-blade-mcp-2-the-attachment-reader-8827a41a"
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?
Summary
Attachment reads now require a strict descendant of the configured attachments root after resolving symlinks. The validated canonical path is used for stat and read, preserving the displayed filename and existing errors.
Evidence
0675815f98f7caa6777ed75cefa2fb77286bad8b: build green, blade suite green, spec fidelity and reader audit clean, zero blockers, ready for merge. Run20261116T114111Z-8827a41a.--disable-sandboxwas required for the dispatch coverage run because nested sandbox activation failed. Remote CI has no statuses and is reported as absent.make lintremains red against the repository's existing formatting baseline; pristine main independently reports 5,699 formatter diagnostics with the available Xcode formatter.Merge Danger
Door: two-way
A code revert restores the prior behavior; there is no migration.
Blast Radius: attachments
Callers using temporary attachment fixtures must explicitly configure their attachments root. MessagesCore store-path policy is unchanged. This fixes path confinement but leaves the disclosed check-then-use race between canonicalization and reading; descriptor-based hardening requires separate work.
Closes #2
Co-Authored-By: gpt-6.1-terra noreply@openai.com
MessagesCore: let a consumer build on the system SQLite #5MessagesCore: let a consumer build on the system SQLite #5