Vault agent Auto-Auth token file method
Note: This authentication method is tailored for the development experience, and to facilitate getting started with Vault Agent. Vault Agent should never be configured to use this auto-auth method in a production environment.
The token_file
method reads in an existing, valid Vault token from a file, and uses that
token in lieu of authenticating itself. While it's a first class auto-auth method for all intents
and purposes, it naturally doesn't authenticate itself, as it requires a token from elsewhere. Like
other auto-auth methods, Agent will attempt to renew the token, as appropriate.
This auto-auth method is especially useful when testing Vault Agent without needing to set up any authentication methods in Vault. For long-running Agent processes, we strongly recommend another auto-auth method, such that Agent is issuing its own authentication requests to Vault.
Configuration
token_file_path
(string: required)
- The path to the file with the token inside. This token cannot be a wrapping token.
Example configuration
An example configuration, using the token_file
method to enable auto-auth, follows: