Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 flaky CT submission bug #1085
Fix flaky CT submission bug #1085
Changes from 16 commits
77eebe4
7c2d24f
1d0f011
0288f6d
00ecea7
d2cadff
8f78848
3778098
965f82a
d0ff25e
19e8688
e354fa0
87ae61d
cbc995c
9b97936
5ddf7bf
4c98b10
88cfb78
4de8fb7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This branch is only executed if
sub.results[logURL].sct == nil
, i.e if the SCT was not matched to a groupName above. Is this even something that we want to allow?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.
sub.results[logURL].sct == nil
means a previous SCT has been set in sub.results from the same log operator (the sct gets set to nil insub.request(...)
). This branch is used for the situation where an SCT from an already submitted log operator can be used in the results.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.
Shouldn't this just be: extraSubmissions > 0?
Why does it compare a number of SCTs, with a number of groups?
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.
extraSubmissions
represents the number of SCTs that need to be submitted to other log operators. If we are in this part of the branch, it implies that an SCT has already been submitted under this log operator. We need to make sure that adding this SCT tosub.results
will still allow us to satisfy the distinct log operator criterion. For example, a certificate that has a lifetime > 180 days requires 3 SCTs but only 2 distinct log operators. This means we can use 2 SCTs from 1 log operator. We need to compareextraSubmissions
withsub.remainingSubmissions
extraSubmissions
was a misleading name. I have renamed it toreservedSubmissions
and added a comment to clear up the confusion.