-
Notifications
You must be signed in to change notification settings - Fork 14
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
Chore: explicitly reset vault rotator state on ceremony restarts #3907
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is because this function needs to be called any time we restart from any rotation stage (e.g. keygen or handover), not just when we abort.
msgmaxim
force-pushed
the
feat/reset-vault-rotator
branch
2 times, most recently
from
August 29, 2023 02:19
9d3ea83
to
2e5a9bb
Compare
Codecov Report
@@ Coverage Diff @@
## main #3907 +/- ##
=====================================
- Coverage 71% 71% -0%
=====================================
Files 366 366
Lines 56762 56772 +10
Branches 56762 56772 +10
=====================================
- Hits 40540 40533 -7
- Misses 14213 14222 +9
- Partials 2009 2017 +8
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
syan095
approved these changes
Aug 29, 2023
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.
LGTM
dandanlen
approved these changes
Aug 29, 2023
dandanlen
pushed a commit
that referenced
this pull request
Aug 30, 2023
dandanlen
pushed a commit
that referenced
this pull request
Aug 30, 2023
dandanlen
pushed a commit
that referenced
this pull request
Aug 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Currently when we restart from keygen or handover (as opposed to "aborting"), vault rotator states don't get fully reset. I don't think it is actually a problem since we always overwrite values before starting to use them, but as discussed with Dan, it is better to reset them explicitly the moment they become stale.
I renamed abort_vault_rotation to reset_vault_rotation since it we now use it in situations other than aborts, and removed the
VaultRotationAborted
to avoid extra noise (it was only added recently and seems redundant considering that we already haveRotationAborted
in the validator pallet).