moby--moby/registry
Stephen J Day 06612cc0fe Properly verify manifests and layer digests on pull
To ensure manifest integrity when pulling by digest, this changeset ensures
that not only the remote digest provided by the registry is verified but also
that the digest provided on the command line is checked, as well. If this check
fails, the pull is cancelled as with an error. Inspection also should that
while layers were being verified against their digests, the error was being
treated as tech preview image signing verification error. This, in fact, is not
a tech preview and opens up the docker daemon to man in the middle attacks that
can be avoided with the v2 registry protocol.

As a matter of cleanliness, the digest package from the distribution project
has been updated to latest version. There were some recent improvements in the
digest package.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-05-29 15:20:28 -07:00
..
auth.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
auth_test.go Move CLI config processing out from under registry dir 2015-04-23 10:18:38 -07:00
authchallenge.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
config.go Registry v2 mirror support. 2015-05-26 11:08:19 -07:00
config_test.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
endpoint.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
endpoint_test.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
registry.go Fix race in httpsRequestModifier.ModifyRequest when writing tlsConfig 2015-05-23 23:50:08 +02:00
registry_mock_test.go Remove PortSpecs from Config 2015-05-29 22:38:09 +02:00
registry_test.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
service.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
session.go registry: fix auth bug 2015-05-21 16:53:22 -04:00
session_v2.go Properly verify manifests and layer digests on pull 2015-05-29 15:20:28 -07:00
token.go Add transport package to support CancelRequest 2015-05-18 23:31:42 -04:00
types.go Remove engine.Table from docker search and fix missing field 2015-04-03 11:27:30 -07:00