Removing SHA256 manifests from the tag listing #89
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Official Docker registry doesn't list raw SHA256 manifest (cf. https://docker-docs.uclv.cu/registry/spec/api/#listing-image-tags). Tested on
registry-1.docker.io
.In the current version of the serverless-registry, tag listing return tags but also sha256:[...] manifests that should be excluded.
I didn't find a way to directly query R2 with a more advance filter to exclude the sha256 manifest.
Instead I had to add a filter to remove them and a loop to find more tags until the
n
number of result are reach.Bonus:
n > 0
to avoid any crash from the registryLink
for the next page is only supplied to the client if there is more result to fetch