-
Notifications
You must be signed in to change notification settings - Fork 44
fix: remove generate-envelope plugin support for blob signing #546
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: remove generate-envelope plugin support for blob signing #546
Conversation
Signed-off-by: Junjie Gao <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #546 +/- ##
==========================================
+ Coverage 81.36% 81.47% +0.10%
==========================================
Files 36 36
Lines 3360 3358 -2
==========================================
+ Hits 2734 2736 +2
+ Misses 483 480 -3
+ Partials 143 142 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
…th_generate_envelope
Signed-off-by: Junjie Gao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes support for generating an envelope via plugins during blob signing, enforcing the use of the signature generator capability instead.
- Added a new test case to validate the failure when using a plugin with envelope capability for blob signing.
- Updated the blob signing logic in PluginSigner to only support signature generation.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| signer/plugin_test.go | Added TestPluginSigner_SignBlob_Invalid to check correct error handling for improper capability. |
| signer/plugin.go | Removed the envelope generator branch and added a capability check that returns an error if the plugin lacks signature generator support. |
shizhMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolves #544