Skip to content

Agent proxy setting overrides OpenShell's policy-proxy environment #12423

Closed

Description

@cv

Investigation Summary

  • launch_command (crates/nemoclaw-sdk/src/openshell/network.rs:135) wraps the agent in /usr/bin/env and resets HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy, NO_PROXY, and no_proxy after the supervisor sets them.
  • It also sets the Node.js-only NODE_USE_ENV_PROXY=1 (line 151) for every harness.
  • At the OpenShell pin, crates/openshell-supervisor-network/src/upstream_proxy.rs says the supervisor rewrites these variables to point the workload at its local policy proxy, and that operators configure corporate proxies through compute-driver arguments.
  • Unknown: whether agent traffic then skips L7 inspection or credential injection on a live host; not tested.

Description

sandboxes[].network.proxy replaces the proxy variables OpenShell sets for the workload, so the agent sends HTTP(S) traffic to the declared proxy instead of the supervisor's policy proxy.

Expected: upstream proxy selection uses OpenShell's driver-level upstream proxy chaining, which keeps policy evaluation, SSRF checks, and credential injection in the path.
Harness-specific proxy variables such as NODE_USE_ENV_PROXY come from the Fabric adapter when a harness needs them.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show the wrapper and the Node.js variable:

    sed -n '135,155p' crates/nemoclaw-sdk/src/openshell/network.rs
  2. Read OpenShell's contract for these variables at the pin:

    curl -fsSL https://raw.githubusercontent.com/NVIDIA/OpenShell/1fe79f53991debf32776853a60f0cbd4e127dcfb/crates/openshell-supervisor-network/src/upstream_proxy.rs | sed -n '4,25p'
  3. Read the user contract under Select the Agent Proxy:

    sed -n '77,94p' docs/sandbox-network.md

Environment

  • NemoClaw: v1 at 515fad88f
  • OpenShell pin: 1fe79f53991debf32776853a60f0cbd4e127dcfb (versions.json)
  • NeMo Fabric pin: 24f068c895e5cbc30286bc743498be4e5014d658 (crates/nemoclaw-sdk/Cargo.toml)
  • OpenTofu: 1.12.6 (versions.json)
  • Host: macOS arm64 source checkout; static inspection only, no deployment

Debug Output

Not applicable: this finding comes from static source inspection at the revisions above.
No deployment ran, so there is no nemoclaw debug output.

Logs

No response

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. added theissue type on Sep 29, 2026
  2. added
    area: networking
    area: sandbox
    area: security
    needs: triage
    v1
    on Sep 29, 2026
  3. added a commit that references this issue on Sep 29, 2026
    ac00822
  4. cv commented on Sep 29, 2026

    @cv
    CollaboratorAuthor

    Completed on v1 in ac00822aac.

    Removed the per-sandbox network.proxy field and the launch wrapper that replaced OpenShell's proxy environment, including NemoClaw's unconditional Node-specific proxy setting. Unsupported proxy input now fails before deployment. External gateways use OpenShell's existing compute-driver proxy chaining; managed gateways do not gain a new proxy configuration surface.

    Validation: The rejection regression and explicit-policy lifecycle fixture pass. Existing deployments retaining the removed field require their original bundle for recovery or teardown. final native CI passed.

  5. removed
    area: sandbox
    needs: triage
    on Oct 5, 2026
  6. added this to the Roadmap: GTC DC 2026 milestone on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: networkingarea: securityv1

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions