NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Feature]: Provide secure channel configuration mechanism for sandbox (follow-up to #514)

Open nv-ddave opened this issue 7 months ago • 2 comments

Description

After #514 (agent self-modifying openclaw.json to bypass auth), the sandbox config was correctly locked down to root:root mode 444. This is the right security fix.

However, this also prevents legitimate channel configuration (Slack, Discord) from outside the sandbox. There is currently no supported way to add a new messaging channel to a running sandbox without either:

  1. Rebuilding the sandbox from scratch with the channel pre-configured
  2. Bypassing the sandbox entirely (running a separate host-side gateway)

The writable overlay at /sandbox/.openclaw-data/openclaw.json exists, but the OpenClaw gateway inside the sandbox does not pick up channel config changes from it.

Steps to Reproduce

  1. Deploy NemoClaw with nemoclaw onboard
  2. Try to add Slack channel config via SSH:
    ssh -T -F <config> openshell-my-assistant "cat /sandbox/.openclaw/openclaw.json"
    # File is root:root 444 — cannot modify
    
  3. Writing to /sandbox/.openclaw-data/openclaw.json doesn't help for channel config

Proposed Solutions

  1. openshell channel add slack --sandbox my-assistant --app-token xapp-... --bot-token xoxb-... — CLI-based channel configuration that writes to a secure, gateway-readable location
  2. Make the gateway read channel config from .openclaw-data/openclaw.json while keeping auth/CORS config immutable in .openclaw/openclaw.json
  3. Use openshell to inject channel config at the gateway level (similar to openshell inference set)

Workaround

Built a slack-bridge.js on the host that receives Slack Socket Mode events and relays messages into the sandbox via SSH. Works but loses multi-turn tool use and native streaming.

Context

Encountered during deployment of the NemoClaw Community Issue Tracker on DGX Spark. Detailed deployment log with 61 issues documented is available internally upon request.

nv-ddave avatar Apr 06 '26 15:04 nv-ddave

Hi @nv-ddave, thank you for raising this. Since you filed it, 62 releases have shipped and we are now on v0.0.68. This looks like it may have been addressed by NVIDIA/NemoClaw#2139, together with the #5338 channel-config migration, which added a host-side nemoclaw <name> channels add/remove command that writes tokens to the secure credential store instead of editing the locked sandbox config. Could you give it a try on the latest version and confirm whether it resolves things for you? Closing for now, but if you are still running into issues on the latest version, please feel free to create a new issue, cheers!

latenighthackathon avatar Jun 25 '26 21:06 latenighthackathon