These docs are for Cribl Edge 4.8 and are no longer actively maintained.
See the latest version (4.13).
How to Secure the Auth Token for the Leader Node
For new installations, the Cribl Edge Leader generates its own secure, random auth token. The Leader also creates a new token when you switch from Single-instance to the Distributed mode by configuring a Node to be a Leader Node.
In versions before v4.5.0, the default token was
criblmaster
. This default auth token does not change automatically if you upgrade your deployment to v4.5.0 or later.
If you need to change your auth token (for example, you prefer to use your own token or you are still using the older default of criblmaster
),
change the token value to a unique secure value.
This applies whether you configure your Leader via the UI, or via a Docker Compose file.
High Availability (Failover) Mode
Beginning in Cribl Edge 4.7, the auth token information that is stored in the
leader.yml
file on the failover volume will take precedence over the auth token stored in the localinstance.yml
file. This way, a single token is shared between primary and any standby Leaders.Before 4.7, there is no
leader.yml
file; instead, the auth token is in theinstance.yml
file only. Whenever you change an auth token, you must update it to be identical on all Leaders. See Configuring Additional Leader Nodes in the failover topic.
Changing the Auth Token Value
Changing the auth token once you have Edge Nodes deployed will break communication between the Nodes and the Leader. If you do change the auth token value, make sure that you update the auth tokens for the Leader and the Edge Nodes to the same value.
Create a unique token value with strong security. We recommend creating a string that contains at least 14 characters and includes uppercase letters, lowercase letters, and numbers.
Allowed Characters in the Leader Auth Token
Starting in version 4.6.1, these are the only allowed characters you can use in the auth token for your Cribl Edge Leader:
- a-z: Lowercase letters from a to z.
- A-Z: Uppercase letters from A to Z.
- 0-9: Digits from 0 to 9.
_
: Underscore.!
: Exclamation mark.-
: Hyphen (dash).
In version 4.5.1 and newer, you can’t use these special characters in the Leader auth token:
<
: Open angle bracket.>
: Close angle bracket."
: Double quotation mark.{
: Open brace.}
: Close brace.|
: Pipe.\
: Backslash.^
: Caret.'
: Single quotation mark.`
: Backtick.- Whitespace
One option is to generate a token value with a shell command. For example, on Linux or Mac OS, the following command generates a 32-character value:
head /dev/urandom | LC_ALL=C tr -dc A-Za-z0-9 | head -c32 | cut -c 1-
Once you have created a secure auth token value, you can change it:
- In the Auth token field in the UI.
- In the appropriate place in your Docker Compose file (if applicable).
- For the Leader via command line:
./cribl mode-master -u <token>
. If your Cribl Edge deployment uses High Availability (HA), you must use the command line (not the UI) with the command listed above. - For the Edge Nodes via command line:
./cribl mode-managed-edge -u <token>
for Cribl Edge../cribl mode-worker -u <token>
for Cribl Stream.
In the UI, you’ll find the Auth token setting by navigating to Global Settings. Select System, and then Distributed Settings to Leader Settings, as shown in the screenshot below.
