moby/distribution
Aaron Lehmann 65370be888 Send push information to trust code out-of-band
The trust code used to parse the console output of `docker push` to
extract the digest, tag, and size information and determine what to
sign. This is fragile and might give an attacker control over what gets
signed if the attacker can find a way to influence what gets printed as
part of the push output.

This commit sends the push metadata out-of-band. It introduces an `Aux`
field in JSONMessage that can carry application-specific data alongside
progress updates. Instead of parsing formatted output, the client looks
in this field to get the digest, size, and tag from the push.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-08 10:57:50 -08:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
xfer Remove the graph driver from the daemon, move it into the layer store. 2015-12-28 12:55:48 -05:00
pull.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
pull_v1.go Make v1 pull/push output consistent with v2 2015-12-16 15:02:24 -08:00
pull_v2.go Merge pull request #18889 from aaronlehmann/v1-fallback-pull-all-tags 2016-01-05 16:20:04 -05:00
pull_v2_test.go Add own reference package wrapper 2015-12-16 11:58:52 -08:00
pull_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
pull_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
push.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
push_v1.go Make v1 pull/push output consistent with v2 2015-12-16 15:02:24 -08:00
push_v2.go Send push information to trust code out-of-band 2016-01-08 10:57:50 -08:00
push_v2_test.go Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
push_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
push_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
registry.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
registry_unit_test.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00