Documentation

Create a management token

By default, management tokens are short-lived tokens issued by an OAuth2 identity provider that grant a specific user administrative access to your InfluxDB Cloud Dedicated cluster. However, for automation purposes, you can manually create management tokens that authenticate directly with your InfluxDB cluster and do not require human interaction with your identity provider.

For automation use cases only

The tools outlined below are meant for automation use cases and should not be used to circumvent your identity provider. Take great care when manually creating and using management tokens.

InfluxDB Cloud Dedicated requires that at least one user associated with your cluster and authorized through your OAuth2 identity provider to manually create a management token.

  1. If you haven’t already, download and install the influxctl CLI.

  2. Use the influxctl management create command to manually create a management token. Provide the following:

    • Optional: the --expires-at flag with an RFC3339 date string that defines the token expiration date and time–for example, 2024-11-20T00:00:00Z. If an expiration isn’t set, the token does not expire until revoked.
    • Optional: the --description flag with a description for the management token in double quotes "".
influxctl management create \
  --expires-at 
RFC3339_EXPIRATION
\
--description "
TOKEN_DESCRIPTION
"

Replace the following:

  • RFC3339_EXPIRATION: An RFC3339 date string to expire the token at–for example, 2024-11-20T00:00:00Z.
  • TOKEN_DESCRIPTION: Management token description.

Once created, the command returns the management token string.

Store secure tokens in a secret store

Management token strings are returned only on token creation. We recommend storing database tokens in a secure secret store. For example, see how to authenticate Telegraf using tokens in your OS secret store.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered