Ying Li
7404f4ff55
Embed SignedCommon in Root, Snapshot, and Timestamp, as it's already
...
embedded in Targets. This way we can easily get a SignedCommon object
out after calling RootFromSigned, etc.
Signed-off-by: Ying Li <ying.li@docker.com >
2016-04-07 17:27:13 -07:00
Ying Li
15908298bd
Use require, not assert, in server/... tests.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-04-04 17:18:53 -07:00
HuKeping
67b0ec3771
Use constant for snapshot
...
Signed-off-by: Hu Keping <hukeping@huawei.com >
2016-03-28 17:21:24 +08: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
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
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
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
Ying Li
e1397f4b03
Use updated-at for last modification date for getting current metadata
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-14 17:18:18 -07:00
Ying Li
802673fc9d
Add cache control headers to Getting metadata
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-14 17:18:18 -07:00
Ying Li
8768c12901
Return the creation date for GetChecksum and GetCurrent from the server database store.
...
Signed-off-by: Ying Li <ying.li@docker.com >
2016-03-14 17:18:18 -07:00
HuKeping
4d9e2e5e16
[PATCH 7/8] Update the server side
...
Signed-off-by: Hu Keping <hukeping@huawei.com >
2016-03-11 10:45:01 +08:00
Ying Li
cf4b77b760
Revert "switching out to consistently use canonical json for all marshalling of TUF data"
...
This reverts commit f417c834c4 .
Signed-off-by: Ying Li <ying.li@docker.com >
2016-01-08 14:53:09 -08:00
David Lawrence
f417c834c4
switching out to consistently use canonical json for all marshalling of TUF data
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2016-01-06 11:15:27 -08:00
David Lawrence
8bca542c17
restructuring validateUpdate to get rid of prepRepo
...
removing attempt in server/snapshot/snapshot.go to regenerate
metadata for roles in snapshot.
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-11 16:20:20 -08:00
David Lawrence
03aa3509bd
fixing bugs raised by @mtrmac
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-11 15:06:24 -08:00
David Lawrence
eb75898c43
fix roleExpired varname, it shadowed a func name
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-07 14:44:11 -08:00
David Lawrence
fb76bca9f0
adding comment to snapshot key insert race condition test per @cyli's request
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-07 12:55:09 -08:00
David Lawrence
844c1872c4
adding tests for server/snapshot/snapshot.go
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-07 12:55:09 -08:00
David Lawrence
cae5940c70
generate snapshots server side
...
Signed-off-by: David Lawrence <david.lawrence@docker.com > (github: endophage)
2015-12-07 12:55:09 -08:00