Skip to content

Verify manifest before accepting - #12182

Merged
openshift-bot merged 2 commits into
openshift:masterfrom
miminar:first-blobs-then-manifest
Dec 20, 2016
Merged

openshift-bot merged 2 commits into
openshift:masterfrom
miminar:first-blobs-then-manifest

Conversation

@miminar

@miminar miminar commented Dec 8, 2016 •

Copy link
Copy Markdown

Referenced blobs need to be checked for presence in a destination repository before accepting incoming manifest. Otherwise, user will be able to pull image without previous access to its blobs.

Resolves bz#1388018

Blocked on #11925

@miminar

miminar commented Dec 8, 2016

Copy link
Copy Markdown
Author

/cc @legionus, @mfojtik

if err != nil {
if err != distribution.ErrBlobUnknown {
errs = append(errs, err)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to continue here otherwise you will append the error below too, right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the schema2 handler

@legionus

legionus commented Dec 8, 2016

Copy link
Copy Markdown
Contributor

@miminar Depends on what PR (this or #11925) would be merged first we get a conflict. In the #11925 I have changed your Registry: moved manifest schema operations to new files commit.

@miminar

miminar commented Dec 8, 2016

Copy link
Copy Markdown
Author

Depends on what PR (this or #11925) would be merged first we get a conflict. In the #11925 I have changed your Registry: moved manifest schema operations to new files commit.

@legionus Let's go with yours first.

@miminar miminar changed the title Verify manifest before accepting [DO NOT MERGE] Verify manifest before accepting Dec 8, 2016
@miminar
miminar force-pushed the first-blobs-then-manifest branch from 70e9f00 to cbdcf19 Compare December 8, 2016 13:03
@miminar

miminar commented Dec 8, 2016

Copy link
Copy Markdown
Author

the yum flake beast went rampage

@miminar miminar changed the title [DO NOT MERGE] Verify manifest before accepting Verify manifest before accepting Dec 19, 2016
@miminar

miminar commented Dec 19, 2016

Copy link
Copy Markdown
Author

Yum flake #8571. re-[test]

Michal Minář added 2 commits December 19, 2016 22:16
Mostly copied from docker/distribution repo.

Signed-off-by: Michal Minář <[email protected]>
@miminar
miminar force-pushed the first-blobs-then-manifest branch from cbdcf19 to 57f9cf6 Compare December 19, 2016 21:16
@miminar

miminar commented Dec 19, 2016

Copy link
Copy Markdown
Author

Updated 1st commit to match the one in #11925.

@soltysh

soltysh commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

LGTM, tagging for merge after green tests.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 57f9cf6

@openshift-bot

Copy link
Copy Markdown
Contributor

@miminar

miminar commented Dec 20, 2016

Copy link
Copy Markdown
Author

@mfojtik, @pweil-, @soltysh someone please merge.

@soltysh

soltysh commented Dec 20, 2016

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 57f9cf6

@openshift-bot

openshift-bot commented Dec 20, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12510/) (Base Commit: 3c68360) (Image: devenv-rhel7_5573)

@openshift-bot
openshift-bot merged commit 594df42 into openshift:master Dec 20, 2016
@miminar
miminar deleted the first-blobs-then-manifest branch March 22, 2017 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants