Skip to content
Closed
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
4 changes: 2 additions & 2 deletions docs/reference/network-policies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ The following endpoint groups are allowed by default:
| Policy | Endpoints | Binaries | Rules |
| --- | --- | --- | --- |
| `nvidia` | `integrate.api.nvidia.com:443`, `inference-api.nvidia.com:443` | `/usr/local/bin/openclaw` | POST to inference and embedding paths, GET to model listings |
| `clawhub` | `clawhub.ai:443` | `/usr/local/bin/openclaw`, `/usr/local/bin/node` | GET, POST |
| `openclaw_api` | `openclaw.ai:443` | `/usr/local/bin/openclaw`, `/usr/local/bin/node` | GET, POST |
| `clawhub` | `clawhub.ai:443` | `/usr/local/bin/openclaw`, `/usr/local/bin/node`, `/usr/bin/node` | GET, POST |
| `openclaw_api` | `openclaw.ai:443` | `/usr/local/bin/openclaw`, `/usr/local/bin/node`, `/usr/bin/node` | GET, POST |
| `openclaw_docs` | `docs.openclaw.ai:443` | `/usr/local/bin/openclaw` | GET only |
| `npm_registry` | `registry.npmjs.org:443` | `/usr/local/bin/openclaw` only (openclaw plugins install) | GET only |

Expand Down
2 changes: 2 additions & 0 deletions nemoclaw-blueprint/policies/openclaw-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ network_policies:
binaries:
- { path: /usr/local/bin/openclaw }
- { path: /usr/local/bin/node }
- { path: /usr/bin/node }

openclaw_api:
name: openclaw_api
Expand All @@ -148,6 +149,7 @@ network_policies:
binaries:
- { path: /usr/local/bin/openclaw }
- { path: /usr/local/bin/node }
- { path: /usr/bin/node }

openclaw_docs:
name: openclaw_docs
Expand Down
13 changes: 13 additions & 0 deletions test/validate-blueprint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,19 @@ describe("base sandbox policy", () => {
]);
});

it("regression #4104: OpenClaw plugin registry policies allow apt-installed Node", () => {
const np = policy.network_policies ?? {};

for (const policyName of ["clawhub", "openclaw_api"]) {
const binaries = (np[policyName]?.binaries ?? []).map((b) => b.path).sort();
expect(binaries).toEqual([
"/usr/bin/node",
"/usr/local/bin/node",
"/usr/local/bin/openclaw",
]);
}
});

it("does not reference the absent Claude CLI binary", () => {
const serialized = JSON.stringify(policy.network_policies ?? {});
expect(serialized).not.toContain("/usr/local/bin/claude");
Expand Down
Loading