fuse environment rotate-token
Re-issue guest agent credentials
fuse environment rotate-token <id>
Alias: rotate. No flags beyond the globals. Generates fresh TLS credentials
and an auth token for the environment, writes them to the guest’s credential
files, and persists the orchestrator’s new encrypted copy. The environment
keeps running throughout.
fuse environment rotate-token fuse-abc123
# rotated token for environment "fuse-abc123"
The running agent picks the new credentials up in place: the orchestrator
sends fused a SIGHUP after writing the files, and new requests with the old
token are refused. A request already in progress, such as an open desktop
stream, keeps running until it ends, so close those too when revoking a leaked
token. A guest whose fused predates the reload handler exits
on the signal and is restarted onto the new files.
Errors
Rotation only works on a running environment. That precondition does not wrap
a sentinel error, so it surfaces as HTTP 500 rather than a 4xx.