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

Add intermediate and root verify flags #180

Merged

Conversation

malancas
Copy link
Contributor

@malancas malancas commented Dec 9, 2022

Summary

Part of #121

Release Note

Add --root-certificates and --intermediate-certificates flags to the verify command. The client can now either pass intermediate and root certificates together using the --certificate-chain flag or separately using these two new flags.

Documentation

Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
@malancas malancas requested a review from a team as a code owner December 9, 2022 18:35
@codecov-commenter
Copy link

Codecov Report

Merging #180 (05c0fbb) into main (fcc22ae) will decrease coverage by 1.36%.
The diff coverage is 5.00%.

@@            Coverage Diff             @@
##             main     #180      +/-   ##
==========================================
- Coverage   48.17%   46.81%   -1.37%     
==========================================
  Files          18       18              
  Lines        1067     1098      +31     
==========================================
  Hits          514      514              
- Misses        495      526      +31     
  Partials       58       58              
Impacted Files Coverage Δ
cmd/timestamp-cli/app/verify.go 9.58% <5.00%> (-1.54%) ⬇️
pkg/verification/verify.go 62.04% <0.00%> (-0.23%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

outputContains(t, out, "Successfully verified timestamp")
}

func TestVerifyPassLeafCertificate(t *testing.T) {
func TestVerify_RootAndIntermediateCertificateFlags(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can rewrite all or most of these verify tests as table tests in a follow up PR.

cmd/timestamp-cli/app/verify.go Outdated Show resolved Hide resolved
cmd/timestamp-cli/app/verify.go Show resolved Hide resolved
Signed-off-by: Meredith Lancaster <malancas@github.com>
haydentherapper
haydentherapper previously approved these changes Dec 9, 2022
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just comment nits!

cmd/timestamp-cli/app/verify.go Outdated Show resolved Hide resolved
cmd/timestamp-cli/app/verify.go Outdated Show resolved Hide resolved
malancas and others added 2 commits December 9, 2022 14:04
Co-authored-by: Hayden B <hblauzvern@gmail.com>
Signed-off-by: Meredith Lancaster <malancas@users.noreply.github.com>
Co-authored-by: Hayden B <hblauzvern@gmail.com>
Signed-off-by: Meredith Lancaster <malancas@users.noreply.github.com>
haydentherapper
haydentherapper previously approved these changes Dec 9, 2022
Signed-off-by: Meredith Lancaster <malancas@github.com>
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

3 participants