Repository: mesos Updated Branches: refs/heads/1.1.x ea5056aaa -> f7cfae90e
Fixed the image signature check for Nexus Registry. Currently, the signature field of the docker v2 image manifest is not used yet. The check of at least one image signature is too strict because some registry (e.g., Nexus Registry) does not sign the image manifest. We should release the signature check for now. Review: https://reviews.apache.org/r/58479/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e5c3997c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e5c3997c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e5c3997c Branch: refs/heads/1.1.x Commit: e5c3997c35c790d4caf928dbcf91aaab7af5ed1c Parents: ea5056a Author: Gilbert Song <songzihao1...@gmail.com> Authored: Tue Apr 18 07:57:30 2017 +0800 Committer: Jie Yu <yujie....@gmail.com> Committed: Tue Apr 18 11:16:16 2017 +0800 ---------------------------------------------------------------------- src/docker/spec.cpp | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/e5c3997c/src/docker/spec.cpp ---------------------------------------------------------------------- diff --git a/src/docker/spec.cpp b/src/docker/spec.cpp index 2f2c32e..e022a33 100644 --- a/src/docker/spec.cpp +++ b/src/docker/spec.cpp @@ -330,10 +330,6 @@ Option<Error> validate(const ImageManifest& manifest) return Error("'history' field size must be at least one"); } - if (manifest.signatures_size() <= 0) { - return Error("'signatures' field size must be at least one"); - } - // Verify that blobSum and v1Compatibility numbers are equal. if (manifest.fslayers_size() != manifest.history_size()) { return Error("The size of 'fsLayers' should be equal "