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: fixed trust store logic in verify #38

Merged
merged 13 commits into from
Aug 21, 2023
Merged

Conversation

Two-Hearts
Copy link
Contributor

The verify action would fail if user verify with the same truststore dir more than one time. It would fail at the second verification. This is because, notation cert add would fail if cert already exists.

The fix is cleaning up notation/truststore per verify. We do this because every verify is independent of each other, and notation/truststore actually serves as a snapshot of the user input truststore dir. As long as the user set their truststore following notation's spec, the verify should work.

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
@Two-Hearts Two-Hearts requested review from duffney, shizhMSFT and a team as code owners August 18, 2023 06:18
Copy link

@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 merged commit 879f728 into notaryproject:main Aug 21, 2023
6 checks passed
@Two-Hearts Two-Hearts deleted the fix branch August 21, 2023 23:47
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.

None yet

2 participants