Open git-hyagi opened 2 months ago
You forgot to mention that you are enforcing the sync to mirror only signed content.
I would make this a doc issue and add a note on the cosign signature mirroring workflow, that filtered sync and signed_only sync can be to certain extent 'incompatible'.
saying to not forget to include the sig tag
The user will not be able to do so. Usually you do not have handy manifest digest ahead of syncing from remote source.
Is your feature request related to a problem? Please describe. Trying to sync signed - via cosign - repositories with filtered tags and enforcing the sync to mirror only signed content, but without including the
sha256-{digest}.sig
tag, will fail and no error will be presented.Describe the solution you'd like Consider the sync task as failed in case no manifests were synced because of the missing
sig
tag in theinclude-tags
filter and "cosign repo".Describe alternatives you've considered We could provide a warning message (not sure if it would be better in docs or logs, maybe both) saying to not forget to include the
sig
tag in case of syncing filtered repos with cosign signatures and no sigstore.Additional context Steps to reproduce:
From pulp logs, we can only see that the sync task completed:
but checking the manifests, there is no synced manifest:
adding the
.sig
tag to the include-tags list will successfully sync the manifests: