Skip to content

Refactor registry code to be more correct #54

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

Closed
wants to merge 1 commit into from

Conversation

tianon
Copy link
Member

@tianon tianon commented Nov 3, 2022

Previously, this couldn't fetch from Docker without DOCKERHUB_PUBLIC_PROXY (see registry-1.docker.io change) and was ignoring content digests. Now it works correctly with or without DOCKERHUB_PUBLIC_PROXY, verifies the size of every object it pulls, verifies the digest, and should continue working with the in-progress Moby containerd-integration (where the local image ID becomes the digest of the manifest or index instead of the digest of the config blob as it is today).

(This also splits the registry code into a separate module so that eventually we could write some kind of tests for it.)

@tianon tianon force-pushed the better-registry-bits branch from 41c3722 to 0617c06 Compare November 3, 2022 15:17
@tianon tianon force-pushed the better-registry-bits branch 3 times, most recently from f7adb2b to a3b5702 Compare November 3, 2022 21:59
Previously, this couldn't fetch from Docker without `DOCKERHUB_PUBLIC_PROXY` (see `registry-1.docker.io` change) and was ignoring content digests.  Now it works correctly with or without `DOCKERHUB_PUBLIC_PROXY`, verifies the size of every object it pulls, verifies the digest, _and_ should continue working with the in-progress Moby containerd-integration (where the local image ID becomes the digest of the manifest or index instead of the digest of the config blob as it is today).
@tianon
Copy link
Member Author

tianon commented Nov 14, 2022

@yosifkit any objection to me squashing this into #56 which makes it much more complete (including some really basic godocs)?

@yosifkit
Copy link
Member

That seems fine! 🚢

@tianon tianon closed this Nov 14, 2022
@tianon tianon deleted the better-registry-bits branch February 23, 2023 00:47
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.

2 participants