fix(policy): allow apt node for OpenClaw registry access#4701
Conversation
Signed-off-by: Chengjie Wang <chengjiew@nvidia.com>
|
This repository limits contributors to 10 open pull requests. Please close or merge existing PRs before opening new ones. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR resolves issue ChangesEnable Node binary for clawhub and openclaw_api policies
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
🌿 Preview your docs: https://nvidia-preview-pr-4701.docs.buildwithfern.com/nemoclaw |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: Dispatch required scenario E2E:
Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 1 needs attention, 3 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
This is an automated advisory review. A human maintainer must make the final merge decision. |
Summary
Allow OpenClaw's default
clawhubandopenclaw_apipolicy entries to be reached by Node when it is installed at/usr/bin/node, which is common on apt-based Linux images. This fixes the default sandbox policy gap that can blockopenclaw plugins installbefore it reaches ClawHub/OpenClaw API, without broadening the baselinenpm_registrypolicy.Related Issue
Fixes #4104
Changes
/usr/bin/nodeto the baselineclawhubandopenclaw_apibinary allowlists innemoclaw-blueprint/policies/openclaw-sandbox.yaml./usr/bin/node,/usr/local/bin/node, and/usr/local/bin/openclaw.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Focused verification run:
All focused checks passed. A broader local
test/policies.test.tsrun was attempted afternpm run build:cli; it ran 152 tests with 134 passing, but 18 interactive policy command tests timed out in this local environment, so it is not marked as a passing full-suite check here.Signed-off-by: Chengjie Wang chengjiew@nvidia.com
Summary by CodeRabbit
Release Notes
Documentation
Tests