Skip to content

bad-key-revoker: earlier check for too many affected certs - #8987

Open
aarongable wants to merge 3 commits into
mainfrom
aarongable-patch-1
Open

bad-key-revoker: earlier check for too many affected certs#8987
aarongable wants to merge 3 commits into
mainfrom
aarongable-patch-1

Conversation

@aarongable

Copy link
Copy Markdown
Contributor

The bad-key-revoker refuses to process a row if the resulting affected certificate set is going to be too large: in such cases, we want the revocation to be manually reviewed. However, it currently computes the full affected certificate set before ever comparing the size of that set to the threshold. This means that it could spend excessive database time querying for affected certificates even when it already knows that it won't proceed with automated revocation.

Move the check against the maxRevocations threshold inside the loop, so it will bail out earlier in such cases.

The bad-key-revoker refuses to process a row if the resulting affected certificate set is going to be too large: in such cases, we want the revocation to be manually reviewed. However, it currently computes the full affected certificate set before ever comparing the size of that set to the threshold. This means that it could spend excessive database time querying for affected certificates even when it already knows that it won't proceed with automated revocation.

Move the check against the maxRevocations threshold inside the loop, so it will bail out earlier in such cases.
@aarongable
aarongable marked this pull request as ready for review August 27, 2026 18:37
@aarongable
aarongable requested a review from a team as a code owner August 27, 2026 18:37
@beautifulentropy
beautifulentropy requested review from a team and jsha and removed request for a team August 27, 2026 19:09
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.

2 participants