Hamid Ghaf 
							
						 
					 
					
						
						
							
						
						e55c18ed12 
					 
					
						
						
							
							adding copyright header ( #19555 )  
						
						... 
						
						
						
						* adding copyright header
* fix fmt and a test 
						
						
					 
					
						2023-03-15 09:00:52 -07:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						8a59b0ca06 
					 
					
						
						
							
							Remove deprecated CLI commands ( #6112 )  
						
						
						
						
					 
					
						2019-02-14 11:54:47 -08:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						05f92994ed 
					 
					
						
						
							
							Change deprecation warning to 1.1  
						
						
						
						
					 
					
						2018-10-23 02:44:57 -04:00 
						 
				 
			
				
					
						
							
							
								Jim Kalafut 
							
						 
					 
					
						
						
							
						
						c4dc44a920 
					 
					
						
						
							
							Fix 'vault auth' panic ( #5473 )  
						
						... 
						
						
						
						Running 'vault auth' with no parameters was panicking:
panic: assignment to entry in nil map
	github.com/hashicorp/vault/command/login.go:255 +0xdee
Now it will show help. 
						
						
					 
					
						2018-10-05 16:05:26 -07:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						9e3670a614 
					 
					
						
						
							
							Change deprecation warnings from 0.11 or later to 0.12. ( #5176 )  
						
						... 
						
						
						
						Also remove a deprecated parameter that we warned would be removed since
0.8. 
						
						
					 
					
						2018-08-24 12:16:37 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						9e92a1fc10 
					 
					
						
						
							
							Prevent warnings from showing in individual commands when format is not table, in addition to the existing hiding of higher-level deprecation warnings  
						
						
						
						
					 
					
						2018-05-23 17:13:39 -04:00 
						 
				 
			
				
					
						
							
							
								Prem Sichanugrist 
							
						 
					 
					
						
						
							
						
						f0fe87ce27 
					 
					
						
						
							
							Fix misspelling in vault auth deprecation message ( #4460 )  
						
						
						
						
					 
					
						2018-04-26 06:55:36 -04:00 
						 
				 
			
				
					
						
							
							
								Josh Soref 
							
						 
					 
					
						
						
							
						
						e43b76ef97 
					 
					
						
						
							
							Spelling ( #4119 )  
						
						
						
						
					 
					
						2018-03-20 14:54:10 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						acd1df2343 
					 
					
						
						
							
							Have deprecated commands pass on address and token helper too  
						
						
						
						
					 
					
						2018-03-16 13:52:08 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						9a7c7a88a3 
					 
					
						
						
							
							Change next major release of Vault to 0.11 or later to make it less scary  
						
						
						
						
					 
					
						2018-01-17 19:31:52 -05:00 
						 
				 
			
				
					
						
							
							
								Seth Vargo 
							
						 
					 
					
						
						
							
						
						fc535647fc 
					 
					
						
						
							
							Introduce auth as a subcommand  
						
						
						
						
					 
					
						2017-10-24 09:30:47 -04:00 
						 
				 
			
				
					
						
							
							
								Seth Vargo 
							
						 
					 
					
						
						
							
						
						9ff68fffa2 
					 
					
						
						
							
							Update auth command  
						
						
						
						
					 
					
						2017-10-24 09:28:06 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						79b63deaf5 
					 
					
						
						
							
							Change auth helper interface to api.Secret. ( #3263 )  
						
						... 
						
						
						
						This allows us to properly handle wrapped responses.
Fixes  #3217  
						
						
					 
					
						2017-08-31 16:57:00 -04:00 
						 
				 
			
				
					
						
							
							
								Brian Kassouf 
							
						 
					 
					
						
						
							
						
						41db07530a 
					 
					
						
						
							
							Add basic autocompletion ( #3223 )  
						
						... 
						
						
						
						* Add basic autocompletion
* Add autocomplete to some common commands
* Autocomplete the generate-root flags
* Add information about autocomplete to the docs 
						
						
					 
					
						2017-08-24 15:23:40 -07:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						ef0108853e 
					 
					
						
						
							
							Add token-only. ( #2971 )  
						
						
						
						
					 
					
						2017-07-12 15:04:34 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						997da9ae39 
					 
					
						
						
							
							Create and persist human-friendly-ish mount accessors ( #2918 )  
						
						
						
						
					 
					
						2017-06-26 18:14:36 +01:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						6b0ca941a6 
					 
					
						
						
							
							Add a no-store option to vault auth ( #2809 )  
						
						... 
						
						
						
						Fixes  #2746  
					
						2017-06-05 16:36:28 -04:00 
						 
				 
			
				
					
						
							
							
								Greg Parris 
							
						 
					 
					
						
						
							
						
						a705e5e783 
					 
					
						
						
							
							Typo corrections and tweaks to commands' help info  
						
						... 
						
						
						
						* Normalize "X arguments expected" messages
* Use "Vault" when referring to the product and "vault" when referring to an instance of the product
* Various minor tweaks to improve readability and/or provide clarity 
						
						
					 
					
						2017-03-25 12:51:12 -05:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						513f8b918d 
					 
					
						
						
							
							Add WithOptions methods to audit/auth enabling ( #2383 )  
						
						
						
						
					 
					
						2017-02-16 11:37:27 -05:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						3fc14e5662 
					 
					
						
						
							
							Don't panic on bad auth path  
						
						... 
						
						
						
						Fixes  #1860  
					
						2016-09-08 11:14:47 -04:00 
						 
				 
			
				
					
						
							
							
								Seth Vargo 
							
						 
					 
					
						
						
							
						
						638a8bead9 
					 
					
						
						
							
							Add more examples and cleanup docs for auth ( #1841 )  
						
						
						
						
					 
					
						2016-09-01 19:56:30 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						111a945fb3 
					 
					
						
						
							
							Avoid commas while printing policies  
						
						
						
						
					 
					
						2016-09-01 16:32:27 -04:00 
						 
				 
			
				
					
						
							
							
								Vishal Nayak 
							
						 
					 
					
						
						
							
						
						3558eca73c 
					 
					
						
						
							
							Merge pull request  #1531  from hashicorp/auth-mount-tune-params  
						
						... 
						
						
						
						Auth tune endpoints and config settings output from CLI 
						
						
					 
					
						2016-06-20 20:24:47 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						78665752aa 
					 
					
						
						
							
							Added -path option to help output  
						
						
						
						
					 
					
						2016-06-20 16:24:49 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						7672d69495 
					 
					
						
						
							
							Added '-path' option to 'vault auth' command  
						
						
						
						
					 
					
						2016-06-15 16:54:27 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						efaffa8f55 
					 
					
						
						
							
							Added 'sys/auth/<path>/tune' endpoints.  
						
						... 
						
						
						
						Displaying 'Default TTL' and 'Max TTL' in the output of 'vault auth -methods' 
						
						
					 
					
						2016-06-15 13:58:24 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						28272ca629 
					 
					
						
						
							
							Merge pull request  #1326  from hashicorp/sethvargo/hint_noreauth  
						
						... 
						
						
						
						Hint that you don't need to run auth twice 
						
						
					 
					
						2016-04-25 15:43:55 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						b44d2c01c0 
					 
					
						
						
							
							Use UseNumber() on json.Decoder to have numbers be json.Number objects  
						
						... 
						
						
						
						instead of float64. This fixes some display bugs. 
						
						
					 
					
						2016-04-20 18:38:20 +00:00 
						 
				 
			
				
					
						
							
							
								Seth Vargo 
							
						 
					 
					
						
						
							
						
						716f780cf1 
					 
					
						
						
							
							Hint that you don't need to run auth twice  
						
						... 
						
						
						
						This came up twice, in two different training courses. The UX is a
little confusing here on the CLI. Users are used to running:
    $ vault auth abcd-1234...
So when they auth using a method, the output leads them to believe the
need to "re-auth" as the generated token:
    $ vault auth -method=userpass username=foo password=bar
    Successfully authenticated!
    token: defg-5678...
A number of users then run:
    $ vault auth defg-5678
I've added some helpful text to hint this is not required if the method
is not "token". 
						
						
					 
					
						2016-04-13 19:45:48 +01:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						16c8f0b5ad 
					 
					
						
						
							
							Remove config from Meta; it's only used right now with the token helper.  
						
						
						
						
					 
					
						2016-04-01 16:02:18 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						48da40964c 
					 
					
						
						
							
							Move token helper out of meta  
						
						
						
						
					 
					
						2016-04-01 14:23:15 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						33326b30c3 
					 
					
						
						
							
							Move meta into its own package  
						
						
						
						
					 
					
						2016-04-01 13:16:05 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						dfbf2da1e2 
					 
					
						
						
							
							Restore the previous valid token if token authentication fails  
						
						
						
						
					 
					
						2016-03-18 14:43:16 -04:00 
						 
				 
			
				
					
						
							
							
								Nicki Watt 
							
						 
					 
					
						
						
							
						
						658b99c115 
					 
					
						
						
							
							Using LookupSelf() API method instead of raw HTTP call for auth command  
						
						
						
						
					 
					
						2015-12-28 01:38:00 +00:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						25f604f429 
					 
					
						
						
							
							Remove format parameter  
						
						
						
						
					 
					
						2015-10-02 14:10:24 -04:00 
						 
				 
			
				
					
						
							
							
								vishalnayak 
							
						 
					 
					
						
						
							
						
						bf017d28d1 
					 
					
						
						
							
							Github backend: enable auth renewals  
						
						
						
						
					 
					
						2015-10-02 13:33:19 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						4836e7ca4d 
					 
					
						
						
							
							Make TLS backend honor SystemView default values. Expose lease TTLs on read. Make auth command show lease TTL if one exists. Addresses most of  #527  
						
						
						
						
					 
					
						2015-09-18 14:01:28 -04:00 
						 
				 
			
				
					
						
							
							
								Jeff Mitchell 
							
						 
					 
					
						
						
							
						
						1f0458ffd5 
					 
					
						
						
							
							Add -no-verify option to CLI auth command, to avoid decrementing the token use count during auth.  
						
						
						
						
					 
					
						2015-08-18 19:22:17 -07:00 
						 
				 
			
				
					
						
							
							
								Armon Dadgar 
							
						 
					 
					
						
						
							
						
						18a23c9bef 
					 
					
						
						
							
							command: source general options docs from common source  
						
						
						
						
					 
					
						2015-06-30 12:01:23 -07:00 
						 
				 
			
				
					
						
							
							
								Karl Gutwin 
							
						 
					 
					
						
						
							
						
						3a5b8789b8 
					 
					
						
						
							
							CLI docs  
						
						
						
						
					 
					
						2015-06-30 09:04:57 -04:00 
						 
				 
			
				
					
						
							
							
								Armon Dadgar 
							
						 
					 
					
						
						
							
						
						0696bc47e0 
					 
					
						
						
							
							command/auth: warn earlier about VAULT_TOKEN  
						
						
						
						
					 
					
						2015-06-18 13:48:04 -07:00 
						 
				 
			
				
					
						
							
							
								Armon Dadgar 
							
						 
					 
					
						
						
							
						
						ee176b2f5d 
					 
					
						
						
							
							command/auth: warn about the VAULT_TOKEN env var.  Fixes   #195  
						
						
						
						
					 
					
						2015-06-17 19:19:02 -07:00 
						 
				 
			
				
					
						
							
							
								Mitchell Hashimoto 
							
						 
					 
					
						
						
							
						
						dcc84749d1 
					 
					
						
						
							
							command/auth, github: improve cli docs  
						
						... 
						
						
						
						/cc @sethvargo 
						
						
					 
					
						2015-06-16 10:05:11 -07:00 
						 
				 
			
				
					
						
							
							
								Armon Dadgar 
							
						 
					 
					
						
						
							
						
						aa867120b3 
					 
					
						
						
							
							Merge pull request  #251  from DavidWittman/auth-prompt-without-args  
						
						... 
						
						
						
						Prompt for auth token when no args provided 
						
						
					 
					
						2015-05-27 11:24:33 -07:00 
						 
				 
			
				
					
						
							
							
								David Wittman 
							
						 
					 
					
						
						
							
						
						deccef209c 
					 
					
						
						
							
							Add test for stdin input  
						
						... 
						
						
						
						Shamelessly borrowed this pattern from write_test.go 
						
						
					 
					
						2015-05-23 13:23:38 -05:00 
						 
				 
			
				
					
						
							
							
								David Wittman 
							
						 
					 
					
						
						
							
						
						d86fe916cb 
					 
					
						
						
							
							Read from stdin with auth command  
						
						
						
						
					 
					
						2015-05-23 13:23:37 -05:00 
						 
				 
			
				
					
						
							
							
								David Wittman 
							
						 
					 
					
						
						
							
						
						9797143038 
					 
					
						
						
							
							Prompt for auth token when no args provided  
						
						... 
						
						
						
						This makes `vault auth` work as documented:
> If no -method is specified, then the token is expected. If it is not
> given on the command-line, it will be asked via user input. If the
> token is "-", it will be read from stdin. 
						
						
					 
					
						2015-05-20 22:10:02 -05:00 
						 
				 
			
				
					
						
							
							
								Mitchell Hashimoto 
							
						 
					 
					
						
						
							
						
						6be7303053 
					 
					
						
						
							
							command/*: -tls-skip-verify [GH-130]  
						
						
						
						
					 
					
						2015-05-11 11:01:52 -07:00 
						 
				 
			
				
					
						
							
							
								David Wittman 
							
						 
					 
					
						
						
							
						
						e4ffd4ac27 
					 
					
						
						
							
							Check for invalid token when authing via cli  
						
						... 
						
						
						
						If a token does not exist, the Read request returns without an
error, but the secret returned is `nil`, so we need to check for
that.
Closes  #75  
						
						
					 
					
						2015-04-28 21:50:51 -05:00 
						 
				 
			
				
					
						
							
							
								Mitchell Hashimoto 
							
						 
					 
					
						
						
							
						
						128eea13f6 
					 
					
						
						
							
							command/*: fix spacing  
						
						
						
						
					 
					
						2015-04-28 09:15:21 -07:00