⌨️sandbox.filesystem.denyRead
Also known as denyRead
A list of paths sandboxed commands may not read.
Think of it like
It is like a locked diary in a room the child may play in. They can see the room, not the diary.
Example
Emma learns a sandboxed script could still read her SSH keys. She adds ~/.ssh to denyRead, and the keys are hidden.
Why it matters
The sandbox can read a lot by default. Secret files must be named here to be hid.
Definition
Example code
json
{
"sandbox": {
"filesystem": {
"denyRead": ["~/.aws", "~/.ssh"]
}
}
}Common mistake
Key takeaways
- 1Never read here. Listed paths.
- 2Read is open by default. Even secrets.
- 3Lists join. Plus Read denies.