Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cross-registry blob mounting experiment #1388

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

jonjohnsonjr
Copy link
Collaborator

@jonjohnsonjr jonjohnsonjr commented Jun 15, 2022

This is currently only implemented by Google but we'd like to upstream
this to the distribution spec. There's a small possibility that this
will break registries that don't implement the spec properly.

We signal the domain of the origin registry with the "origin"
querystring parameter.

Fixes #1321

Likely breaks with harbor because of #219 but they SHOULD be returning a 202 here.

This is currently only implemented by Google but we'd like to upstream
this to the distribution spec. There's a small possibility that this
will break registries that don't implement the spec properly.

We signal the domain of the origin registry with the "origin"
querystring parameter.
@jonjohnsonjr
Copy link
Collaborator Author

Picking up #1322

@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2022

Codecov Report

Merging #1388 (95f38a3) into main (12aeccc) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1388   +/-   ##
=======================================
  Coverage   74.19%   74.19%           
=======================================
  Files         113      113           
  Lines        8458     8460    +2     
=======================================
+ Hits         6275     6277    +2     
  Misses       1575     1575           
  Partials      608      608           
Impacted Files Coverage Δ
pkg/v1/remote/check.go 70.00% <100.00%> (ø)
pkg/v1/remote/write.go 64.94% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12aeccc...95f38a3. Read the comment docs.

@imjasonh imjasonh merged commit 623023e into google:main Jun 16, 2022
@jonjohnsonjr jonjohnsonjr deleted the cobm branch June 30, 2022 22:42
dmikusa pushed a commit to paketo-buildpacks/pipeline-builder that referenced this pull request Jul 13, 2022
Functionality was added in crane to support cross-registry blob mounting, but it seems to cause issues with Harbor registry (and possibly others). Rolling back for stability. We'll need to revisit this in the future.

google/go-containerregistry#1388

To reproduce the problem:

1. `crane cp` an image to a Harbor registry that is not currently in the registry
2. It'll fail saying `Error: failed to copy image: POST` and `UNAUTHORIZED: project foo not found: project foo not found`.

This should be retested before bumping the version of crane.

Signed-off-by: Daniel Mikusa <[email protected]>
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.

FR: Support cross-origin blob mounting
3 participants