You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): stop passing NVIDIA_API_KEY into sandbox and command lines (NVIDIA#675)
The OpenShell gateway proxies inference requests and injects stored
credentials server-side (proxy.rs strips client auth headers,
backend.rs re-authenticates upstream). The raw key was never needed
inside the sandbox but was passed via env args, setup.sh, walkthrough
commands, and the setupSpark sudo call — exposing it in ps aux,
/proc/pid/cmdline, docker inspect, and k3s audit logs.
Changes:
- Remove NVIDIA_API_KEY from openshell sandbox create env args
- Use env-name-only credential form in setup.sh
- Remove key from walkthrough.sh tmux/connect commands
- Remove unnecessary key + ensureApiKey() from setupSpark
- Clear key from process.env after setupInference handoff
- Add 6 regression tests for credential exposure
Does NOT fix /proc/pid/environ (kernel snapshot is immutable after
exec — requires file-based credential loading in OpenShell).
Messaging tokens left in sandbox env pending NVIDIA#617 merge.
ClosesNVIDIA#429.
0 commit comments