Skip to content

fix(sandbox): add /usr/local/bin/node to binary allowlists - #393

Closed
pjt222 wants to merge 1 commit into
NVIDIA:mainfrom
pjt222:fix/add-node-binary-to-sandbox-policies
Closed

pjt222 wants to merge 1 commit into
NVIDIA:mainfrom
pjt222:fix/add-node-binary-to-sandbox-policies

Conversation

@pjt222

@pjt222 pjt222 commented Mar 19, 2026 •

Copy link
Copy Markdown

Summary

OpenClaw is a Node.js script (#!/usr/bin/env node). The sandbox proxy allowlists outbound traffic by kernel-level binary path, so when openclaw runs, the OS sees /usr/local/bin/node as the actual binary — not /usr/local/bin/openclaw. Without node in the binaries list, all openclaw-initiated requests are silently blocked with HTTP 403.

This PR adds /usr/local/bin/node to the 5 sandbox policies in openclaw-sandbox.yaml that use the openclaw runtime:

  • nvidia — inference calls hang without this
  • clawhub — agent authentication fails
  • openclaw_api — API calls blocked
  • openclaw_docs — doc access blocked
  • npm_registry — plugin installs fail

Policies that invoke different binaries are not modified:

  • claude_code — invokes /usr/local/bin/claude
  • github — invokes /usr/bin/gh and /usr/bin/git

Fixes #391

Test plan

  • Verify openclaw agent can reach NVIDIA inference endpoints from sandbox
  • Verify openclaw plugins install works from sandbox
  • Verify claude_code and github policies still work (no false positive from node addition)
  • Confirm no other binaries (curl, wget, bash) are added

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated sandbox network policies to permit Node.js binary access for network operations across multiple policy configurations.

OpenClaw is a Node.js script (#!/usr/bin/env node). The sandbox proxy
allowlists outbound traffic by kernel-level binary path, so when
openclaw runs, the OS sees /usr/local/bin/node as the actual binary.
Without node in the binaries list, legitimate agent requests are
blocked with HTTP 403.

Adds /usr/local/bin/node to nvidia, clawhub, openclaw_api,
openclaw_docs, and npm_registry policies. Does not modify claude_code
(invokes /usr/local/bin/claude) or github (invokes /usr/bin/gh and
/usr/bin/git) since those do not use the openclaw/node runtime.

Fixes NVIDIA#391

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Added /usr/local/bin/node to the binaries allowlist across five network policies (nvidia, clawhub, openclaw_api, openclaw_docs, npm_registry) in the NemoClaw sandbox YAML configuration. This enables Node.js process execution for network operations previously blocked by the sandbox proxy.

Changes

Cohort / File(s) Summary
Sandbox Policy Binary Allowlist
nemoclaw-blueprint/policies/openclaw-sandbox.yaml
Added /usr/local/bin/node to the binaries allowlist for five network policies: nvidia, clawhub, openclaw_api, openclaw_docs, and npm_registry. Allows the Node.js runtime to make network requests through the sandbox proxy, resolving permission blocks that occurred when Node-based binaries attempted outbound connections.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A node skipped through the policy gate,
Five paths now open—no more to wait!
Network binaries dance with newfound grace,
Telegram and inference find their place.
whoosh — the sandbox proxy yields at last!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR addresses the primary coding objectives from issue #391: adding /usr/local/bin/node to nvidia, clawhub, openclaw_api, openclaw_docs, and npm_registry policies. However, the critical telegram policy fix (adding binaries section) is not implemented. Add /usr/local/bin/openclaw and /usr/local/bin/node to the telegram policy binaries section as specified in issue #391.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding /usr/local/bin/node to binary allowlists in sandbox policies.
Out of Scope Changes check ✅ Passed All changes are scoped to adding /usr/local/bin/node to binary allowlists in sandbox network policies, which is directly related to the linked issue #391.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
nemoclaw-blueprint/policies/openclaw-sandbox.yaml (2)

97-102: ⚠️ Potential issue | 🟡 Minor

Policy comment is stale after adding Node to allowlists.

Line 99 says "Binary-restricted to openclaw only", but these policies now also allow /usr/local/bin/node. Please update the comment to match actual enforcement.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml` around lines 97 - 102,
Update the stale policy comment that reads "Binary-restricted to openclaw only"
to reflect that the sandbox now also allows the Node binary; e.g., change
wording in the OpenClaw "phone home" comment (around the OpenClaw section) to
state the policy is restricted to openclaw and /usr/local/bin/node (or "OpenClaw
and Node") so the comment matches the actual allowlist enforcement.

159-172: ⚠️ Potential issue | 🟠 Major

Missing telegram.binaries keeps part of the reported root cause unresolved.

network_policies.telegram still has no binaries block. Given the stated enforcement model, Telegram calls initiated by OpenClaw/Node can still be blocked.

🔧 Proposed fix
   telegram:
     name: telegram
     endpoints:
       - host: api.telegram.org
         port: 443
         protocol: rest
         enforcement: enforce
         tls: terminate
         rules:
           - allow: { method: GET, path: "/bot*/**" }
           - allow: { method: POST, path: "/bot*/**" }
+    binaries:
+      - { path: /usr/local/bin/openclaw }
+      - { path: /usr/local/bin/node }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml` around lines 159 - 172,
The telegram policy lacks a binaries block so outgoing Telegram calls from the
agent can still be blocked; add a telegram.binaries section under the same
telegram object that explicitly lists the agent runtime binary(ies) and any HTTP
client CLIs used to make Telegram API calls (e.g., the Node runtime such as
"node" and helper tools like "curl" or "wget") with their canonical names/paths
so the enforcement engine can permit those executables to open connections;
reference the telegram object, its endpoints/rules, and add a binaries array
naming the exact executables used by OpenClaw/Node (e.g., node, curl) to ensure
Telegram traffic is allowed.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml`:
- Around line 97-102: Update the stale policy comment that reads
"Binary-restricted to openclaw only" to reflect that the sandbox now also allows
the Node binary; e.g., change wording in the OpenClaw "phone home" comment
(around the OpenClaw section) to state the policy is restricted to openclaw and
/usr/local/bin/node (or "OpenClaw and Node") so the comment matches the actual
allowlist enforcement.
- Around line 159-172: The telegram policy lacks a binaries block so outgoing
Telegram calls from the agent can still be blocked; add a telegram.binaries
section under the same telegram object that explicitly lists the agent runtime
binary(ies) and any HTTP client CLIs used to make Telegram API calls (e.g., the
Node runtime such as "node" and helper tools like "curl" or "wget") with their
canonical names/paths so the enforcement engine can permit those executables to
open connections; reference the telegram object, its endpoints/rules, and add a
binaries array naming the exact executables used by OpenClaw/Node (e.g., node,
curl) to ensure Telegram traffic is allowed.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 813ead60-bdd9-4658-8d6f-c36e03654501

📥 Commits

Reviewing files that changed from the base of the PR and between 3ba517d and 9d52551.

📒 Files selected for processing (1)
  • nemoclaw-blueprint/policies/openclaw-sandbox.yaml

@pjt222

pjt222 commented Mar 23, 2026

Copy link
Copy Markdown
Author

Closing — #317 addresses #391 more comprehensively alongside the broader binaries restriction (#272). Keeping this to reduce review queue noise.

The isolated fix remains on the branch if needed independently.

@pjt222 pjt222 closed this Mar 23, 2026
@wscurran wscurran added bug-fix PR fixes a bug or regression and removed bug labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression integration: openclaw OpenClaw integration behavior integration: telegram Telegram integration or channel behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NemoClaw + Telegram: Fresh install on existing OpenClaw host — multiple 403 proxy blocks due to missing node in policy binaries

2 participants