Repository: mesos Updated Branches: refs/heads/1.2.x 6855b50a4 -> cb9474178
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/d6a586be Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d6a586be Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d6a586be Branch: refs/heads/1.2.x Commit: d6a586be10cd4c2fad73603526ba1502214ae41b Parents: 6855b50 Author: Gilbert Song <[email protected]> Authored: Tue Apr 18 07:57:30 2017 +0800 Committer: Jie Yu <[email protected]> Committed: Tue Apr 18 11:17:43 2017 +0800 ---------------------------------------------------------------------- src/docker/spec.cpp | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/d6a586be/src/docker/spec.cpp ---------------------------------------------------------------------- diff --git a/src/docker/spec.cpp b/src/docker/spec.cpp index 88029c2..6b5588e 100644 --- a/src/docker/spec.cpp +++ b/src/docker/spec.cpp @@ -332,10 +332,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 "
