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: fix signerInfo.authenticSigningTime according to spec #211

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

Two-Hearts
Copy link
Contributor

@Two-Hearts Two-Hearts commented Jul 15, 2024

This PR fixes signerInfo.AuthenticSigningTime to return the correct results.

According to spec: https://github.com/notaryproject/specifications/blob/main/specs/signature-specification.md#signing-time--authentic-signing-time:
authentic signing time is a valid concept only under signing scheme notary.x509.signingAuthority. Therefore, for other signing schemes, this function should return an error.

Resolves #38

Signed-off-by: Patrick Zheng <[email protected]>
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.88%. Comparing base (e18808c) to head (74ad57b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
+ Coverage   90.43%   90.88%   +0.45%     
==========================================
  Files          26       26              
  Lines        1777     1778       +1     
==========================================
+ Hits         1607     1616       +9     
+ Misses        120      112       -8     
  Partials       50       50              

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

Signed-off-by: Patrick Zheng <[email protected]>
signature/types.go Outdated Show resolved Hide resolved
signature/types.go Outdated Show resolved Hide resolved
signature/types.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
@Two-Hearts Two-Hearts requested a review from shizhMSFT July 15, 2024 08:35
@Two-Hearts Two-Hearts changed the title update: authentic signing time fix: fix signerInfo.authenticSigningTime according to spec Jul 15, 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

@Two-Hearts Two-Hearts requested a review from priteshbandi July 16, 2024 00:00
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

@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

@Two-Hearts Two-Hearts merged commit f45197c into notaryproject:main Jul 16, 2024
9 checks passed
@Two-Hearts Two-Hearts deleted the authenticSigningTime branch July 16, 2024 00:13
@Two-Hearts Two-Hearts mentioned this pull request Jul 22, 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.

Support AuthenticSigningTime in SignerInfo
4 participants