Repository navigation
fix(store): stop tagging referrers with their CID - #2108
Merged
Merged
Conversation
Refs #2102 Co-authored-by: Cursor <[email protected]> Signed-off-by: Tibor Kircsi <[email protected]>
Refs #2103 Co-authored-by: Cursor <[email protected]> Signed-off-by: Tibor Kircsi <[email protected]>
Closes #2102 Co-authored-by: Cursor <[email protected]> Signed-off-by: Tibor Kircsi <[email protected]>
tkircsi
force-pushed
the
feat/digest-based-referrer-delete
branch
from
September 3, 2026 16:31
fa405e8 to
8e4cf53
Compare
muscariello
reviewed
Sep 3, 2026
| // Referrers are stored in the same repository as their subject record and are | ||
| // tagged with their own CID, so a tag parsing as a CID does not make it a | ||
| // record. Referrer manifests are identified by the OCI subject field that links | ||
| // Referrers are stored in the same repository as their subject record. New ones are not tagged, |
Member
There was a problem hiding this comment.
this is obscure. New in what sense and earlier in what sense ?
Contributor
Author
There was a problem hiding this comment.
This change, doesn't remove the already tagged referrers tags, but does not create tags for new ones.
Contributor
Author
There was a problem hiding this comment.
It is not an existing data cleanup PR.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #2102
Referrers are no longer tagged with their CID. Deletion now works from the manifest descriptor, which is the only thing those tags were needed for.
Also fixes two findings from the #2095 review: superseded scan reports are removed in one batched call instead of one full referrer walk per report, and the prune checks the referrer type itself, since the store's type filter passes every custom type.
Verified against a local Zot with
deleteUntaggedanddeleteReferrerson: signing adds 0 tags and 2 untagged referrers,pull --signature/--public-key/--scan-reportandverifyall work, and an untagged referrer whose subject is alive survives a GC pass.Made with Cursor