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: updated error messages for certificate chain validation in x509 package #120

Merged
merged 5 commits into from
Feb 13, 2023

Conversation

patrickzheng200
Copy link

@patrickzheng200 patrickzheng200 commented Feb 9, 2023

This PR would:
resolve #117
resolve #119
resolve #121

Signed-off-by: Patrick Zheng [email protected]

Signed-off-by: Patrick Zheng <[email protected]>
@patrickzheng200 patrickzheng200 self-assigned this Feb 9, 2023
@patrickzheng200 patrickzheng200 added this to the RC-2 milestone Feb 9, 2023
@patrickzheng200 patrickzheng200 added the enhancement New feature or request label Feb 9, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2023

Codecov Report

Merging #120 (5b98e29) into main (5ace66d) will increase coverage by 0.03%.
The diff coverage is 83.33%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   90.28%   90.32%   +0.03%     
==========================================
  Files          14       16       +2     
  Lines        1390     1457      +67     
==========================================
+ Hits         1255     1316      +61     
- Misses        106      110       +4     
- Partials       29       31       +2     
Impacted Files Coverage Δ
signature/internal/signaturetest/algorithm.go 100.00% <ø> (ø)
signature/internal/signaturetest/signer.go 100.00% <ø> (ø)
x509/cert.go 76.92% <ø> (ø)
x509/cert_validations.go 82.90% <83.33%> (-1.22%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

x509/cert_validations.go Outdated Show resolved Hide resolved
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 suggestion

x509/cert_validations.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
x509/cert_validations.go Outdated Show resolved Hide resolved
x509/cert_validations.go Outdated Show resolved Hide resolved
x509/cert_validations.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
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

x509/cert_validations.go Outdated Show resolved Hide resolved
x509/cert_validations.go Outdated Show resolved Hide resolved
x509/cert_validations.go Outdated Show resolved Hide resolved
x509/cert_validations.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
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

@shizhMSFT shizhMSFT merged commit 78f2ec9 into notaryproject:main Feb 13, 2023
@patrickzheng200 patrickzheng200 deleted the fix branch February 14, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
6 participants