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

Add a more friendly error in pubkey failure #623

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

rikatz
Copy link
Contributor

@rikatz rikatz commented Aug 14, 2022

Summary

Closes #622

When passing a wrong public key to the verify function, it will return an unfriendly error. Instead we can just let users know they are passing the wrong public key format

Release Note

Return a friendly error when an invalid key format is passed

Documentation

No change in docs

@rikatz rikatz force-pushed the friendly-pubkey-error branch 2 times, most recently from 0d018ca to 036b466 Compare August 14, 2022 21:39
Signed-off-by: Ricardo Katz <ricardo.katz@gmail.com>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@cpanato cpanato merged commit e1c7ad9 into sigstore:main Aug 16, 2022
mtrmac pushed a commit to mtrmac/sigstore that referenced this pull request Mar 10, 2023
…tore#623)

* Make sure generate-key-pair doesn't overwrite key-pair by mistake by replicating ssh-keygen behaviour.

Also create public key with 0644 permission.

Signed-off-by: Pradeep Chhetri <pradeepchhetri4444@gmail.com>

* Fix lint errors

Signed-off-by: Pradeep Chhetri <pradeepchhetri4444@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix unfriendly error in verify
3 participants