Commit Graph

59 Commits

Author SHA1 Message Date
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
David Lawrence
8a97c99c1e updating gotuf
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-22 19:37:23 -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
David Lawrence
1fc3257f6e updating gotuf dep with some better http error handling.
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-22 13:19:52 -07:00
David Lawrence
1f53e171bc updating vendored gotuf with updating signing error messages
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-21 14:04:05 -07:00
David Lawrence
8b2888d122 latest vendored gotuf
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-21 13:57:21 -07:00
David Lawrence
b44e835275 update default expiry times to those agreed on
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-20 14:59:19 -07:00
David Lawrence
0e2fe2137b updating gotuf dep
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-20 11:23:07 -07:00
Diogo Monica
7de1acfc04 Bump gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-18 01:48:06 -07:00
David Lawrence
b561f347ed updating errors to use distribution's errcode package
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-17 18:02:56 -07:00
David Lawrence
d453c6548d client side of multi TUF file atomic update
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-17 17:48:06 -07:00
Aaron Lehmann
d2ea9cc0d5 Updates to notary for gotuf's split of PublicKey and PrivateKey interfaces
Functions should now take data.PublicKey or data.PrivateKey instead of
data.Key.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-17 11:35:22 -07:00
Aaron Lehmann
125d72fd77 Big refactor to make signer use cryptoservices
- Add MemoryFileStore, a partial FileStore implementation that doesn't
  persist on disk.

- Create a KeyStore interface that allows pluggable key store types. Use
  this interface in the cryptoservice implementation.

- Add KeyMemoryStore, which uses MemoryFileStore to provide a KeyStore.

- Add GetKey and DeleteKey functions to cryptoservice.CryptoService.

- Refactor the hardware RSA signing service as a CryptoService.

- Replace custom ed25519 code with cryptoservice.CryptoService.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-17 09:33:19 -07:00
Diogo Monica
321b155596 Godeps update, removed dependency on rufus
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-14 00:39:03 -07:00
David Lawrence
81ab80d0bf adding sqlmock godep
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-13 18:19:31 -07:00
Diogo Mónica
935b9a9366 Merge pull request #47 from docker/cryptoservice-refactor
Refactor crypto service
2015-07-13 15:29:59 -07:00
Diogo Monica
8dcea65731 Adding new gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-13 15:28:33 -07:00
Aaron Lehmann
ea298b4999 Update gotuf to 875881b1d0ce625f54318e3ebfd79414a6b5e285
This brings in the Signer removal.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-13 14:42:24 -07:00
David Lawrence
da59198191 adding htpasswd auth to support the same set of mechanisms as distribution
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-13 14:17:24 -07:00
Derek McGowan
c87caf3979 Use uuid library from distribution
Distribution updated context library to use its own uuid library which does not panic on entropy exhaustion.
Updated to use latest context library from distribution.
Updated auth to match context and uuid library version.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-13 10:09:06 -07:00
Diogo Monica
373e4f6c76 Adding term as new dependency
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-12 23:00:20 -07:00
Diogo Monica
2522b3f6df Updating gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-12 22:49:35 -07:00
Diogo Monica
5a7e1ca7f2 Vendoring new gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-10 15:17:44 -07:00
David Lawrence
d1b09962f1 using roundtripper in notary client
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-10 10:02:38 -07:00
Diogo Monica
1ae9cf057e Removing dangling temp test directories 2015-07-09 21:03:54 -07:00
Diogo Monica
9ae667c9aa Adding new vendored gotuf
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-09 18:57:53 -07:00
David Lawrence
3bcc0e1d4d updating wo make notary work with rufus again
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-07-09 17:58:09 -07:00
Diogo Monica
e66dc12eca More refactor 2015-07-09 17:58:08 -07:00
David Lawrence
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
David Lawrence
9c0db05e6a updating gotuf for the VerifyRoot function 2015-06-28 16:35:24 -07:00
Nathan McCauley
e46a95227c rename vetinari to notary
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-06-19 11:01:19 -07:00
David Lawrence
c9df04c4c0 remove actually working now 2015-06-18 19:44:33 -07:00
David Lawrence
06abf201c3 adding remove 2015-06-18 19:33:47 -07:00
David Lawrence
6bb833f7ff fixing version check 2015-06-18 14:39:48 -07:00
David Lawrence
5b64c7b084 updating calls to CryptoService.Create to pass role name 2015-06-18 13:53:10 -07:00
David Lawrence
e434232709 list works 2015-06-17 23:45:51 -07:00
David Lawrence
322f60b1ba tuf push working 2015-06-17 22:10:07 -07:00
David Lawrence
bb32390698 adding target now works 2015-06-17 21:01:24 -07:00
David Lawrence
291ff47e4f updating gotuf with working handling of newlines in keys 2015-06-17 19:22:14 -07:00
David Lawrence
e11cab0519 tuf init working 2015-06-17 18:19:39 -07:00
Diogo Monica
26f694196e Fixing Godeps 2015-06-17 11:48:25 -07:00
Derek McGowan
a7164b638b Update godeps
Godeps now has the collection of dependencies from the different cmds

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-06-17 11:16:11 -07:00
David Lawrence
00a4ef9d15 adding mysql driver 2015-06-16 12:21:01 -07:00
David Lawrence
cc0782d3d2 rewriting imports to 'gotuf', adding config to set log level, making
restart/shutdown cleanup connections after timeout, updating godeps
2015-06-11 16:30:25 -07:00
David Lawrence
0bc0b4470c adding logrus 2015-05-12 14:08:15 -07:00
David Lawrence
7f5250b604 more init fixes 2015-04-29 11:27:16 -07:00
David Lawrence
7bce36a2c5 godep update for repo init 2015-04-29 11:19:49 -07:00
Nathan McCauley
c7ae7435c4 public key type canonicalization 2015-04-28 17:28:48 -07:00
Nathan McCauley
9e5b845ab8 another godep update 2015-04-28 17:04:23 -07:00
Nathan McCauley
97e83d3238 bump godeps 2015-04-28 17:01:39 -07:00