David Lawrence
4243b258b3
making GetTargetsByName work with delegations
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:46:41 -08:00
David Lawrence
4a9ebb8bc8
adding test for ListTargets with delegation
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
4694178bbe
download delegation test
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
377b72a54f
updating list targets to list across multiple roles
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
8f7e7adcef
making stack thread safe
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
4982cc7c42
adding stack tests
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
33d39afdf5
download all delegated roles when doing downloadTargets
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-17 10:09:34 -08:00
David Lawrence
90e22ff5ff
Merge pull request #373 from cyli/add-remove-delegation
...
Add support for creating/deleting a delegation to Notary Repository
2015-12-17 10:06:01 -08:00
David Lawrence
7d688f7ea1
Merge pull request #370 from endophage/server_delegation_support
...
server side delegations support in validation and snapshot generation
2015-12-17 10:01:06 -08:00
David Lawrence
e0dd8c82bf
removing TODO for delegated roles on server
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 22:00:58 -08:00
David Lawrence
ad0582ae9c
test that a child role gets removed from the update if it doesn't exist in the parent
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 19:27:04 -08:00
Ying Li
15ad91eea3
Add tests for not being able to write changefiles when changing delegations.
...
This involves refactoring some of the previous write error code.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 18:29:54 -08:00
Riyaz Faizullabhoy
e137ea02d7
Merge pull request #374 from docker/changing-version
...
Changing version to current + 0.1
2015-12-16 18:15:39 -08:00
Ying Li
c917c0b884
Split AddDelegation test so more more levels
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 17:54:50 -08:00
David Lawrence
a27e4f7471
moving comment about sorting for clarity
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 16:44:12 -08:00
David Lawrence
a3002aafd8
make roles sort alphabetically when equivalent number of segments
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 16:41:34 -08:00
Diogo Monica
478b6f93e0
Changing version to current + 0.1
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-12-16 16:22:00 -08:00
Ying Li
351d5483b7
Implement RemoveDelegation for NotaryRepository.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 16:01:17 -08:00
Ying Li
c72934794a
Implement AddDelegation for NotaryRepository.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 16:00:45 -08:00
Ying Li
6fb531faee
Add a test that applyTargetsChange for invalid delegation parents.
...
It will not create a delegation role if the parent doesn't exist.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 15:54:30 -08:00
David Lawrence
38d2175087
tests for new validation code
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 15:06:48 -08:00
David Lawrence
829254a98c
minor test cleanup and small new tests
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 15:06:48 -08:00
David Lawrence
309ef56791
adding tests for RoleList
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 15:06:05 -08:00
David Lawrence
63ecf5f92f
server side delegations support in validation and snapshot generation
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-16 15:06:05 -08:00
Ying Li
b5c077dd95
Merge pull request #371 from cyli/add-target-picks-delegation
...
Add/Remove targets takes a list of roles to modify
2015-12-16 14:55:24 -08:00
Ying Li
22aefc9317
Make the addChange code easier to read using the IsDelegation function
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 14:31:45 -08:00
Ying Li
89f4858c3e
Stealing @endophage's code to add an IsDelegation function that takes a name.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 13:21:09 -08:00
Ying Li
0bec06eb9b
RemoveTarget now takes an optional variadic list of roles to remove from.
...
If none are provided, it defaults to the targets role, as before.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 13:18:40 -08:00
Ying Li
19c49cf7ce
AddTarget now takes an optional variadic list of roles to add target to.
...
If none are provided, it defaults to the targets role, as before.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-16 13:18:40 -08:00
Ying Li
56ab7292e7
Merge pull request #369 from HuKeping/docs-update
...
Docs: update docs for notary config
2015-12-15 21:13:24 -08:00
HuKeping
34655a2efc
Docs: update docs for notary config
...
Greate docs but still have some nit.
Signed-off-by: Hu Keping <hukeping@huawei.com>
2015-12-16 11:39:53 +08:00
David Lawrence
01f42b7313
Merge pull request #354 from endophage/delegations
...
Delegation primitives up to changelist level
2015-12-15 16:34:46 -08:00
David Lawrence
5891805b29
addressing review
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-15 16:21:30 -08:00
Ying Li
ade56e47f2
Merge pull request #367 from riyazdf/master
...
readme and doc typo fixes
2015-12-15 15:14:28 -08:00
Riyaz Faizullabhoy
e1e53c3cc9
doc typo fixes
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2015-12-15 14:25:00 -08:00
Riyaz Faizullabhoy
e338dd0caa
fix readme link to be consistent with prior client link
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2015-12-15 14:23:47 -08:00
Ying Li
20c557a10b
Merge pull request #291 from docker/server-docs
...
Server and signer docs
2015-12-15 13:26:08 -08:00
Ying Li
b0bfab2868
Merge pull request #348 from cyli/client-rotate-snapshot-key-to-server
...
Client rotate snapshot key to server
2015-12-15 11:05:16 -08:00
Ying Li
63f48791c3
Fix docstring for 'key-type' parameter on key rotate.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-15 10:18:58 -08:00
Ying Li
2c7e632925
Amend rotation tests to assert old keys are removed after rotation.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-14 17:44:28 -08:00
David Lawrence
79b05d4c0a
changelists for delegations
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-14 17:23:47 -08:00
Ying Li
ca1623e17b
Update CLI rotate key command to optionally rotate a single key.
...
This makes it possible to delegate snapshots key management to the
server, and to reclaim the responsibility.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-14 17:17:23 -08:00
Ying Li
2ce0232972
Refactor notary CLI keys cmds to use less globally mutable state.
...
This way we can test the command functions more easily.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-14 17:17:23 -08:00
Ying Li
8521ea5b6d
Convert NotaryRepository.RotateKeys to RotateKey(role, serverManages bool)
...
This should make it possible to delegate snapshot key management
to the server for existing repos, or switching back to user managing
snapshot keys.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-14 17:17:23 -08:00
Ying Li
aa81b91ab4
Merge pull request #359 from docker/diogo-volumes
...
Adding a volume to MySQL container to ensure data persistence
2015-12-14 14:28:04 -08:00
David Lawrence
fb5c9b28a4
low level tuf delegation primitives with full test coverage
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-14 10:11:47 -08:00
Diogo Mónica
3d54349e4a
Merge pull request #349 from endophage/server_snapshot_bugfixes
...
fixing bugs raised by @mtrmac
2015-12-14 09:42:26 -08:00
Diogo Mónica
ad1fd268af
Merge pull request #360 from docker/fix-merge-conflict
...
Fix semantic merge conflict.
2015-12-14 09:32:19 -08:00
Ying Li
c0bf1a4a68
Fix semantic merge conflict.
...
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-11 17:37:29 -08:00
Diogo Monica
fd01151cd2
Adding a volume to MYSQL to ensure data persistence
...
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-12-11 16:37:54 -08:00