» auth enable
auth enable command enables an auth method at a given path. If an auth
method already exists at the given path, an error is returned. After the auth
method is enabled, it usually needs configuration. The configuration varies by
An auth method is responsible for authenticating users or machines and assigning them policies and a token with which they can access Vault. Authentication is usually mapped to policy. Please see the policies concepts page for more information.
Enable the auth method "userpass" enabled at "userpass/":
$ vault auth enable userpass Success! Enabled the userpass auth method at: userpass/
Create a user:
$ vault write auth/userpass/users/sethvargo password=secret Success! Data written to: auth/userpass/users/sethvargo
For more information on the specific configuration options and paths, please see the auth method documentation.
The following flags are available in addition to the standard set of flags included on all commands.
(string: "")- Human-friendly description for the purpose of this auth method.
(bool: false)- Mark the auth method as local-only. Local auth methods are not replicated nor removed by replication.
(string: "")- Place where the auth method will be accessible. This must be unique across all auth methods. This defaults to the "type" of the auth method. The auth method will be accessible at
(string: "")- Name of the auth method plugin. This plugin name must already exist in the Vault server's plugin catalog.