NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Ubuntu 22.04] Network Whitelisting Only Enforced for npm/PyPI; GitHub/Hugging Face/Docker Remain Unrestricted

Open zNeill opened this issue 8 months ago • 1 comments

Description

[Description] During NemoClaw sandbox use, network allow rules that are tied to package managers (npm, pip / PyPI) behave as expected, but similar allow rules added via presets or operator approval for GitHub, Hugging Face, Docker Hub / NVCR, etc. do not appear to take effect: outbound HTTPS to those hosts is still denied or intercepted even though the UI or policy listing shows the preset as enabled (e.g. bullet shown as applied in nemoclaw policy-list / TUI).

[Environment]

  • Device: Ubuntu 22.04
  • Node.js: v20.20.1
  • npm: 10.8.2
  • Docker: Docker Engine 29.3.0
  • OpenShell CLI: 0.0.15
  • NemoClaw: v0.1.0 (cec1e4)
  • OpenClaw: 2026.3.11 (29dc654)

Note: it can be reproducible with other environment intermittently

[Steps to Reproduce]

  1. Complete NemoClaw onboarding with a sandbox.
  2. Confirm baseline: npm install / pip install against registry hosts succeeds (or is allowed without repeated TUI prompts).
  3. Add presets (or approve flows) for GitHub, Hugging Face, and Docker (e.g. nemoclaw policy-add → select docker / huggingface; or equivalent).
  4. Verify policy UI / nemoclaw policy-list shows these presets as applied (●).
  5. Inside the sandbox (or via agent), run operations that should use those hosts, for example:
    • git clone https://github.com/... or gh api ...
    • huggingface-cli download ... or Python huggingface_hub
    • docker pull ... (registry-1.docker.io / nvcr.io as applicable)
  6. Observe: requests are still blocked or prompted again as if the destination were not allowed.
  7. Contrast: repeat a minimal npm or pip fetch to registry.npmjs.org / pypi.org — observe success with the same policy state.

[Expected Behavior]

  • When an operator enables GitHub, Hugging Face, or Docker presets (or approves equivalent rules), legitimate tooling documented for that preset should be able to reach the listed hosts without spurious denials, consistent with how npm and PyPI presets behave today.
  • If enforcement is intentionally binary-scoped, the CLI/TUI/docs should state explicitly that “allowing GitHub” means only for /usr/bin/git and /usr/bin/gh (or whatever paths) so users are not led to believe “host is open” for all processes.
  • If binary scoping is correct by design, then presets should include the actual binaries used in the NemoClaw sandbox image (or wildcards where safe), so presets are not no-ops in practice.

Steps to reproduce

No steps provided.


[NVB# 6018311]

[NVB#6018311]

zNeill avatar Mar 26 '26 21:03 zNeill

Closed by NV QA.

zNeill avatar Apr 07 '26 20:04 zNeill