Rotate an agent’s credentials and revoke a device

Time · ~4 min Level · Intermediate For · security & lifecycle

Agents authenticate to LRO with credentials stored on the machine, bound to its hardware. Sometimes you need to change that: you are moving the agent to new hardware, you lost the credentials file, you suspect a machine is compromised, or you are decommissioning it. Two panel actions cover all of these — Re-register to rotate, Delete agent to revoke.

  1. Open the agent’s controls

    Go to Agents, open the agent, and its lifecycle actions are at the bottom of the detail view: Re-register and Delete agent (alongside subscription controls).

    Agent detail view with Re-register and Delete agent buttons at the bottom
    Fig 1. Each agent’s lifecycle controls — Re-register to rotate credentials, Delete agent to revoke.
  2. Re-register to rotate credentials

    Re-register issues a fresh one-time token for the same agent and invalidates the old credentials immediately. The agent’s identity, subscription, balance and remaining traffic are preserved — only the secret on the machine changes.

    Re-register confirmation dialog explaining a new token is generated and old credentials stop working immediately
    Fig 2. Re-register — a new token is generated; old credentials stop working at once, subscription and traffic carry over.

    Then, on the machine, register the agent again with the new token — the same step as a first install:

    $ lro -t - # paste the new token (stdin keeps it out of the process list) $ lro # run the agent — it reconnects with fresh credentials

    Use this to move an agent to new hardware (re-register, then install with the new token on the new machine), to recover a lost credentials file, or to rotate a secret you think may be exposed — the old one is dead the moment you confirm.

  3. Revoke a device by deleting the agent

    When a machine is decommissioned, lost or should no longer have access, Delete agent revokes it outright. Its credentials stop working, it disappears from the panel, and its endpoints and tunnels are removed. Unlike re-registration, this is permanent — the agent is gone, not re-keyed.

    Rule of thumb: Re-register when the machine stays but the secret must change; Delete agent when the machine goes. For a stolen laptop you would normally delete, then register a replacement.

Notes

Rotate a secret or retire a device in seconds — from the panel.

Create an account →