exc_ API key stored in its own config. When you rotate or replace that key in the UI, the old key is revoked immediately — but the executor keeps presenting whatever key is still in its config. This recipe shows where the key lives and how to swap it in, for both backends.
Before you start
- The new
exc_key — shown only once, when you created or rotated it. If you don’t have it, rotate again to mint a fresh one. - Owner or admin to rotate the key; shell access to the host (Agent) or cluster (Operator) to apply it.
- Agent (bare-metal)
- Operator (Kubernetes)
The Agent reads its key from The config is read once at startup, so the restart is what picks up the new key. Running nodes are unaffected — their The Executors row flips back to
[hub] token in /etc/nvcl/agent.toml, once at startup. Update the file and restart the service.1
Write the new key
Edit Or in place, without opening an editor:Keep the file mode
/etc/nvcl/agent.toml as root and replace the [hub] token value:0600 and owned by root — the token is the credential.2
Restart the agent
nvcl-node-* units keep running.3
Confirm it reconnected
online within a few seconds. Auth errors here mean the key is wrong or has trailing whitespace.Verify
In Executors, the row returns toonline. On the API keys page, the new key’s Last used updates from never to just now, confirming the executor presented it.
Related
- API keys — rotate, revoke, and manage the keys themselves.
- Provision on bare-metal · Provision on Kubernetes
- Connect an executor