-
Notifications
You must be signed in to change notification settings - Fork 13
Save decisions in certstore #322
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
Conversation
|
Based on #320 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
==========================================
+ Coverage 82.88% 82.92% +0.04%
==========================================
Files 15 15
Lines 1683 1687 +4
==========================================
+ Hits 1395 1399 +4
Misses 168 168
Partials 120 120
|
| if err != nil { | ||
| return xerrors.Errorf("forming certificate out of decision: %w", err) | ||
| } | ||
| err = h.client.certstore.Put(h.runningCtx, cert) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we should spend the extra time and validate this certificate. We can either do that inside the certstore, or here.
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
| if err != nil { | ||
| return xerrors.Errorf("forming certificate out of decision: %w", err) | ||
| } | ||
| _, _, _, err = certs.ValidateFinalityCertificates(h, h.NetworkName(), current.Entries, decision.Vote.Instance, cert.ECChain.Base()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: you don't need to pass the base. If you pass nil, it'll just ignore it.
No description provided.