Skip to content

Conversation

@JeyJeyGao
Copy link
Contributor

@JeyJeyGao JeyJeyGao commented May 9, 2025

resolves #544

@codecov
Copy link

codecov bot commented May 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.47%. Comparing base (de3655a) to head (f8c9220).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JeyJeyGao JeyJeyGao marked this pull request as ready for review May 9, 2025 07:37
@JeyJeyGao JeyJeyGao requested a review from a user May 9, 2025 07:37
@JeyJeyGao JeyJeyGao requested a review from Copilot May 9, 2025 07:42
Copy link

Copilot AI left a 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.

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM

@JeyJeyGao JeyJeyGao merged commit 626ac1d into notaryproject:main May 9, 2025
9 checks passed
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.

describe-key command should not be called for plugin with SIGNATURE_GENERATOR.ENVELOPE capability

2 participants