Open marvinpeter-kisters opened 1 year ago
@marvinpeter-kisters Currently, this is a designed behavior. GC will not delete referred images(co-signed means referred).
Could you share your story of why you want to GC a co-signed image?
@AllForNothing We have a handful repositories where we only use the latest tag and do not version images. Before we started using signing, Harbor would delete the old now untagged images of such repositories once a week. Since switching to signing images this no longer works, resulting in a ton of untagged images that are no longer used. At the moment I delete these by hand once a week.
@marvinpeter-kisters This is a designed behavior where you have to remove the signature first and then perform the GC. Let's keep collecting more comments and maybe we can provide an option to allow the user to delete untagged images with a signature.
We have a similar need: we publish images routinely (every week) in a private registry using a constant tag ("latest"). The images are signed using cosign and we would like to automatically delete obsolete images (those that lost the "latest" tag when a new image was published under that tag).
I'm +1 on having the option to delete untagged images that are still referenced by a signature
Expected behavior and actual behavior: Expected Harbor garbage collection should remove untagged images even if they have a signature attached to them.
Actual Deleting untagged images with CoSign signature attach fails.
Steps to reproduce the problem:
Versions:
Related Issus https://github.com/goharbor/harbor/issues/16418