NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Sandbox egress proxy blocks GitHub access for OpenClaw agent despite policy allowing it

Open cluster2600 opened this issue 8 months ago • 4 comments

Description

The OpenClaw agent inside a NemoClaw sandbox cannot access GitHub (api.github.com, github.com) even when the network policy explicitly allows it with access: full. The egress proxy returns HTTP 403 on CONNECT tunnels.

Steps to Reproduce

  1. Create a sandbox with a policy that includes:
    github:
      name: github
      endpoints:
        - host: github.com
          port: 443
          access: full
        - host: api.github.com
          port: 443
          access: full
    
  2. Inside the sandbox, test:
    # Works (git binary is in the original policy's allowed binaries)
    git ls-remote https://github.com/user/repo.git HEAD  # ✅
    
    # Fails (curl/node not in allowed binaries)
    curl https://api.github.com/  # ❌ 403 Forbidden
    
  3. The OpenClaw agent uses Node.js (/usr/local/bin/node) to fetch from GitHub, which is blocked.

Root Cause

The default NemoClaw network policy (openclaw-sandbox.yaml) restricts GitHub access to specific binaries:

binaries:
  - path: /usr/bin/gh
  - path: /usr/bin/git

OpenClaw runs as /usr/local/bin/node, so its requests are blocked by the egress proxy even when access: full is set.

Setting access: full without a binaries restriction in a new policy does not help — the proxy still returns 403 on CONNECT tunnels from non-whitelisted binaries.

Additionally, openshell policy set does not fully replace the running policy — binary restrictions from the original policy persist even after applying a new policy without them.

Impact

The OpenClaw agent cannot:

  • Fetch repository contents for code review
  • Access GitHub APIs for issue management
  • Clone repositories programmatically

The Telegram bridge agent responds with "DNS resolution failure" when asked to review GitHub repos.

Workaround

  • Use openshell sandbox connect nemoclaw and run git commands manually (interactive git works)
  • Upload files via openshell sandbox upload

Environment

  • DGX Spark (GB10, aarch64)
  • OpenShell 0.0.11
  • NemoClaw 0.1.0
  • OpenClaw 2026.3.13

Suggestion

The default policy should either:

  1. Not restrict GitHub access by binary path (let any process access allowed endpoints)
  2. Include /usr/local/bin/node in the allowed binaries for GitHub
  3. Or provide a documented way to override binary restrictions via openshell policy set

cluster2600 avatar Mar 20 '26 13:03 cluster2600

Working on it.

sdshah09 avatar Mar 20 '26 19:03 sdshah09

Thanks for describing the issue with the egress proxy blocking GitHub access for the OpenClaw agent, despite the network policy explicitly allowing it, which is a good starting point for investigating this problem.

wscurran avatar Mar 20 '26 22:03 wscurran

Checking in — it's been about a month since we last heard on this. Several network policy and proxy fixes have landed since March 20, including a dedicated github policy preset and improved CONNECT tunnel handling. Could you confirm whether this is still reproducible on the latest version? If we don't hear back within 7 days, we'll post a reminder; items with no response at 14 days are closed to keep the queue healthy.

wscurran avatar Apr 20 '26 21:04 wscurran

Closing due to inactivity. It's been 14 days since we requested additional information and we haven't heard back. Feel free to reopen if you're able to follow up, or open a new issue with the requested details included. Thanks for contributing to NemoClaw.

wscurran avatar Apr 28 '26 00:04 wscurran