NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Sandbox egress proxy blocks direct NVIDIA API access despite network policy allowing it

Open cluster2600 opened this issue 8 months ago • 2 comments

Description

When configuring the sandbox to use https://integrate.api.nvidia.com/v1 as the baseUrl in ~/.openclaw/openclaw.json, all LLM requests time out. The egress proxy at 10.200.0.1:3128 returns HTTP 403 on the CONNECT tunnel, even when the network policy explicitly allows integrate.api.nvidia.com:443.

Steps to Reproduce

  1. Run nemoclaw setup-spark on DGX Spark
  2. Inside the sandbox, change the provider config:
    "baseUrl": "https://integrate.api.nvidia.com/v1",
    "apiKey": "nvapi-..."
    
  3. Run openclaw agent --agent main --local -m "hello" --session-id test
  4. Agent fails with: LLM request timed out.

Verifying with curl inside the sandbox:

curl -v --proxy http://10.200.0.1:3128 https://integrate.api.nvidia.com/v1/models
# Returns: HTTP/1.1 403 Forbidden
# CONNECT tunnel failed, response 403

Expected Behaviour

The request should succeed since integrate.api.nvidia.com:443 is in the default openclaw-sandbox.yaml network policy under the nvidia section.

Workaround

Use inference.local instead, which routes through OpenShell's managed inference proxy:

"baseUrl": "https://inference.local/v1",
"apiKey": "openshell-managed"

This is the default from nemoclaw setup-spark. The managed proxy handles NVIDIA API auth and egress without going through the sandbox egress proxy.

Environment

  • DGX Spark (GB10, aarch64)
  • Ubuntu 24.04, Docker 29.x
  • NemoClaw installed via curl -fsSL https://nvidia.com/nemoclaw.sh | sudo bash
  • OpenShell 0.0.7
  • OpenClaw 2026.3.11

Analysis

The sandbox network is fully locked down through the egress proxy. All outbound traffic must pass through 10.200.0.1:3128. The policy file includes integrate.api.nvidia.com with access: full, but the proxy still rejects the CONNECT tunnel with 403. Updating the policy dynamically via openshell policy set (tested with both tls: terminate and access: full) does not resolve the issue.

The inference.local endpoint works because it is handled by OpenShell's internal routing, bypassing the egress proxy entirely.

cluster2600 avatar Mar 18 '26 12:03 cluster2600

Related to #488 — same root cause. The egress proxy blocks CONNECT tunnels for any binary not explicitly listed in the policy's binaries field, even when the endpoint has access: full. The workaround for NVIDIA API is to use inference.local routing (openshell inference set), but there's no equivalent routing mechanism for GitHub.

cluster2600 avatar Mar 20 '26 14:03 cluster2600

Thanks for the detailed report. We’re going to close this as not planned for the direct-provider path.

NemoClaw’s supported inference architecture is for sandboxed agents to call https://inference.local/v1. The OpenShell gateway owns the upstream provider credential and routes that request to the selected provider, including NVIDIA Endpoints. That keeps raw provider credentials out of the sandbox and avoids requiring direct sandbox egress to integrate.api.nvidia.com.

If an operator explicitly wants direct network access as a temporary/custom setup, the supported escape hatch is the OpenShell policy system: add a narrowly scoped policy entry for the target endpoint and the exact binary that needs it, and use OpenShell-managed credential placeholders rather than placing raw API keys in the sandbox. That is an advanced policy exception and should be treated as a local operator choice, not the default NemoClaw path.

For normal NemoClaw usage, please keep the provider configured through the OpenShell inference route and use inference.local. The relevant work that established and hardened that supported route includes #648, #1037, #2490, and #2664.

ericksoa avatar May 02 '26 15:05 ericksoa