Skip to content

fix: cliplugin: return ErrorProviderNotFound when calling Get with a path#1982

Merged
Hayden-IO merged 3 commits intosigstore:mainfrom
ramonpetgrave64:fix-provider-not-found-for-paths
Feb 17, 2025
Merged

fix: cliplugin: return ErrorProviderNotFound when calling Get with a path#1982
Hayden-IO merged 3 commits intosigstore:mainfrom
ramonpetgrave64:fix-provider-not-found-for-paths

Conversation

@ramonpetgrave64
Copy link
Copy Markdown
Contributor

@ramonpetgrave64 ramonpetgrave64 commented Feb 14, 2025

Summary

Fixes #1979

Testing

Test against cosign

cd cosign
go mod edit -replace "github.com/sigstore/sigstore"="../sigstore"
go mod tidy
make test

sigstore CI tests pass.

Release Note

Changes kms.Get() to return a ProviderNotFoundError when the user supplies a filepath, or an input keyResourceID that cannot be parsed by [provider]://[key ref].

Documentation

No new documentation.

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
@ramonpetgrave64 ramonpetgrave64 force-pushed the fix-provider-not-found-for-paths branch from 7c3f036 to bb6178e Compare February 14, 2025 19:44
Copy link
Copy Markdown
Contributor

@Hayden-IO Hayden-IO left a comment

Choose a reason for hiding this comment

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

This seems fine too, looks like an equivalent solution.

@ret2libc good with this?

@ret2libc
Copy link
Copy Markdown
Contributor

@ret2libc good with this?

Good with it! Thanks @ramonpetgrave64

@Hayden-IO Hayden-IO merged commit ce0fa17 into sigstore:main Feb 17, 2025
16 checks passed
@PuneetPunamiya
Copy link
Copy Markdown
Contributor

@haydentherapper any plans to gave a patch release with this fix anytime soon ?

@Hayden-IO
Copy link
Copy Markdown
Contributor

I cut a release.

@ramonpetgrave64 ramonpetgrave64 deleted the fix-provider-not-found-for-paths branch February 19, 2025 18:48
@ramonpetgrave64 ramonpetgrave64 restored the fix-provider-not-found-for-paths branch February 19, 2025 18:48
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.

cliplugin changes break cosign tests

4 participants