Commit Graph

790 Commits

Author SHA1 Message Date
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
Nathan McCauley 9390014ee0 Merge pull request #121 from docker/diogo-adding-truststore-tests
Adding tests for CertsToRemove, and move tests around
2015-07-22 23:27:25 -07:00
Diogo Monica ea2476ac6c Fixing minor nits
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 22:47:22 -07:00
Diogo Monica 8841736539 Adding thorough root certificate rotation tests
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 20:50:34 -07:00
David Lawrence e780c4fe3c Merge pull request #122 from docker/gotuf_c5ce5
updating gotuf
2015-07-22 19:41:27 -07:00
David Lawrence 8a97c99c1e updating gotuf
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-22 19:37:23 -07:00
Diogo Monica 3154aa9d29 Adding tests for CertsToRemove, and move tests around
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 19:08:01 -07:00
Diogo Mónica 1c54f699d1 Merge pull request #120 from docker/update_error_type
add ErrExpired to notary client to translate from gotuf ErrExpired
2015-07-22 18:57:45 -07:00
David Lawrence 6fd60f88d1 add ErrExpired to notary client to translate from gotuf ErrExpired
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-22 18:54:00 -07:00
Diogo Mónica e335489b01 Merge pull request #119 from docker/abridge-key-ids
Abridge key ids on print, warn about key generation
2015-07-22 18:44:58 -07:00
Nathan McCauley 8fe2f4193e Abridge key ids on print, warn about key generation
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-22 18:39:46 -07:00
David Lawrence d790da7752 Merge pull request #118 from docker/proto_update
Proto update
2015-07-22 17:18:56 -07:00
Diogo Monica a2a0385c53 Fixing rsa hardware crypto service nil-interface bug
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 17:17:02 -07:00
Diogo Monica be1d365626 Changed debug key type
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 16:51:55 -07:00
Diogo Monica 6f4e6fffea Fixing protobufs and signer
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-22 16:51:55 -07:00
David Lawrence 81d69a4f5c update signature proto to include sig algorithm
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-22 16:51:55 -07:00
Nathan McCauley 65916d3fc4 Merge pull request #117 from dmcgowan/add-remaining-passphrase-failure
Add missing use of invalid passphrase error
2015-07-22 16:14:25 -07:00
Diogo Mónica f0912247ed Merge pull request #116 from dmcgowan/invalid-password
Return invalid password when cannot retrieve passphrase
2015-07-22 15:39:31 -07:00