Riyaz Faizullabhoy
5398bcf4fd
AddTargets uses walk and visitor
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-23 11:55:31 -08:00
Riyaz Faizullabhoy
e279c99daf
use walker for GetDelegationRole
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-23 11:55:31 -08:00
Riyaz Faizullabhoy
a7153aeccb
WalkTargets on tuf repo, use in getting targets/roles
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-23 11:55:31 -08:00
David Lawrence
9e9802bdd0
Merge pull request #573 from docker/validate-meta-on-parse
...
Adds extra validation when calling `XFromSigned` functions
2016-02-23 10:17:02 -08:00
Riyaz Faizullabhoy
d6d788c31b
add links to release tags, 0.2 will exist soon
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-23 10:12:03 -08:00
David Lawrence
926964df29
Merge pull request #585 from endophage/download_valid_children
...
check validity of children during download
2016-02-23 10:08:20 -08:00
Riyaz Faizullabhoy
bc6b260eaa
Add changelog for release tracking
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-23 09:22:51 -08:00
David Lawrence
1e99830716
check validity of children during download and don't overwrite already loaded children
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-02-22 20:47:58 -08:00
Ying Li
be3520c011
Update the integration tests after rebase
...
Signed-off-by: Ying Li <ying.li@docker.com>
2016-02-22 19:52:18 -08:00
Ying Li
8ca8f073fa
Have isValidRootRoleStructure take both role names in order to construct an ErrInvalidMetadata
...
Signed-off-by: Ying Li <ying.li@docker.com>
2016-02-22 19:39:54 -08:00
Ying Li
191307fc07
specifying other non-base roles on the root metadata is not invalid
...
Signed-off-by: Ying Li <ying.li@docker.com>
2016-02-22 19:16:32 -08:00
Ying Li
61dad28b1e
Validate that snapshot and timestamp have required sha256 checksums
...
Signed-off-by: Ying Li <ying.li@docker.com>
2016-02-22 19:16:32 -08:00
Ying Li
4b13e7d358
Refactor RootRole verification into a helper function used by root and targets validation
...
Signed-off-by: Ying Li <ying.li@docker.com>
2016-02-22 19:16:32 -08:00
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