zot icon indicating copy to clipboard operation
zot copied to clipboard

scrub: also create a media-type scrub method instead of just repo

Open rchincha opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

As we add more media-types (now we also support manifest index which is a container of images), it needs to be scrubbed differently.

Describe the solution you'd like

foreach manifest in a repo: switch manifest.mediaType: case ImageManifest: // we already support this case ImageIndex: // unpack the manifest, iterate over each manifest and scrub them, this is NEW case ArtifactType: // something else, this is future

rchincha avatar Aug 20 '22 22:08 rchincha

Related to issue https://github.com/project-zot/zot/issues/640

rchincha avatar Aug 20 '22 22:08 rchincha

The image index case was covered in https://github.com/project-zot/zot/pull/1031. The artifact case is postponed for now.

andaaron avatar Feb 24 '23 10:02 andaaron

Since the artifact manifest was removed, the only remaining requirement is to also take the image manifest 'Subject' into consideration when running scrub.

andaaron avatar May 24 '23 16:05 andaaron

Done in https://github.com/project-zot/zot/pull/1845

andaaron avatar Sep 27 '23 07:09 andaaron