vault) provides a fast, scriptable approach to enable, disable, list, tune, and configure auth methods.
vault auth Subcommands
| Command | Description |
|---|---|
| enable | Mount a new auth method |
| disable | Unmount an existing auth method |
| list | Display all enabled auth method mounts |
| tune | Adjust configuration settings for a mount |
| help | Show help for a specific vault auth command |
Use
vault auth help <subcommand> for in-depth usage details and examples.Enabling an Auth Method
By default, Vault mounts an auth method at a path matching its type:-path:
Disabling an Auth Method
When disabling, reference the mount path, not the auth type:Specifying the wrong mount path will have no effect. Always verify the path with
vault auth list before disabling.Listing Enabled Auth Methods
Runvault auth list to view mounts, types, accessors, and descriptions:
Tuning an Auth Method
Adjust TTLs or other parameters withvault auth tune. For example, set a default lease TTL of 30 minutes and a max lease TTL of 1 hour:
Viewing Command Help
To get usage and flag information for any subcommand:Command Breakdown
Eachvault auth invocation follows this pattern:
vault— Vault CLI binaryauth— Auth methods subsystem<subcommand>—enable,disable,list,tune, orhelp[options]— Flags like-pathor-description<mount-path-or-type>— Type forenable; mount path fordisableandtune
Configuring an Enabled Auth Method
Once mounted, interact under theauth/ prefix. To create an AppRole role named vault-course: