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

chore: invalid signing time prompt improvement #173

Merged
merged 10 commits into from
Nov 29, 2023

Conversation

fanndu
Copy link
Contributor

@fanndu fanndu commented Nov 17, 2023

fix: notaryproject/notation#829

Display the validity period of the certificate when the signing time is invalid.
./bin/notation sign localhost:5000/gateway@sha256:b992672d71a62c0a94cd8640f7c0db62ffb9de65317100742bf44892b179445f Error: certificate-chain is invalid, certificate with subject "CN=test,O=Notary,L=Seattle,ST=WA,C=US" was invalid at signing time of 2023-11-12 08:33:33 +0000 UTC. Valid signing time from [2023-10-25 02:40:40 +0000 UTC] to [2023-10-26 02:40:40 +0000 UTC]

@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (483aaba) 89.28% compared to head (40b1813) 89.32%.

Files Patch % Lines
x509/cert_validations.go 80.00% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
+ Coverage   89.28%   89.32%   +0.03%     
==========================================
  Files          21       21              
  Lines        1718     1724       +6     
==========================================
+ Hits         1534     1540       +6     
  Misses        149      149              
  Partials       35       35              

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

@shizhMSFT shizhMSFT changed the title feat:invalid signing time prompt improvement feat: invalid signing time prompt improvement Nov 20, 2023
@shizhMSFT shizhMSFT changed the title feat: invalid signing time prompt improvement chore: invalid signing time prompt improvement Nov 20, 2023
shizhMSFT
shizhMSFT previously approved these changes Nov 20, 2023
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

priteshbandi
priteshbandi previously approved these changes Nov 21, 2023
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

@yizha1
Copy link
Contributor

yizha1 commented Nov 23, 2023

@fanndu this branch is out-of-date with the base branch. Maybe you need to fix it.

@fanndu
Copy link
Contributor Author

fanndu commented Nov 23, 2023

@fanndu this branch is out-of-date with the base branch. Maybe you need to fix it.

@fanndu fanndu closed this Nov 23, 2023
@fanndu fanndu reopened this Nov 23, 2023
fanndu and others added 2 commits November 23, 2023 23:31
Signed-off-by: fanndu <dufann@hotmail.com>
…oject#172)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@fanndu
Copy link
Contributor Author

fanndu commented Nov 23, 2023

@fanndu this branch is out-of-date with the base branch. Maybe you need to fix it.

Thanks. Already fix it.

@yizha1
Copy link
Contributor

yizha1 commented Nov 24, 2023

@priteshbandi @patrickzheng200 Would you mind reviewing this PR again? Thanks.

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

@Two-Hearts
Copy link
Contributor

@fanndu I'm trying to merge this PR. Could you rebase the branch?

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

@fanndu
Copy link
Contributor Author

fanndu commented Nov 28, 2023

@fanndu I'm trying to merge this PR. Could you rebase the branch?

Done. Thanks.

@Two-Hearts Two-Hearts merged commit 38b8f1a into notaryproject:main Nov 29, 2023
7 checks passed
@Two-Hearts Two-Hearts mentioned this pull request Jan 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.

docs: invalid signing time fail to sign prompt improvement
7 participants