-
Notifications
You must be signed in to change notification settings - Fork 9
MTC worker: validate bootstrap certs #113
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
MTC worker: validate bootstrap certs #113
Conversation
This is logic that bootstrap MTC clients will need to implement, but only really useful for testing here. |
04d0763 to
620f885
Compare
rozbb
left a comment
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.
Rebased. Picked up one odd change
|
Fixed TODO on |
lukevalenta
left a comment
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.
Just some minor nits, but this looks good!
| .into(); | ||
| } else { | ||
| issuer_key_hash = Sha256::digest( | ||
| intermediates[0] |
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.
I think here we're not guaranteed that intermediates[0] exists, so might need to grab the found root.
Currently, the
validate_chainfunction in the Merkle Tree Certificate worker does not verify signatures on the provided bootstrap certificate chain (#109). This is not a security issue, but it does mean the log can get spammed easier because it will put obviously bad certificates on the log.This PR:
static_ct_apitox509_utilstatic_ct_apiandmtc_workergive to the generic validatorOne question I had: what precisely is
validate_correspondence()exposed for? I didn't implement validation there because it had a slightly different type signature, and it didn't look like it was used anywhere. I can def add it if it's needed though.