Repository navigation
docs(sandbox): describe the kernel read denial in the agent guide and plan mode - #1877
Merged
Merged
Conversation
… plan mode The AGENTS.md security note said reads follow the argv path check and the plan-mode guide called it a known limit that an allow-listed command can reach outside the scratchpad through absolute arguments. Both predate the kernel confinement: a write outside the write paths fails in the kernel, and on macOS so does a read, rename or delete of a file a blocking denied entry names, while directory entries such as .git/ stay with the path check and denied entries match case-insensitively.
Contributor
|
🎉 This PR is included in version 0.262.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1875, whose later commits (3472d44, 255cb31) made the kernel refuse reads, renames and deletes of the files the blocking deny entries name on macOS.
Summary
Two in-repo texts still described the old boundary:
AGENTS.md, Security Gotchas, said reads follow the argv path check. It now says a write outsidesandbox.WritePathsfails with EACCES, on macOS a read, rename or delete of a file a blocking denied entry names fails too while directory entries such as.git/stay with the argv path check, and denied entries match case-insensitively.docs/plan-mode.mdcalled it a known limit that an allow-listed command can reach outside the scratchpad through absolute arguments. It now says such a command can still read outside the scratchpad while a write outside it fails in the kernel and, on macOS, so does reading a file the deny list names.Docs site: inference-gateway/docs#1233 was amended with the matching acceptance criteria.