Repository navigation
Conversation
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]>
📝 WalkthroughWalkthroughAdded Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
There was a problem hiding this comment.
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 | 🟡 MinorPolicy 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 | 🟠 MajorMissing
telegram.binarieskeeps part of the reported root cause unresolved.
network_policies.telegramstill has nobinariesblock. 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
📒 Files selected for processing (1)
nemoclaw-blueprint/policies/openclaw-sandbox.yaml
Summary
OpenClaw is a Node.js script (
#!/usr/bin/env node). The sandbox proxy allowlists outbound traffic by kernel-level binary path, so whenopenclawruns, the OS sees/usr/local/bin/nodeas the actual binary — not/usr/local/bin/openclaw. Withoutnodein thebinarieslist, all openclaw-initiated requests are silently blocked with HTTP 403.This PR adds
/usr/local/bin/nodeto the 5 sandbox policies inopenclaw-sandbox.yamlthat use the openclaw runtime:nvidia— inference calls hang without thisclawhub— agent authentication failsopenclaw_api— API calls blockedopenclaw_docs— doc access blockednpm_registry— plugin installs failPolicies that invoke different binaries are not modified:
claude_code— invokes/usr/local/bin/claudegithub— invokes/usr/bin/ghand/usr/bin/gitFixes #391
Test plan
openclaw agentcan reach NVIDIA inference endpoints from sandboxopenclaw plugins installworks from sandboxclaude_codeandgithubpolicies still work (no false positive fromnodeaddition)🤖 Generated with Claude Code
Summary by CodeRabbit