-
Notifications
You must be signed in to change notification settings - Fork 55
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
Budget tweaks #164
Budget tweaks #164
Conversation
Codecov Report
@@ Coverage Diff @@
## main #164 +/- ##
==========================================
- Coverage 96.62% 96.61% -0.02%
==========================================
Files 15 15
Lines 4480 4463 -17
==========================================
- Hits 4329 4312 -17
Misses 151 151
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
😅 I have 2/3 of these changes done in a local branch. I also refactored the |
Could we do the |
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 went back and forth in my head a little bit about whether CRL signature validations should count against the budget.
Initially I was thinking they shouldn't, since the set of potentially consulted CRLs isn't an attacker controlled input. In a perfect world it would be a fixed number of CRL validation signature checks based on the number of configured CRLs, and not influenced by the certificates found in path building, but we know that's not the case today (#18). Applying a budget seems reasonable with that in mind.
In either case since this is a hard error for path building it doesn't seem as though it would introduce any security risk. E.g. its not as though path building would continue without revocation status checking if the budget were expended.
Does that reasoning match up with what you were thinking?
For me, the main idea is that |
Two minor style nits and an attempt at better forcing consumption of signature verification budget.
This is basically follow-up from #163.