Repository navigation
Description
Description
After NemoClaw onboard completes with a Telegram bot token configured (initially TELEGRAM_BOT_TOKEN=fake-token-A) and the sandbox is healthy, a second onboard run with a new Telegram token (TELEGRAM_BOT_TOKEN=fake-token-B) leaves two distinct providerCredentialHashes blocks for the same sandbox in ~/.nemoclaw/sandboxes.json, each with a different hash for TELEGRAM_BOT_TOKEN, instead of updating a single hash entry.
Concretely, after the second onboard:
$ echo $TELEGRAM_BOT_TOKEN
fake-token-BBut ~/.nemoclaw/sandboxes.json contains:
"providerCredentialHashes": {
"TELEGRAM_BOT_TOKEN": "9bed07906968f9e82ae87b354284e766dc0c0d9547aac7af3334978ed0d0682c"
},
"providerCredentialHashes": {
"TELEGRAM_BOT_TOKEN": "9b438bf6feb572f4b9b227f8306202a5bed42f9cdedfae94b2f3eccf4e840f82"
},The first hash corresponds to the original token (fake-token-A), and the second hash corresponds to the new token (fake-token-B). Instead of rotating the hash in a single providerCredentialHashes object, NemoClaw appears to append a second providerCredentialHashes block and leave the old hash in place. This creates ambiguous registry state and diverges from the expected behavior that, after rotation, only the new token's hash is present for TELEGRAM_BOT_TOKEN.
Environment
- Platform: Any supported NemoClaw platform (e.g. Ubuntu 22.04 / 24.04 / 26.04)
- GPU: Any
- Docker: Docker installed and running (supported runtime)
- NemoClaw CLI: Installed and working
- Sandbox:
- Previously onboarded with
TELEGRAM_BOT_TOKEN=fake-token-A - Healthy before rotation (
nemoclaw statusshows ready)
- Previously onboarded with
- Credentials state before rotation:
~/.nemoclaw/sandboxes.jsoncontains a singleproviderCredentialHashesblock with one entry for"TELEGRAM_BOT_TOKEN": "<hash-for-fake-token-A>"
(You can also add your exact NemoClaw/OpenShell versions here if needed for the issue.)
Steps to Reproduce
Preconditions
-
Ensure NemoClaw CLI is installed and Docker is running.
-
Export an initial Telegram token and onboard a sandbox:
export TELEGRAM_BOT_TOKEN=fake-token-A nemoclaw onboard --non-interactive -
Verify the sandbox is healthy:
nemoclaw status
Confirm the sandbox shows as ready.
-
Verify the initial credential hash is stored:
cat ~/.nemoclaw/sandboxes.json | sed -n '/"providerCredentialHashes"/,/}/p'
Confirm there is a single
providerCredentialHashesblock containing:"TELEGRAM_BOT_TOKEN": "<hash-for-fake-token-A>"
Rotation steps
-
Change the Telegram token in the environment to a different value:
export TELEGRAM_BOT_TOKEN=fake-token-B(
fake-token-Bmust differ fromfake-token-A.) -
Re-run NemoClaw onboard non-interactively:
nemoclaw onboard --non-interactive
-
Optionally observe terminal output during this onboard run for any rotation/rebuild messages.
-
Wait for onboard to complete and note the exit code.
-
Confirm the sandbox remains healthy:
nemoclaw status
-
Inspect the sandbox registry again:
cat ~/.nemoclaw/sandboxes.json | sed -n '/"providerCredentialHashes"/,/}/p'
Observe how many
providerCredentialHashesblocks are present and what eachTELEGRAM_BOT_TOKENhash is.
Expected Result
-
The environment reflects the new token (
echo $TELEGRAM_BOT_TOKENshowsfake-token-B). -
nemoclaw onboard --non-interactiverecognizes the existing sandbox and detects that messaging credentials have changed, performing a rotation and rebuild flow (per docs):-
Terminal output includes a message such as:
Messaging credential(s) rotated: TELEGRAM_BOT_TOKEN -
And:
Rebuilding sandbox to propagate new credentials to the L7 proxy...
-
-
Onboard exits with status 0 and no error.
-
nemoclaw statusshows the sandbox as healthy and ready after the rebuild. -
In
~/.nemoclaw/sandboxes.jsonfor this sandbox:- There is one
providerCredentialHashesblock. - The
TELEGRAM_BOT_TOKENentry's hash corresponds tofake-token-B(the new token). - The hash for
fake-token-Ais no longer present.
- There is one
This confirms that the registry correctly reflects the rotated credential and that the old hash is fully replaced by the new one.
Actual Result
-
After running:
export TELEGRAM_BOT_TOKEN=fake-token-B nemoclaw onboard --non-interactiveand confirming:
$ echo $TELEGRAM_BOT_TOKEN fake-token-B
the sandbox registry shows two
providerCredentialHashesblocks:"providerCredentialHashes": { "TELEGRAM_BOT_TOKEN": "9bed07906968f9e82ae87b354284e766dc0c0d9547aac7af3334978ed0d0682c" }, "providerCredentialHashes": { "TELEGRAM_BOT_TOKEN": "9b438bf6feb572f4b9b227f8306202a5bed42f9cdedfae94b2f3eccf4e840f82" },
-
The first hash is for the original token (
fake-token-A), and the second hash is for the new token (fake-token-B). -
Instead of updating the existing
TELEGRAM_BOT_TOKENhash in a singleproviderCredentialHashesobject, NemoClaw appears to append a secondproviderCredentialHashesblock and leave the previous hash intact. -
This results in duplicate
"providerCredentialHashes"keys at the same JSON level and ambiguous state about which token is authoritative, contrary to the expectation that only the new token's hash is present after a successful rotation.
Bug Details
| Field | Value |
|---|---|
| Priority | Unprioritized |
| Action | Dev - Open - To fix |
| Disposition | Open issue |
| Module | Machine Learning - NemoClaw |
| Keyword | NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL |
[NVB#6181593]
Activity
fix(registry): drop legacy credential hash rows (#6611)
fix(registry): drop legacy credential hash rows (NVIDIA#6611)
Thabhelo commentedon Jul 13, 2026
@cv i notice you and @Hadar301 added commits that reference this issue.
I was intending on checking it out, can i consider claimed and leave it to y'all?
ps: would be helpful to assign issues that have been claimed under the
Assignees\nNo one assignedsection.cv commentedon Jul 14, 2026
Closing as fixed by #6611 in v0.0.81. The focused regression confirms registry rewrites remove legacy
providerCredentialHasheswhile retaining the current Telegram credential binding; no live credential was used, and NVB#6181593 needs a separate update.mercl-lau commentedon Jul 28, 2026
QA verification update — FAIL on v0.0.96
Environment:
qwen2.5:1.5bValidation:
Detected messaging channel inputs for telegram; refreshing reused sandbox messaging plan.providerCredentialHashespresent: falseThe duplicate legacy
providerCredentialHashesfield addressed by #6611 is gone, but rotation still does not update the authoritative credential binding when the Telegram API is unreachable and no live credential is used. The focused regression for the fix did not require a live credential, so this remains a valid failure.Reopening for investigation.
from kookies
fix(onboard): rebuild on messaging credential drift (NVIDIA#8859)
fix(onboard): rebuild on messaging credential drift (#7853)