Skip to content

Fix secure mode external access permissions issue#16

Closed
nbeerbower wants to merge 6 commits into
mainfrom
claude/fix-secure-mode-external-2TQQ8
Closed

Fix secure mode external access permissions issue#16
nbeerbower wants to merge 6 commits into
mainfrom
claude/fix-secure-mode-external-2TQQ8

Conversation

@nbeerbower

Copy link
Copy Markdown
Contributor

When running secure mode externally (in containers, VMs, or systems with restricted kernel configs), bwrap --unshare-net can fail with: "bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted"

This change:

  • Adds check_network_namespace_support() to detect this at startup
  • Auto-disables network isolation when unsupported (other sandbox features remain)
  • Adds GROVE_SANDBOX_NETWORK env var for manual control
  • Updates startup logging and /version endpoint to show network isolation status
  • Documents the issue and workarounds in CLAUDE.md

claude added 6 commits January 7, 2026 17:47
When running secure mode externally (in containers, VMs, or systems with
restricted kernel configs), bwrap --unshare-net can fail with:
"bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted"

This change:
- Adds check_network_namespace_support() to detect this at startup
- Auto-disables network isolation when unsupported (other sandbox features remain)
- Adds GROVE_SANDBOX_NETWORK env var for manual control
- Updates startup logging and /version endpoint to show network isolation status
- Documents the issue and workarounds in CLAUDE.md
@nbeerbower nbeerbower closed this Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants