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

fix(sign): refactor unsupported provider log #1464

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

Dentrax
Copy link
Member

@Dentrax Dentrax commented Feb 15, 2022

Signed-off-by: Furkan furkan.turkal@trendyol.com
Co-authored-by: Batuhan batuhan.apaydin@trendyol.com

Summary

In case unexpected provider given, following error will be thrown:

./cosign sign-blob --key foo://cosign.key bug.txt
Using payload from: bug.txt
Error: signing bug.txt: reading key: unsupported provider given
main.go:46: error during command execution: signing bug.txt: reading key: unsupported provider given

But couldn't get why there are 2 same logs

Ticket Link

Fixes #1461

Release Note

Fixes an issue where the sign command is throwing an unsupported provider log without checking whether it actually is.

pkg/signature/keys.go Outdated Show resolved Hide resolved
Fixes sigstore#1461

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
@dlorenc dlorenc merged commit 82cb3ed into sigstore:main Feb 16, 2022
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 16, 2022
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
Fixes sigstore#1461

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>

Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
Fixes sigstore#1461

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>

Co-authored-by: Batuhan <batuhan.apaydin@trendyol.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.

error occurred: no provider found for that key reference, will try to load key from disk
2 participants