Inspecting Existing Tokens
First, verify your current root token accessor:Creating and Revoking a Service Token
To create a standard service token with a specific policy:Granting
list and revoke permissions on auth/token/accessors lets users revoke any token by accessor. Assign this capability with care.Creating a Batch Token
Batch tokens are designed for high-performance use cases. They are longer, non-renewable, and have no accessor.- Prefix
hvb.indicates a HashiCorp Vault Batch Token. - No accessor means it won’t appear in
auth/token/accessors.
Inspecting the Batch Token
Retrieve its metadata:orphan: false, this token has a parent and cannot be used across performance-replicated clusters.
Creating an Orphaned Batch Token
An orphaned batch token has no parent, making it usable across performance clusters:Batch Token Characteristics
Batch tokens cannot be renewed or revoked. Plan token lifecycles accordingly.
Using a Batch Token
Authenticate and export the token:You’ve now learned how to create, inspect, and securely use Vault Batch Tokens. For more details, see the Vault Tokens documentation.