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
Diogo Monica
e81fc405f6
Refactored keystore, created keydbstore and added tests
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 05:46:40 -07:00
Diogo Monica
9e11389b53
Adding new godeps
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-24 05:45:52 -07:00
David Lawrence
ee383ced9c
adding db queries
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-24 14:35:45 -07:00
Derek McGowan
77bced079e
Merge pull request #128 from docker/err_to_debug
...
change error log to debug
2015-07-23 14:29:40 -07:00
David Lawrence
503a1b8a6e
change error log to debug
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-23 14:24:46 -07:00
Diogo Mónica
7e14c717be
Merge pull request #127 from dmcgowan/passphrase-update
...
Add passphrase function with file input
2015-07-23 13:45:34 -07:00
Derek McGowan
71aaf5c84d
Add passphrase function with file input
...
Updates the prompt receiver to take in the in and out files from arguments.
The default function uses stdin and stdout.
Fixed a typo in comment from "directiory" to "directory".
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-23 13:43:02 -07:00
Derek McGowan
9926ead788
Merge pull request #126 from docker/retry_threshold_err
...
ErrSigVerifyFail isn't used, we should be retrying on ErrRoleThreshol…
2015-07-23 12:00:01 -07:00
David Lawrence
94de318202
ErrSigVerifyFail isn't used, we should be retrying on ErrRoleThreshold which means we didn't have enough keys to validate the signatures
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-23 11:57:40 -07:00
Diogo Monica
b4b364df5f
Removing unused hex_bytes.go
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-23 03:45:05 -07:00
Diogo Mónica
6c92ca7f86
Merge pull request #124 from docker/diogo-fixing-missing-keys-error
...
Adding typed error for missing keys
2015-07-23 01:56:40 -07:00
Nathan McCauley
11af29d8db
update tests to check for new types
...
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-23 01:54:14 -07:00
Diogo Mónica
29ef721767
Merge pull request #112 from docker/skip-tls-verify-option
...
Only skip TLS certificate verification if this is explicitly specified in the config
2015-07-23 00:36:17 -07:00
Diogo Monica
c5ffbd1055
Adding typed error for missing keys
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-23 00:09:35 -07:00
Nathan McCauley
4e8fb88e56
Merge pull request #123 from docker/diogo-remove-stupid-debug-message
...
Removing Writing data debug line
2015-07-22 23:52:44 -07:00
Diogo Monica
85898a578d
Removing Writing data debug line
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 23:41:18 -07:00