d67a7e128c 
								
							 
						 
						
							
							
								
								Refactor the notary command line to not use global mutable state, and to not exit on error.  
							
							... 
							
							
							
							This way we can test the command more easily (we want to test the error, as opposed to
just killing the test).
Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2016-02-03 12:01:16 -08:00  
				
					
						
							
							
								 
						
							
								564f8d06d3 
								
							 
						 
						
							
							
								
								Merge pull request  #515  from docker/roles-for-targets  
							
							... 
							
							
							
							Roles for targets via notary CLI 
							
						 
						
							2016-01-29 16:08:29 -08:00  
				
					
						
							
							
								 
						
							
								bb9ef929de 
								
							 
						 
						
							
							
								
								Add --roles flags to targets commands  
							
							... 
							
							
							
							Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com> 
							
						 
						
							2016-01-28 09:59:04 -08:00  
				
					
						
							
							
								 
						
							
								6b31789fe5 
								
							 
						 
						
							
							
								
								Tiny refactor: to keep code style consistent  
							
							... 
							
							
							
							The other CLI commands about tuf are all begin with cmdTufXXX
which I think `verify` should be the same too.
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2016-01-28 20:13:39 +08:00  
				
					
						
							
							
								 
						
							
								12d3eb49ae 
								
							 
						 
						
							
							
								
								Change default log level to fatal, change verbose to error level and add  
							
							... 
							
							
							
							debug flag for debug level
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com> 
							
						 
						
							2016-01-25 16:13:42 -08:00  
				
					
						
							
							
								 
						
							
								cf0bb5a9be 
								
							 
						 
						
							
							
								
								Merge pull request  #440  from docker/diogo-cli-adding-delegations  
							
							... 
							
							
							
							delegation command for notary-cli 
							
						 
						
							2016-01-19 13:54:56 -08:00  
				
					
						
							
							
								 
						
							
								ca67f1e71a 
								
							 
						 
						
							
							
								
								client library deletion functionality, and integration into remove cert  
							
							... 
							
							
							
							CLI
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com> 
							
						 
						
							2016-01-19 11:18:33 -08:00  
				
					
						
							
							
								 
						
							
								138d6cea09 
								
							 
						 
						
							
							
								
								Add, remove, and list delegation command.  TUF changelist action change  
							
							... 
							
							
							
							for deletions (force vs. individual items)
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com> 
							
						 
						
							2016-01-18 16:24:45 -08:00  
				
					
						
							
							
								 
						
							
								ca1623e17b 
								
							 
						 
						
							
							
								
								Update CLI rotate key command to optionally rotate a single key.  
							
							... 
							
							
							
							This makes it possible to delegate snapshots key management to the
server, and to reclaim the responsibility.
Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-12-14 17:17:23 -08:00  
				
					
						
							
							
								 
						
							
								2ce0232972 
								
							 
						 
						
							
							
								
								Refactor notary CLI keys cmds to use less globally mutable state.  
							
							... 
							
							
							
							This way we can test the command functions more easily.
Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-12-14 17:17:23 -08:00  
				
					
						
							
							
								 
						
							
								238ee32c78 
								
							 
						 
						
							
							
								
								Set the default output for all cobra commands to be STDOUT  
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-11-15 02:46:29 -08:00  
				
					
						
							
							
								 
						
							
								4c2fcda620 
								
							 
						 
						
							
							
								
								Addressing small nits  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Diogo Monica <diogo@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:12:48 -08:00  
				
					
						
							
							
								 
						
							
								0344dfc038 
								
							 
						 
						
							
							
								
								Making tests pass  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Diogo Monica <diogo@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:12:31 -08:00  
				
					
						
							
							
								 
						
							
								5b7480f599 
								
							 
						 
						
							
							
								
								Adding default to notary key generate and configurable trust dir from  
							
							... 
							
							
							
							config
Signed-off-by: Diogo Monica <diogo.monica@gmail.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Diogo Monica <diogo.monica@gmail.com> (github: endophage) 
							
						 
						
							2015-11-12 01:12:26 -08:00  
				
					
						
							
							
								 
						
							
								f9f118d088 
								
							 
						 
						
							
							
								
								Changing env to be TARGETS  
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Diogo Monica <diogo.monica@gmail.com> (github: endophage) 
							
						 
						
							2015-11-12 01:12:04 -08:00  
				
					
						
							
							
								 
						
							
								087f13ae7d 
								
							 
						 
						
							
							
								
								Normalize and elaborate on the command line help.  
							
							... 
							
							
							
							Ensures that the notary command line help text start with capital
letters, and add information about hardware keys and online/offline operation.
Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:10:03 -08:00  
				
					
						
							
							
								 
						
							
								313ae80345 
								
							 
						 
						
							
							
								
								Remove unused rawOutput option in notary CLI.  
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:09:59 -08:00  
				
					
						
							
							
								 
						
							
								e4e099ae00 
								
							 
						 
						
							
							
								
								Just ignore the `-s` notary CLI option instead of erroring.  
							
							... 
							
							
							
							Currently commands that do not require online access will error if
this option is passed.  Do not error anymore, just ignore.
Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:09:53 -08:00  
				
					
						
							
							
								 
						
							
								1f1868d3ee 
								
							 
						 
						
							
							
								
								Adding integration tests for notary client.  
							
							... 
							
							
							
							This runs through the basic notary init/add/publish/etc. workflow,
and some basic key workflows.
Note that this does work with the Yubikey, in that created keys while
testing do not require touch.
Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>
Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:09:40 -08:00  
				
					
						
							
							
								 
						
							
								be4c0669c1 
								
							 
						 
						
							
							
								
								move import/export to cryptoservice and add import to yubikey  
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-11-12 01:09:31 -08:00  
				
					
						
							
							
								 
						
							
								a5e64ecf03 
								
							 
						 
						
							
							
								
								Do not use the viper singleton instance everywhere  
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-10-19 11:50:04 -07:00  
				
					
						
							
							
								 
						
							
								aeb96f27a2 
								
							 
						 
						
							
							
								
								Adding client-side root-ca server and config  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-10-12 17:13:39 -07:00  
				
					
						
							
							
								 
						
							
								7bee606f43 
								
							 
						 
						
							
							
								
								Add support for 'notary status' command to show details about unpublished changes  
							
							... 
							
							
							
							Signed-off-by: Ryan Cox <ryan.a.cox@gmail.com> 
							
						 
						
							2015-10-08 22:07:36 -07:00  
				
					
						
							
							
								 
						
							
								53467fd417 
								
							 
						 
						
							
							
								
								Merge pull request  #85  from docker/simple_test_script  
							
							... 
							
							
							
							add a simple test script, eventually this can grow to be our CI script 
							
						 
						
							2015-10-08 16:58:44 -07:00  
				
					
						
							
							
								 
						
							
								1ce6aa4c34 
								
							 
						 
						
							
							
								
								Merge pull request  #196  from ggtools/birthday-pr  
							
							... 
							
							
							
							Minor improvements on server url 
							
						 
						
							2015-09-24 17:15:01 -07:00  
				
					
						
							
							
								 
						
							
								f9508e37e0 
								
							 
						 
						
							
							
								
								Add env var for default server url  
							
							... 
							
							
							
							The default server URL can now be set using the `NOTARY_SERVER_URL`
environment variable. Specifying the `--server` parameter still
override this value.
Signed-off-by: Christophe Labouisse <christophe@labouisse.org> 
							
						 
						
							2015-09-19 17:25:12 +02:00  
				
					
						
							
							
								 
						
							
								36594b360c 
								
							 
						 
						
							
							
								
								Add missing --server option to verify.  
							
							... 
							
							
							
							Verify was making call to the server but didn't have a way to
override the default value.
Signed-off-by: Christophe Labouisse <christophe@labouisse.org> 
							
						 
						
							2015-09-19 17:15:08 +02:00  
				
					
						
							
							
								 
						
							
								f7d0ea70af 
								
							 
						 
						
							
							
								
								Use pure-go library to get user home directory.  
							
							... 
							
							
							
							Fixes  #194 .
Signed-off-by: Joe Beda <joe.github@bedafamily.com> 
						
							2015-09-10 16:07:38 -07:00  
				
					
						
							
							
								 
						
							
								af2da799bf 
								
							 
						 
						
							
							
								
								Added support for env passphrases and improved integration script  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-30 16:22:14 -07:00  
				
					
						
							
							
								 
						
							
								27461ad9fb 
								
							 
						 
						
							
							
								
								Added cli cert command, changed keylisting to be a map, fixed key removal  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 18:14:29 -07:00  
				
					
						
							
							
								 
						
							
								297fc42e66 
								
							 
						 
						
							
							
								
								Fixing tests  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 15:32:01 -07:00  
				
					
						
							
							
								 
						
							
								c4e4518d04 
								
							 
						 
						
							
							
								
								Adding version from version.go  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 15:27:41 -07:00  
				
					
						
							
							
								 
						
							
								4cf84b3e46 
								
							 
						 
						
							
							
								
								Adding version to notary  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 15:27:41 -07:00  
				
					
						
							
							
								 
						
							
								3af03daa42 
								
							 
						 
						
							
							
								
								Change "notary keys" command to "notary key"  
							
							... 
							
							
							
							This makes the full subcommand names smoother; for example "notary key
generate" instead of "notary keys generate".
Add a "notary key list" subcommand to list keys, so "notary key"
lists the possible subcommands, instead of needing to use "notary key
-h".
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> 
							
						 
						
							2015-07-28 13:46:45 -07:00  
				
					
						
							
							
								 
						
							
								e7fb8ab46c 
								
							 
						 
						
							
							
								
								Fixing golint  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 11:47:14 -07:00  
				
					
						
							
							
								 
						
							
								579f51866b 
								
							 
						 
						
							
							
								
								Removed all local keystores, added configurable trust dir  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-28 11:47:14 -07:00  
				
					
						
							
							
								 
						
							
								75ae5b65df 
								
							 
						 
						
							
							
								
								remove incorrect TODO comment  
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-07-20 11:00:24 -07:00  
				
					
						
							
							
								 
						
							
								38fe6bd45b 
								
							 
						 
						
							
							
								
								gofmt across the baord  
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-07-20 11:00:24 -07:00  
				
					
						
							
							
								 
						
							
								5df1eb21f3 
								
							 
						 
						
							
							
								
								keystore aliasing, take 1  
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-07-20 10:58:20 -07:00  
				
					
						
							
							
								 
						
							
								23b7e8c6af 
								
							 
						 
						
							
							
								
								Update keyfilestore to use passwordRetriever  
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-07-20 10:58:16 -07:00  
				
					
						
							
							
								 
						
							
								6bff14a679 
								
							 
						 
						
							
							
								
								refactoring NotaryClient out  
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-09 17:58:09 -07:00  
				
					
						
							
							
								 
						
							
								93f7d9911f 
								
							 
						 
						
							
							
								
								Implementing ListTargets  
							
							
							
						 
						
							2015-07-09 17:58:08 -07:00  
				
					
						
							
							
								 
						
							
								30c0856266 
								
							 
						 
						
							
							
								
								Remove config from libnotary  
							
							
							
						 
						
							2015-07-09 17:58:08 -07:00  
				
					
						
							
							
								 
						
							
								1346296869 
								
							 
						 
						
							
							
								
								Initial libnotary refactor  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com>
Ported more functionality to libnotary 
							
						 
						
							2015-07-09 17:57:48 -07:00  
				
					
						
							
							
								 
						
							
								d5cdeb93bb 
								
							 
						 
						
							
							
								
								Adding EncryptedFileStore and changing interfaces  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-05 21:02:16 -07:00  
				
					
						
							
							
								 
						
							
								fd8471038c 
								
							 
						 
						
							
							
								
								Added a keyfilestore with encrypted PEM support  
							
							
							
						 
						
							2015-07-04 12:17:54 -07:00  
				
					
						
							
							
								 
						
							
								89379a728c 
								
							 
						 
						
							
							
								
								adding timestamping and some general cleanup  
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-03 15:38:09 -07:00  
				
					
						
							
							
								 
						
							
								a0e63bcaeb 
								
							 
						 
						
							
							
								
								Fixed verification to use exact match and fallback to CA + tests  
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-06-30 19:38:52 -07:00  
				
					
						
							
							
								 
						
							
								db847379df 
								
							 
						 
						
							
							
								
								Major refactor the the FileStore  
							
							
							
						 
						
							2015-06-20 23:04:34 -04:00  
				
					
						
							
							
								 
						
							
								e46a95227c 
								
							 
						 
						
							
							
								
								rename vetinari to notary  
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-06-19 11:01:19 -07:00