-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Imple referrers API of distribution 1.1.0 #18305
Comments
The current handling responds to the referrers API with a 401 and no |
Thank you for bringing this up. According to this proposal, we won't be supporting tag schema in version 2.8 because the specification hasn't reached the GA stage yet. If we return a 404 error in version 2.7.x, the client may try to push the artifact into Harbor with tag schema, which won't be migrated to version 2.8 and beyond. |
There are a few concerns I have with this. It doesn't prevent the push of digest tags without using the referrers API, and instead blindly copies tags from one repo to another:
Since the 401 is unexpected output, client behavior is undefined, and I don't think it's safe to assume they won't push the fallback tag. My biggest concern is that this may break pulls from the registry, where a client checking if an image has additional data to download, mirror, etc, doesn't know how to handle the unexpected response. This was the case for my Something I've seen from Docker Hub, which I don't like but is a lot cleaner, is to reject the manifest put when it contains a |
@sudo-bmitch explained this offline. |
closed since PR was merged. |
Task to tracking the imple of https://github.com/opencontainers/distribution-spec/blob/v1.1.0-rc1/spec.md#listing-referrers.
The text was updated successfully, but these errors were encountered: