Hashicorp Vault - List enabled authentication methods using the vault auth list command
                
            
            
            
             
            
            
                           
                
            
            
            
                
    
    
     
            
                
                    by
                    Jeremy Canfield  |  
                    Updated: July 18 2024
                    
                          |  Hashicorp Vault articles
                    
                    
                    
                
            
            This assumes the following has already been done.
- Hashicorp Vault has been installed
- Hashicorp Vault has been initialized
- Hashicorp Vault has been unsealed
- You have logged into the vault
After a clean install of Hashicorp Vault, the vault auth list command should return something like this, which shows there is a single authentication method enabled, token auth.
~]$ vault auth list
Path      Type     Accessor               Description                Version
----      ----     --------               -----------                -------
token/    token    auth_token_5013c38c    token based credentials    n/a
Let's say you use the vault auth enable approle command to enable approle authentication.
~]$ vault auth enable approle
Success! Enabled approle auth method at: approle/
Now the vault auth list command should include approle.
~]$ vault auth list
Path        Type       Accessor                 Description                Version
----        ----       --------                 -----------                -------
approle/    approle    auth_approle_5174b018    n/a                        n/a
token/      token      auth_token_5013c38c      token based credentials    n/a
Did you find this article helpful?
If so, consider buying me a coffee over at 