Skip to content

fix: quote shell interpolations in CLI dispatch and deploy commands#102

Closed
WuKongAI-CMU wants to merge 1 commit into
NVIDIA:mainfrom
WuKongAI-CMU:fix/quote-cli-dispatch-commands
Closed

fix: quote shell interpolations in CLI dispatch and deploy commands#102
WuKongAI-CMU wants to merge 1 commit into
NVIDIA:mainfrom
WuKongAI-CMU:fix/quote-cli-dispatch-commands

Conversation

@WuKongAI-CMU

Copy link
Copy Markdown
Contributor

Summary

  • Quotes all ${sandboxName} and ${name} interpolations in bin/nemoclaw.js shell commands (sandboxConnect, sandboxStatus, sandboxLogs, sandboxDestroy, deploy)
  • Prevents word splitting and shell metacharacter injection when sandbox or instance names contain spaces, hyphens, or special characters
  • Removes redundant NVIDIA_API_KEY= from setup-spark command line — sudo -E already preserves the caller's environment, so the explicit assignment only leaked the key in ps output

Same category as #90 (which fixed onboard.js and policies.js), this PR covers the remaining unquoted interpolations in the main CLI entry point.

Related issues: #21, #46

Test plan

  • All 53 existing tests continue to pass
  • nemoclaw <name> connect still works with hyphenated sandbox names
  • nemoclaw deploy <name> properly quotes the instance name in SSH/rsync/scp commands
  • ps aux no longer shows NVIDIA_API_KEY when running nemoclaw setup-spark

Sandbox names and deploy instance names were interpolated unquoted into
shell commands throughout bin/nemoclaw.js. A name containing spaces or
shell metacharacters would cause word splitting or injection.

Also removes the redundant NVIDIA_API_KEY from the setup-spark command
line — sudo -E already preserves the caller's environment, so the
explicit assignment only served to leak the key in `ps` output.

Signed-off-by: Peter Tam <nicholaslwk@gmail.com>
Signed-off-by: peteryuqin <peter.yuqin@gmail.com>
@WuKongAI-CMU

Copy link
Copy Markdown
Contributor Author

Closing to reduce my open PR count below the repo policy limit and refocus on a smaller set of higher-signal changes. I can revive this branch later if it becomes the right path again.

mafueee pushed a commit to mafueee/NemoClaw that referenced this pull request Mar 28, 2026
…IDIA#102)

Closes NVIDIA#101

Add pytest-xdist for parallel e2e test execution with configurable
concurrency. Default to 5 workers; override via E2E_PARALLEL env var
(accepts a number or 'auto' for CPU-count matching). Make session-scoped
mock inference route fixtures worker-safe by incorporating the xdist
worker_id into route names and routing hints.

Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
@wscurran wscurran added the bug-fix PR fixes a bug or regression label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants