From any page in Astra Streaming, select the Organizations dropdown.
In the main dropdown, select Organization Settings.
From your Organization page, select Token Management.
Select the role you want to attach to your token. The permissions for your selected role will be displayed.
Select Generate Token. Astra Streaming will generate your token and display the Client ID, Client Secret, and Token.
Download your Client ID, Client Secret, and Token.
After you navigate away from the page, you won’t be able to download your Client ID, Client Secret, and Token again.
In your command-line interface associated with your environment, paste the following environment variables copied for Astra Streaming:
export ASTRA_STREAMING_ID=<database_id> export ASTRA_STREAMING_REGION=<database_region> export ASTRA_STREAMING_KEYSPACE=<keyspace_name> export ASTRA_STREAMING_TOKEN=<app_token>
If you need to limit access to your database, you can delete a token.
Select the overflow menu for the token you want to delete.
Select Delete to delete that token.
If necessary, generate a new token for the same user role.
To generate, copy, or delete Pulsar JSON Web Tokens (JWTs) within your streaming tenant, visit the Token Management section of your streaming tenant’s Settings page.
Select Create Token to generate a Pulsar token for this streaming tenant.
Token duration ranges from 7 days to never expiring.
If you choose a token with an expiration, ensure you replace your token with a new, valid Pulsar token before the expiration date.
Select the clipboard icon to copy a Pulsar token to your clipboard.
Select the trashcan icon to delete a Pulsar token.
Ensure you update your application with a new, valid Pulsar token before deletion. Applications using the deleted Pulsar token will no longer be able to connect to Astra Streaming.
For more on JSON Web Tokens, see the JWT documentation.