Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ target/
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
actionlint
worktrees/
18 changes: 13 additions & 5 deletions profiles/base.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ network_mode = "offline"

[filesystem]
allow_read = [
# System paths
"/usr",
"/bin",
"/sbin",
Expand All @@ -21,8 +22,16 @@ allow_read = [
"/var/run",
"/tmp",
"/dev",
# sx config
"~/.config/sx",
"~/Library",
# ~/Library - allowlist only safe subdirectories (shift-left)
"~/Library/Caches/",
"~/Library/Preferences/",
"~/Library/Application Support/",
"~/Library/Logs/",
"~/Library/Frameworks/",
"~/Library/Keychains/", # Encrypted, requires Security framework ACL to access secrets
"~/Library/Developer/",
# Shell config files (read-only)
"~/.zshrc",
"~/.zshenv",
Expand All @@ -32,6 +41,7 @@ allow_read = [
"~/.profile",
"~/.inputrc",
]
# This enforce deny on critical path containing sensibles data even if user allow HOME directory in global config
deny_read = [
"~/.ssh",
"~/.aws",
Expand All @@ -42,10 +52,8 @@ deny_read = [
]
allow_write = [
"/tmp",
"/private/var/folders",
"/private/var/run",
"/var/folders",
"/var/run"
"/private$TMPDIR", # Session-specific temp dir (canonical path)
"$TMPDIR", # Session-specific temp dir (symlink path)
]

[shell]
Expand Down
4 changes: 4 additions & 0 deletions profiles/claude.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ network_mode = "online"
allow_read = [
"~/.claude",
"~/.claude.json",
"~/.claude.lock",
"~/.local/share/claude",
"~/.local/bin/claude",
"~/.CFUserTextEncoding",
Expand All @@ -15,7 +16,10 @@ allow_read = [
allow_write = [
"~/.claude",
"~/.claude.json",
"~/.claude.lock",
"~/.local/share/claude",
"~/Library/Caches/claude-cli-nodejs/",
"~/Library/Keychains/login.keychain-db", # OAuth token refresh
"/private/tmp/claude*", # claude-UID directories (e.g. claude-501)
"/private/tmp/zsh*", # When claude use zsh in bash it create dynamic tmp file
]
Expand Down