1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/registry
Derek McGowan ed13c3abfb Use notary library for trusted image fetch and signing
Add a trusted flag to force the cli to resolve a tag into a digest via the notary trust library and pull by digest.
On push the flag the trust flag will indicate the digest and size of a manifest should be signed and push to a notary server.
If a tag is given, the cli will resolve the tag into a digest and pull by digest.
After pulling, if a tag is given the cli makes a request to tag the image.

Use certificate directory for notary requests

Read certificates using same logic used by daemon for registry requests.

Catch JSON syntax errors from Notary client

When an uncaught error occurs in Notary it may show up in Docker as a JSON syntax error, causing a confusing error message to the user.
Provide a generic error when a JSON syntax error occurs.

Catch expiration errors and wrap in additional context.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-24 14:08:20 -07:00
..
auth.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
auth_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
authchallenge.go
config.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
config_test.go
endpoint.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
endpoint_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
reference.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
registry.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
registry_mock_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
registry_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
service.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
session.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
token.go Registry: remove unwanted return variable name 2015-06-09 10:58:33 +08:00
types.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00