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

feat: Implements VerifyBlob functionality #394

Merged
merged 55 commits into from
Jun 27, 2024

Conversation

priteshbandi
Copy link
Contributor

@priteshbandi priteshbandi commented Apr 2, 2024

This PR implements VerifyBlob functionality as per https://github.com/notaryproject/specifications/blob/main/specs/trust-store-trust-policy.md

This PRis ready for review

priteshbandi and others added 7 commits April 2, 2024 09:52
…quest (notaryproject#390)

Add contract version to plugin sign request and plugin verify request.
As per [specification](https://github.com/notaryproject/specifications/blob/main/specs/plugin-extensibility.md) `contractVersion` is a mandatory field.

Signed-off-by: Pritesh Bandi <[email protected]>
bumping up oras-go to v2.5.0 along with golang version to v1.21.

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
@priteshbandi priteshbandi marked this pull request as ready for review April 2, 2024 18:11
Signed-off-by: Pritesh Bandi <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 85.05747% with 52 lines in your changes missing coverage. Please review.

Project coverage is 80.29%. Comparing base (9ff1891) to head (e201168).
Report is 24 commits behind head on main.

Files Patch % Lines
verifier/verifier.go 71.90% 25 Missing and 9 partials ⚠️
verifier/trustpolicy/oci.go 90.00% 5 Missing and 4 partials ⚠️
verifier/trustpolicy/trustpolicy.go 92.72% 3 Missing and 1 partial ⚠️
verifier/trustpolicy/blob.go 93.61% 2 Missing and 1 partial ⚠️
notation.go 93.75% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
+ Coverage   73.43%   80.29%   +6.86%     
==========================================
  Files          24       33       +9     
  Lines        2507     2340     -167     
==========================================
+ Hits         1841     1879      +38     
+ Misses        526      324     -202     
+ Partials      140      137       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Pritesh Bandi <[email protected]>
dir/path.go Outdated Show resolved Hide resolved
dir/path.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Show resolved Hide resolved
Signed-off-by: Pritesh Bandi <[email protected]>
priteshbandi and others added 8 commits June 23, 2024 22:06
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
notation.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Show resolved Hide resolved
Copy link
Contributor

@Two-Hearts Two-Hearts left a comment

Choose a reason for hiding this comment

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

Overall LGTM, with a few suggestions left.

notation.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
verifier/trustpolicy/blob.go Outdated Show resolved Hide resolved
priteshbandi and others added 4 commits June 26, 2024 22:19
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Co-authored-by: Junjie Gao <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Two-Hearts
Two-Hearts previously approved these changes Jun 27, 2024
Copy link
Contributor

@Two-Hearts Two-Hearts left a comment

Choose a reason for hiding this comment

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

LGTM with unit tests fixed.

Signed-off-by: Pritesh Bandi <[email protected]>
Copy link
Contributor

@Two-Hearts Two-Hearts 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
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

verifier/trustpolicy/oci.go Show resolved Hide resolved
@priteshbandi priteshbandi merged commit a1825db into notaryproject:main Jun 27, 2024
9 checks passed
@Two-Hearts Two-Hearts mentioned this pull request Jul 23, 2024
6 tasks
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.

5 participants