Ying Li
d8938f76e7
When downloading snapshot, return ErrNotLoaded if timestamp hasn't been loaded. Similarly for targets.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Ying Li
57e28e4f09
Rename the validation functions and add more tests
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Ying Li
314cfb9a17
Add targets metadata validation to the targets data structure
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Ying Li
4cae84bb29
Add snapshot metadata validation to the snapshot data structure
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Ying Li
8335d194ce
Add timestamp metadata validation to the timestamp data structure
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Ying Li
36ea1f6901
Add root metadata validation to the root data structure
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 19:16:32 -08:00
Diogo Mónica
da91edcb6e
Merge pull request #587 from endophage/update_pkcs11
...
updating miekg/pkcs11 for go 1.6
2016-02-22 18:53:53 -08:00
David Lawrence
9db2ae3ed6
updating miekg/pkcs11 for go 1.6
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-02-22 17:53:24 -08:00
David Lawrence
332fc35dc5
Merge pull request #578 from endophage/go1.6
...
updates and bugfixes for go 1.6
2016-02-22 16:35:48 -08:00
Ying Li
c625402ef7
Merge pull request #572 from docker/per-metadata-type-mutation
...
Per metadata type mutation tests
2016-02-22 16:34:33 -08:00
Ying Li
1e48fd35ff
Use ToSigned in the swizzler
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-22 15:27:53 -08:00
David Lawrence
4c6c6d99ff
Merge pull request #579 from docker/remove-more-path-hex
...
remove path hash prefix from TargetsDelegations
2016-02-22 10:32:37 -08:00
Riyaz Faizullabhoy
8a5c8c0495
Merge pull request #582 from docker/dockertest-fixes
...
Update dockertest file
2016-02-19 17:04:55 -08:00
Ying Li
c07cb37f20
Update with new docker version, and be more precise in what failures are allowed.
...
Also, rather than use the regular docker configuration dir, create a temporary one
so we don't break existing real repo info.
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-19 16:30:49 -08:00
Ying Li
b8866877b0
Clarify test comment
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-18 18:59:14 -08:00
Riyaz Faizullabhoy
3a5fbf0033
remove path hash prefix from TargetsDelegations
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-18 17:40:50 -08:00
David Lawrence
e270795768
updates and bugfixes for go 1.6
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-02-18 16:45:40 -08:00
Riyaz Faizullabhoy
14edbe33e1
add snapshot meta check in download root, update tests
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-17 19:40:11 -08:00
Ying Li
9dfaee1add
Refactor and add to per-metadata-type mutation tests
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-17 19:39:57 -08:00
Ying Li
edb70b5474
Fix test bug where root role mutations weren't being tested
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-17 19:35:03 -08:00
Ying Li
401690d621
Include client update tests to test updating non-root metadata that are missing pieces
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-17 19:35:03 -08:00
Ying Li
95325cd19b
Include client update tests to test updating roots that are missing roles
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-17 19:35:03 -08:00
Ying Li
f0ddda1602
Add methods for mutating per-metadata data to swizzler
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-17 19:35:03 -08:00
Riyaz Faizullabhoy
0d10758c32
Merge pull request #566 from docker/role-types-getters
...
Role types with keys, remove keyDB
2016-02-17 18:17:34 -08:00
David Lawrence
d1ac37fd33
addressing review comments
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-02-17 16:31:48 -08:00
Riyaz Faizullabhoy
b31f4e977a
Merge pull request #576 from HuKeping/typo
...
Minor typo
2016-02-17 09:53:52 -08:00
HuKeping
31e32ec102
Minor typo
...
Signed-off-by: Hu Keping <hukeping@huawei.com >
2016-02-17 15:13:00 +08:00
David Lawrence
1db128778d
completely removing KeyDB
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-02-16 21:11:13 -08:00
Diogo Mónica
90d774005b
Merge pull request #575 from docker/yubikey-test-fix
...
Update integration test to exclude yubikeys from importing/exporting non-root keys
2016-02-16 17:45:45 -08:00
Diogo Mónica
071976b47d
Merge pull request #574 from docker/misspell
...
Misspell in Makefile and circleci
2016-02-16 17:45:10 -08:00
Riyaz Faizullabhoy
36c33e6732
Update integration test to exclude yubikeys from importing/exporting non-root
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 17:10:28 -08:00
Riyaz Faizullabhoy
4044a37613
ignore git files in misspell
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 14:36:57 -08:00
Riyaz Faizullabhoy
4258ebeb34
add to circle ci
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 13:55:14 -08:00
Riyaz Faizullabhoy
a0cd58655f
add misspell target to makefile
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 13:50:20 -08:00
Riyaz Faizullabhoy
5931f93134
fix current typos
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 13:36:57 -08:00
Riyaz Faizullabhoy
b46391ee8f
Remove RoleWithKeys
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-16 10:07:00 -08:00
Riyaz Faizullabhoy
c3c24be66b
remove path restriction from getting delegations, use in future visitor
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
10865d2310
addressing review comments
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
1d9e375680
add delegation role methods, more tests
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
affd18f3d5
limit role methods
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
dcbdc258c1
update the path validation
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
d379f9918c
add GetBaseRole and GetDelegationRole with path validation
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Riyaz Faizullabhoy
a754574b85
add stronger role types for internal use
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-02-15 22:38:41 -08:00
Diogo Mónica
9010989a20
Merge pull request #536 from docker/nonroot-import
...
Non-root key import and export CLI
2016-02-11 17:39:10 -08:00
Diogo Mónica
35013dc925
Merge pull request #567 from moxiegirl/remove-tutorials
...
Updating Dockefile
2016-02-11 15:14:20 -08:00
Ying Li
b673a15a49
Merge pull request #555 from docker/remove-kdb-from-verify
...
Remove keyDB from signed.Verify
2016-02-11 11:36:15 -08:00
Ying Li
ac265186ee
Rename repo.GetRole to repo.GetRoleWithNames and use the Keys data structure more.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-11 09:51:08 -08:00
Mary Anthony
5867409a46
Updating Dockefile
...
Signed-off-by: Mary Anthony <mary@docker.com >
2016-02-10 21:15:44 -08:00
Riyaz Faizullabhoy
3229592f0c
Merge pull request #565 from endophage/readme_coverage
...
adding codecov badge to readme
2016-02-10 15:45:57 -08:00
Ying Li
c88461d485
Change the client to pass the RoleWithKeys to signed.Verify instead of a KeyDB.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-02-10 15:21:05 -08:00