Commit Graph

523 Commits

Author SHA1 Message Date
Aaron Lehmann 2ac1d44be1 Merge pull request #154 from docker/diogo-add-remove-cert
Added cli cert command, changed keylisting to be a map
2015-07-28 20:13:32 -07:00
Diogo Mónica bbc9b5da75 Merge pull request #155 from docker/column_fix
gorm uses timestamp to represent time.Time, not datetime
2015-07-28 19:38:57 -07:00
Diogo Monica 59b02db807 Addressing nits
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 19:35:29 -07:00
David Lawrence 0661a87abb gorm uses timestamp to represent time.Time, not datetime
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-28 18:45:16 -07:00
Diogo Monica a23bac9130 Fix gofmt
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 18:25:37 -07:00
Diogo Monica 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
Nathan McCauley de98ed733f Merge pull request #152 from calavera/fix_random_ref
Use the random reader passed as argument to GenerateED25519Key.
2015-07-28 17:15:08 -07:00
David Calavera 740e5b095d Use the random reader passed as argument to GenerateED25519Key.
Rather than the global source.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-07-28 16:59:03 -07:00
Diogo Mónica 8403629743 Merge pull request #151 from jfrazelle/fix
fix
2015-07-28 16:32:32 -07:00
Jessica Frazelle f52a63a161 fix
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 16:06:09 -07:00
Diogo Monica 9e9da37d75 Removing default version from version.go
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 15:38:24 -07:00
Diogo Mónica 9592a19799 Merge pull request #150 from jfrazelle/makefile-compile-time-vars
Makefile compile time vars
2015-07-28 15:34:25 -07:00
Diogo Mónica 0e7d9271e3 Merge pull request #148 from docker/diogo-add-version
Adding version to notary
2015-07-28 15:34:13 -07:00
Diogo Monica 297fc42e66 Fixing tests
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 15:32:01 -07:00
Jessica Frazelle 9cd84b783b add changes for makefile for compile time vars
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 15:27:53 -07:00
Diogo Monica c4e4518d04 Adding version from version.go
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 15:27:41 -07:00
Diogo Monica 4cf84b3e46 Adding version to notary
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 15:27:41 -07:00
Diogo Mónica e0e574f9ff Merge pull request #147 from docker/import-export-cli
Import export cli
2015-07-28 15:26:17 -07:00
Aaron Lehmann c3cf6c4083 Add a flag to change the password of the root key when exporting it
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-28 15:08:41 -07:00
Diogo Mónica 659dd2a047 Merge pull request #149 from docker/misleading-passphrase-error
Avoid printing "Passphrases do not match" when passphrase is too short
2015-07-28 14:43:54 -07:00
Aaron Lehmann 3a1292a287 Avoid printing "Passphrases do not match" when passphrase is too short
Also, wrap the passphrase instructions paragraph at 80 columns, and
change the passphrase variable name in addKey to avoid a conflict with
the package name.

Fixes #146

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-28 14:41:27 -07:00
Aaron Lehmann 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
Aaron Lehmann 558f52530b Add key import and export commands
This adds four commands:

- notary keys export: export all keys, or keys for a particular GUN
  (with -g)
- notary keys export-root: export root key by ID
- notary keys import: import a zip file of keys
- notary keys import-root: import a single root key

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-28 13:46:45 -07:00
Aaron Lehmann 17a0373eb3 Merge pull request #142 from docker/diogo-improve-cli
Removed all local keystores, added configurable trust dir
2015-07-28 13:38:24 -07:00
Diogo Monica bdd6760c69 Changing key removal message
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 13:30:41 -07:00
Diogo Mónica 914cffd6af Merge pull request #145 from jfrazelle/have-your-html-back
add back html
2015-07-28 12:07:03 -07:00
Diogo Monica 5a57f5e970 Rebased off of master, working removes
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 11:55:53 -07:00
Jessica Frazelle 8d0086002e add back html
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 11:51:20 -07:00
Diogo Monica e7fb8ab46c Fixing golint
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-28 11:47:14 -07:00
Diogo Monica 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
Diogo Mónica 0d03d8a8e5 Merge pull request #143 from docker/remove_target
fixing remove
2015-07-28 11:39:30 -07:00
David Lawrence 529230369a tests for changelist client helpers
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-28 11:29:46 -07:00
David Lawrence 0f322c69a2 fixing remove
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-28 10:21:14 -07:00
Diogo Mónica 383f51134e Merge pull request #131 from docker/diogo-env-passphrases
Adding support for passphrases from env
2015-07-27 17:43:59 -07:00
Diogo Monica b9dd9efe12 Adding default timestamp key to be ECDSA
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-27 17:35:30 -07:00
David Lawrence 70f9f3277a viper config for notary signer
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-27 17:33:11 -07:00
David Lawrence c2571bed7d Merge pull request #105 from docker/imagename-regexp
Use correct regular expression for repository names in HTTP handlers
2015-07-27 15:07:35 -07:00
Aaron Lehmann f8dc88a372 Updating godeps
The github.com/docker/distribution/registry/api/v2 package needs to be
vendored now that it's used by notary-server.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-27 14:53:31 -07:00
Aaron Lehmann 02dfdaf197 Use correct regular expression for repository names in HTTP handlers
Import github.com/docker/distribution/registry/api/v2 to share the
regexps that the registry API uses.

Remove ErrUnauthorized in errors package, since it conflicts with one
defined in v2.

Fixes #92

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-27 14:51:59 -07:00
Diogo Monica 4546ded7e0 Adding support for passphrases from env
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-27 12:07:03 -07:00
Diogo Monica b73a7a4cfa Removing comments
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-27 09:55:18 -07:00
Diogo Monica a452ac4eb9 Changing SQL unique index
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-27 09:46:14 -07:00
Nathan McCauley 32e9b9191f Merge pull request #130 from docker/signer_persistence
Signer persistence
2015-07-27 09:30:06 -07:00
Diogo Monica 0fb0877c3c Adding new jose dependency, fixing nits
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-26 20:32:47 -07:00
Diogo Monica a2472a5a72 Addressed comments, changed to PBES2, added key rotation
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-26 09:18:08 -07:00
Diogo Monica c7e421a501 Fixing unique key_id entry enforcement
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 12:36:17 -07:00
Diogo Monica e568babc0a Added one more test, and fixed delete bug
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 06:47:04 -07:00
David Lawrence 47f651ef8a fixing timestamp key retrieval
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-24 18:05:46 -07:00
Diogo Monica 37bced3efa Changed signer to use DB, added initial SQL for private_keys
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 05:49:02 -07:00
Diogo Monica a0f5411bcf Remove old GORM attempt from server
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 05:47:01 -07:00