[Ubuntu 24.04][Sandbox] dcode refuses to start after nemoclaw credentials add — OPENSHELL_TLS_KEY flagged as secret by dcode wrapper
Description
After running nemoclaw credentials add tavily-search --type tavily --credential TAVILY_API_KEY and rebuilding the sandbox, dcode --version fails with exit code 2: "dcode: refusing to start — runtime environment variable contains a secret-shaped value in OPENSHELL_TLS_KEY." The OPENSHELL_TLS_KEY is an internal OpenShell TLS key injected into the sandbox environment when a credential provider is attached via nemoclaw credentials add. dcode's secret detection incorrectly treats this internal infrastructure key as a user secret, making the sandbox completely unusable after credential registration. The sandbox smoke test fails at [7/8] during rebuild, and manual dcode --version inside the container confirms the issue.
Environment
Device: Ubuntu 24.04 server (cloudshqa-System-Product-Name, x86_64)
OS: Ubuntu 24.04.4 LTS (Linux 6.17.0-29-generic, x86_64)
Architecture: x86_64
Node.js: v22.23.1
npm: 10.9.8
Docker: 29.5.2
OpenShell CLI: 0.0.71
NemoClaw: v0.0.72
OpenClaw: LangChain Deep Agents Code v0.1.12
Steps to Reproduce
- Onboard a LangChain Deep Agents Code sandbox:
nemoclaw onboard --agent langchain-deepagents-code --no-gpu --name dcode-tavily
- Register a Tavily credential:
export TAVILY_API_KEY=tvly-...
nemoclaw credentials add tavily-search --type tavily --credential TAVILY_API_KEY
- Rebuild the sandbox to attach the new credential:
nemoclaw dcode-tavily rebuild --yes
- Observe the failure at
[7/8]smoke test, then verify directly:
CONTAINER=$(docker ps --format '{{.Names}}' | grep dcode-tavily | head -1)
docker exec $CONTAINER bash -lc "dcode --version"
Expected Result
dcode --version returns the version string (e.g. "deepagents-code 0.1.12") and exits 0. The sandbox smoke test passes at [7/8] and rebuild completes successfully. OPENSHELL_TLS_KEY is an internal OpenShell infrastructure key that should be excluded from dcode's secret detection allowlist.
Actual Result
dcode: refusing to start — runtime environment variable contains a secret-shaped value in OPENSHELL_TLS_KEY.
Remove it from the environment, or use 'nemoclaw credentials' to register provider keys.
Rebuild fails at [7/8]:
✗ LangChain Deep Agents Code terminal smoke command failed: dcode --version
NEMOCLAW_AGENT_SMOKE_EXIT:2
Sandbox is destroyed and must be recovered via nemoclaw onboard --resume.
Additional Context
- The issue only occurs after
nemoclaw credentials addattaches a credential provider. A fresh sandbox (withoutcredentials add) passes the smoke test correctly. OPENSHELL_TLS_KEYis injected by the OpenShell gateway into the sandbox environment when a credential provider is attached — it is not a user secret.- dcode's secret detection should allowlist known OpenShell internal keys (
OPENSHELL_TLS_KEYand similar) to prevent false positives. - This blocks the Tavily web search test case (DevTest for dcode-tavily) from completing step 2 onward.
- Reproduced on NemoClaw v0.0.72; not present in fresh sandboxes without credential providers attached.
Logs
$ docker exec $CONTAINER bash -lc "dcode --version"
dcode: refusing to start — runtime environment variable contains a secret-shaped value in OPENSHELL_TLS_KEY.
Remove it from the environment, or use 'nemoclaw credentials' to register provider keys.
✨ Thanks for the clear report with reproduction steps and environment details. This looks like dcode's secret detection is incorrectly flagging the internal OPENSHELL_TLS_KEY injected by the sandbox when a credential provider is attached. Maintainers will investigate the secret-detection allowlist in the dcode wrapper.
Reopening because the implementation that closed this issue via #6202 is being reverted after disrupting the release. The original issue should be considered unresolved again until a replacement fix is implemented and validated without affecting release stability.