cosign icon indicating copy to clipboard operation
cosign copied to clipboard

Fixing issue 3669

Open Mukuls77 opened this issue 1 year ago • 7 comments
trafficstars

Summary

Closes #3669 Currently while doing the verification of signatures cosign does not check the MediaType of the layers before downloading those. In the case when some one mistakenly put the signature tag on an artifact which is not a signature than cosign will download all the layers present in the Manifest file of the artifact and than we start verification which will eventually fail as the artifact was not really a signature. The fix provides an additional check to check the Media Type before downloading the layers. this will avoid unnecessary download of stale data and will quickly reject the verification as the artifact is not a signature.

Release Note

  • Enhanced cosign verification logic to check MediaType before download of signature layers

Documentation

No change in documentation

Mukuls77 avatar Apr 18 '24 06:04 Mukuls77