cosign icon indicating copy to clipboard operation
cosign copied to clipboard

show a DIGEST of an image while pushing to registry

Open viveksahu26 opened this issue 2 years ago • 0 comments

Description

Normally on pushing an image to the docker hub, it shows an image DIGEST of that image.

sudo docker push viveksahu26/hi:v1                                                                                                
The push refers to repository [docker.io/viveksahu26/hi]
1d5f5c892f24: Pushed 
v1: digest: sha256:181178bf4ac6360b9ee7cdba182381821d093ccac48fddae0ac0fce1d40f547f size: 524

After cosign signs an image, by default it uploads/push an image to the registry. Similar to above concept, cosign should also show an Image digest while pushing an image to registry.

cosign sign --key cosign.key viveksahu26/hi@sha256:181178bf4ac6360b9ee7cdba182381821d093ccac48fddae0ac0fce1d40f547f                                                         ⏎
Enter password for private key: 

	The sigstore service, hosted by sigstore a Series of LF Projects, LLC, is provided pursuant to the Hosted Project Tools Terms of Use, available at https://lfprojects.org/policies/hosted-project-tools-terms-of-use/.
	Note that if your submission includes personal data associated with this signed artifact, it will be part of an immutable record.
	This may include the email address associated with the account with which you authenticate your contractual Agreement.
	This information will be used for signing this artifact and will be stored in public transparency logs and cannot be removed later, and is subject to the Immutable Record notice at https://lfprojects.org/policies/hosted-project-tools-immutable-records/.

By typing 'y', you attest that (1) you are not submitting the personal data of any other person; and (2) you understand and agree to the statement and the Agreement terms at the URLs listed above.
Are you sure you would like to continue? [y/N] y
tlog entry created with index: 55772524
Pushing signature to: index.docker.io/viveksahu26/hi

viveksahu26 avatar Dec 11 '23 03:12 viveksahu26