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: self-signed leaf certificate is not self-issued #236

Merged
merged 15 commits into from
Nov 5, 2024

Conversation

JeyJeyGao
Copy link
Contributor

@JeyJeyGao JeyJeyGao commented Oct 21, 2024

Fix:

  • added self-issued check for self-signed leaf certificate
  • improved test coverage for x509 package
  • fixed test case for revocation package

Resolves #126

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.70%. Comparing base (1683ddb) to head (8ab3059).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
+ Coverage   91.29%   91.70%   +0.40%     
==========================================
  Files          30       30              
  Lines        2608     2616       +8     
==========================================
+ Hits         2381     2399      +18     
+ Misses        173      165       -8     
+ Partials       54       52       -2     

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

@JeyJeyGao JeyJeyGao marked this pull request as draft October 21, 2024 05:54
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
@JeyJeyGao JeyJeyGao force-pushed the fix/self_signed_cert branch from 8791202 to e712676 Compare October 21, 2024 07:27
@JeyJeyGao JeyJeyGao marked this pull request as ready for review October 21, 2024 07:30
shizhMSFT
shizhMSFT previously approved these changes Oct 21, 2024
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

x509/helper.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
x509/helper.go Outdated Show resolved Hide resolved
x509/codesigning_cert_validations.go Outdated Show resolved Hide resolved
x509/codesigning_cert_validations.go Outdated Show resolved Hide resolved
x509/timestamp_cert_validations.go Outdated Show resolved Hide resolved
This reverts commit c124171.

Signed-off-by: Junjie Gao <[email protected]>
This reverts commit 8240ff0.

Signed-off-by: Junjie Gao <[email protected]>
@JeyJeyGao JeyJeyGao force-pushed the fix/self_signed_cert branch from 91432b0 to 9552c22 Compare October 23, 2024 03:20
@JeyJeyGao JeyJeyGao requested a review from Two-Hearts October 23, 2024 03:22
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

@priteshbandi priteshbandi 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

@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

@JeyJeyGao JeyJeyGao merged commit 0c651a4 into notaryproject:main Nov 5, 2024
9 checks passed
@Two-Hearts Two-Hearts mentioned this pull request Dec 6, 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.

self-signed leaf cert validation issue
4 participants