API Tokens

API tokens provide specific permissions and limits when using and accessing LogScale through any of the APIs. These API tokens provide fine-grained control over the capabilities, IP access and expiration of the API token. For example, you can create an API token that only has permission to create users and expires after one hour. In contrast a Personal API token has all the abilities and permissions of the roles applied to the user, with no expiry.

Each API token is configured and created with one or more of the following parameters:

Using these combinations of parameters, examples of the API tokens that can be created include:

  • A token for creating a new repository that can only be used by clients in the local network.

  • A fleet management token that expires after 1 day for use during automated deployments.

  • A token to update S3 storage parameters granted to an admin for AWS.

Token Type Named Permission Model Supports Expiry Supports IP Filter Enable/Disable Updating Permissions
Personal API Token No Inherits all permissions of the user Yes Yes Yes N/A
Repository and View API Token Yes Specific repository and view permissions Yes Yes Yes Yes
Organization API Token Yes Specific organization permissions Yes Yes Yes Yes
System token Yes Specific system permissions Yes Yes Yes Yes

Because API tokens provide access to the LogScale instance through the API, the following controls exist around all tokens:

  • Expired tokens cannot be extended or renewed.

  • Tokens that have been created with an IP filter cannot have the filter removed.

  • The token secret cannot be modified, but it can be 'reset', generating a new random string to be used for accessing the API.

  • Token creation and usage is tracked within the Audit Logging using tokenType.