Skip to Content
AdministrationIdentity and AccessAPI and Service Access

Create and Manage Registration Tokens

Generate registration tokens that let new cnspec agents register with a Mondoo space, and revoke the ones you no longer need.

A registration token lets a new cnspec agent register itself with a Mondoo space. You pass the token to cnspec login (or to the install script), and cnspec exchanges it for its own service account credentials. The token itself isn't a long-term credential: after an agent registers, it uses the service account it received.

To register cnspec on a server or workstation, read Register cnspec with Mondoo Platform. Registration tokens belong to a space.

To generate registration tokens, you need the Editor or Admin role, or the Agent Manager or Registration Token Creator permission. To revoke them, you need Editor, Admin, Agent Manager, or Registration Token Manager.

Generate a registration token

  1. Navigate to the space.

  2. In the left navigation, select Settings, then Registration Tokens.

  3. Select GENERATE TOKEN. The Generate a New Registration Token dialog opens.

    The Generate a New Registration Token dialog in the Mondoo App, with a description box and a Token expires in list

  4. In the Description box, describe what the token is for, so you and your teammates can recognize it later.

  5. In the Token expires in list, choose how long the token can register new agents: 10 Minutes, 30 Minutes, 1 Hour, 8 Hours, 24 Hours, 1 Week, or Non-Expiring. If you choose less than 24 hours, the dialog notes that the token won't appear in the list of tokens.

  6. Select GENERATE REGISTRATION TOKEN.

  7. Copy the token. You won't be able to see it again.

  8. Select FINALIZE to close the dialog.

Prefer short expirations for one-off registrations. Use a longer expiration only for automation that registers agents over time, such as a golden image or an autoscaling group.

View registration tokens

The Registration Tokens page lists each token's description and Key ID, who created it, when it was created, when it expires, and its status (Active, Expired, or Revoked). To sort the list by status, select the Status column header. The page lists only tokens with an expiration of 24 hours or longer; shorter-lived tokens never appear in the list.

To copy the list or export it as CSV, JSON, or XLSX, open the ⋮ menu next to the search box.

The Registration Tokens page in the Mondoo App, listing tokens with their key ID, creator, creation date, expiration, and status

Revoke a registration token

Revoking a token stops it from registering new agents. Agents that already registered with it keep working, because they use their own service account credentials.

  1. Navigate to the space.

  2. In the left navigation, select Settings, then Registration Tokens.

  3. Select the token's Active status, then select Revoke and confirm.

To revoke several tokens at once, select the checkbox next to each one and select Revoke in the bar that appears.

Next steps

Last updated on

On this page