Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show a DIGEST of an image while pushing to registry #3428

Open
viveksahu26 opened this issue Dec 11, 2023 · 0 comments
Open

show a DIGEST of an image while pushing to registry #3428

viveksahu26 opened this issue Dec 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@viveksahu26
Copy link
Contributor

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 viveksahu26 added the enhancement New feature or request label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant