On This Page

Home / Edge/ Secure Your Deployment/Create and Manage Authentication Tokens

Create and Manage Authentication Tokens ​

Authentication tokens are issued by the Leader Node to control and secure communication between the Leader, Outpost Nodes, Workers, and Edge Nodes.

Types of Authentication Tokens ​

The following token types are available:

  • Provisioning tokens are the fundamental way to deploy new Stream Workers, Edge Nodes, and Outposts, and connect them to the Leader Node.

    You can later manage, rotate, and revoke provisioning tokens and track their usage in the UI.

  • Environment tokens are authentication tokens you use for programmatic deployments where you manage tokens outside Cribl.

    Environment tokens have limited management capabilities and UI visibility.

Authentication Tokens in New Deployments ​

New on-prem Cribl Edge deployments include no built-in provisioning tokens. You need to create a token to connect any hybrid Stream Workers, Edge Nodes, or Outposts to the Leader.

Cribl.Cloud deployments handle tokens for Cribl-managed Worker Groups in Cribl Stream automatically. However, you still need to create tokens for authenticating Outpost Nodes, Edge Nodes, and Workers in customer-managed (hybrid) Worker Groups.

Authentication Tokens in Upgraded Deployments ​

Cribl Edge deployments created on versions older than 4.20 used a different authentication token mechanism. On upgrade to 4.20, those deployments will automatically receive one legacy type token set to the value of the existing auth token.

Cribl recommends rotating the legacy token to a new provisioning token at your earliest convenience.

Create a New Provisioning Token ​

To create a new provisioning token:

  1. In the sidebar, select Settings, then select Global.

  2. Select Security, then Provisioning Tokens.

  3. Select Create Token.

  4. Enter a Token ID. Once the token is created, you can’t change this ID.

  5. Optionally, enter a Description that will help identify the proper token to use.

  6. Confirm with Create Token.

  7. You will be shown the newly created token. Copy it and save it in a secure place. You can also select Download to download the token as a text file.

    The token will not be shown again.

  8. Confirm with Close.

You can now use this token when creating a new Edge Node, for example, by inputting it in the Add/Update Edge Node modal.

Monitor Token Usage and Health ​

The list of tokens in Settings > Global > Security > Provisioning Tokens shows all existing provisioning tokens.

Each provisioning token has a status:

  • Active - can be used for connecting Stream Workers, Edge Nodes, and Outposts.
  • Revoked - has been revoked and can no longer be used by Nodes. Existing Nodes will remain connected until their next restart.

Select a token to see its details. This screen also shows you charts visualizing the number of Worker Nodes, Edge Nodes, Outposts, and Cloud Connections using this token, and the number of failed Node registrations.

Details for the legacy authentication token with a chart showing number of registered Nodes
An authentication token with its information

Rotate a Token ​

Rotating lets you switch Edge Nodes to use a different token. In this way you can also replace an environment token used by a Node with a provisioning token.

To rotate a token for a selection of Edge Nodes:

  1. On the top bar, select Products, then Edge, then Edge Nodes.
  2. Select the Edge Nodes you want to rotate the token for.
  3. Select Rotate Token.
  4. In Token ID, select the token you want to rotate to.
  5. Confirm with Rotate and Restart, or Rotate if you want to restart the Edge Nodes manually.

You must restart Edge Nodes after rotating for them to switch to connecting via the new token.

Revoke a Token ​

You can revoke a provisioning token to stop any Edge Nodes that use it from connecting to the Leader.

You can’t revoke the legacy token in a Cribl.Cloud deployment.

To revoke a token:

  1. In the sidebar, select Settings, then select Global.

  2. Select Security, then Provisioning Tokens.

  3. Select the token you want to revoke.

  4. Select Revoke. You will see a modal asking for confirmation. Type REVOKE to confirm.

    You can’t undo revoking a token.

  5. Confirm with Revoke Token.

  6. Restart the Edge Nodes you revoked the token for.

Token revocation will come into force only after you restart the Edge Nodes.

Environment Tokens ​

You can use environment tokens as a supplementary way of authenticating Nodes to the Leader without creating a provisioning token. Use this method of providing tokens to Nodes when you plan to manage tokens via your own infrastructure outside of Cribl.

An environment token is a string passed to the Leader Node in the CRIBL_DIST_AUTH_TOKENS environment variable. The variable can contain multiple comma-separated token strings to facilitate token rotation. Tokens listed in this variable will be accepted when used by a Worker, Edge, or Outpost Node (for example in instance.yml config or in a Node’s CRIBL_DIST_LEADER_URL environment variable). See Docker Deployment for example configurations that inject an auth token into a Node via this environment variable.

Cribl recommends that each token string contains at least 14 characters and includes uppercase letters, lowercase letters, and numbers.

Environment tokens will not be visible and you cannot monitor, rotate, and revoke them in the UI like provisioning tokens.

If a Node is deployed using an environment token, you can switch it to a provisioning token once it connects to the Leader. To do this, rotate the token for this Node.