Ying Li
08c6669473
Add integration tests that build the docker images and the client binary
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-24 10:37:36 -07:00
Ying Li
5617ee4720
Cross compile notary binaries inside a Docker container
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-24 10:37:36 -07:00
Ying Li
d60cdec18b
Merge pull request #586 from docker/ci-docker-test
...
Add script that "vendors" notary into docker and runs trust integration tests
2016-03-23 22:54:24 -07:00
Ying Li
376acc8ef8
Use GOPATH to figure out the docker and notary dirs in the fake vendor script
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 22:23:09 -07:00
Ying Li
a434db4064
Add script that "vendors" notary into docker and runs trust integration tests.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 22:20:38 -07:00
David Lawrence
7fe071b57a
Merge pull request #636 from docker/notary-dct-doc-update
...
Update notary docs to reflect DCT delegations behavior
2016-03-23 21:16:13 -07:00
Riyaz Faizullabhoy
be72081f84
Formatting and wording fixes from review
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-23 17:47:18 -07:00
Riyaz Faizullabhoy
68066cc857
Update notary docs to reflect DCT delegations behavior
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-23 17:47:17 -07:00
Ying Li
a6c0e7d5ab
Merge pull request #568 from docker/server-generates-snapshot-timestamp-immediately
...
Server generates snapshot and timestamp immediately
2016-03-23 14:13:47 -07:00
David Lawrence
26fbc45780
fixing a panic in relation to the json.RawMessage updates
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-03-23 13:40:38 -07:00
Ying Li
e8cdc32f0b
Clean up after rebase and address review comments
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
210eab829f
Error (and add tests for this) if the root in the server store is corrupt
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
3b80293a0c
Add test cases generating a timestamp from previous timestamps
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
433a298a8b
Simplify the validateRoot logic in server validators
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
c0796f17ef
Rename 'validateSnapshot' to 'loadAndValidateSnapshot' since it loads now
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
d3bb063fb2
Update the server to generate the timestamp on update, just like snapshot.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
1b919fac35
Change GetOrCreateSnapshot to only create a new snapshot if the old is expired.
...
This is in preparation for the server validation automatically generating a snapshot
when an update is applied.
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
Ying Li
49be037bdd
Change GetOrCreateTimestamp to only create a new timestamp if the old is expired.
...
This is in preparation for the server validation automatically generating a timestamp
when an update is applied.
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-23 13:24:52 -07:00
David Lawrence
9ff2558f81
unifying timestamp generation code so server/timestamp/timestamp.go isn't going its own unique version
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-03-23 13:24:52 -07:00
David Lawrence
d09e047d19
Merge pull request #646 from endophage/vendor_update
...
update vendoring
2016-03-23 12:42:47 -07:00
David Lawrence
9bac73b7f7
update vendoring
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-03-23 11:34:39 -07:00
David Lawrence
2e70ce0b3b
Merge pull request #641 from docker/one-key-per-line
...
Print one key and/or path per line when listing delegations
2016-03-22 14:48:29 -07:00
David Lawrence
151b72c990
Merge pull request #645 from docker/delegation-password-env
...
Delegation password environment var
2016-03-22 11:20:11 -07:00
Riyaz Faizullabhoy
a5dede1c2f
Update docs with delegation env var
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-22 10:21:15 -07:00
Riyaz Faizullabhoy
d1dbc3dbd4
Add delegation passphrase env var
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-22 10:09:38 -07:00
David Lawrence
fe7742ca70
Merge pull request #639 from docker/rawmessage_pointer_toplevel
...
update top level Signed.Signed to be a *json.RawMessage
2016-03-21 11:40:00 -07:00
Riyaz Faizullabhoy
731710f628
Print one key and/or path per line when listing delegations
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 16:54:07 -07:00
David Lawrence
bfee37d471
update top level Signed.Signed to be a *json.RawMessage
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-03-18 16:18:53 -07:00
David Lawrence
c0c7dd38ac
Merge pull request #638 from docker/fix-arg-order
...
Fix Create arg order for signer
2016-03-18 14:34:33 -07:00
Riyaz Faizullabhoy
c483853c79
Fix Create arg order for signer
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 14:08:11 -07:00
Riyaz Faizullabhoy
5ff849ee82
Merge pull request #552 from docker/flatten-keystore
...
Flatten keystore by adding key info map
2016-03-18 11:57:20 -07:00
Riyaz Faizullabhoy
c54183bc27
Add error case to keyInfo generation, test yubikey backup, fix rebase conflicts
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:35:34 -07:00
Riyaz Faizullabhoy
e1613cdcb2
Address review comments
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:07 -07:00
Riyaz Faizullabhoy
8336bba114
Change passwd to add back to the same keystore type, special handling
...
for yubi
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:07 -07:00
Riyaz Faizullabhoy
be66056edb
change API to specify keyID instead of name
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:07 -07:00
Riyaz Faizullabhoy
5984b88f14
configure backing up logic for yubikey
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:07 -07:00
Riyaz Faizullabhoy
1ed9c352d7
change ks.AddKey to be consistent with CryptoService
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:06 -07:00
Riyaz Faizullabhoy
9ecd899e25
Removing key import and gun from cryptoservice
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:31:03 -07:00
Riyaz Faizullabhoy
1aad807439
update role checks for empty gun
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:06:40 -07:00
Riyaz Faizullabhoy
38056b75ea
keydbstore updates
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:06:40 -07:00
Riyaz Faizullabhoy
7bd550a39a
import refactor
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:06:40 -07:00
Riyaz Faizullabhoy
c7bccd79e3
addressing review comments
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:06:39 -07:00
Riyaz Faizullabhoy
2a37590ea6
update interface and comments
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:06:37 -07:00
Riyaz Faizullabhoy
c41cee3e5d
simplify export logic with new keymap
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:04:04 -07:00
Riyaz Faizullabhoy
0f39dd7aa8
add GetKeyInfo test for memory store
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:04:04 -07:00
Riyaz Faizullabhoy
97e845e295
AddKey for cryptoservice
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:04:04 -07:00
Riyaz Faizullabhoy
95af5d4800
try cleaning up removekey, debugging tests
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:04:00 -07:00
Riyaz Faizullabhoy
23eb203a63
add key info api, use for passwd
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:03:14 -07:00
Riyaz Faizullabhoy
351b247aec
add tests for initial keystore state, and after removing and adding
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:03:11 -07:00
Riyaz Faizullabhoy
bbaef4faba
Flatten keystore by adding map, simple tests
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-18 11:00:50 -07:00