Skip to content
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

Dynamic Reloading of Keys on Any FSNotify Event #7873

Merged
merged 4 commits into from
Nov 20, 2020
Merged

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Nov 20, 2020

What does this PR do? Why is it needed?

This PR attempts to reload validating keys from a file in a debounced manner if any fsnotify event is triggered, rather than just writes. The current approach would prevent symbolic links from reloading keys into the validator client. We throw errors if we attempt to reload a bad keystore or a keystore with empty keys.

Which issues(s) does this PR fix?

Fixes #7732

@rauljordan rauljordan added Ready For Review A pull request ready for code review Accounts labels Nov 20, 2020
@rauljordan rauljordan requested a review from a team as a code owner November 20, 2020 20:54
@rauljordan rauljordan self-assigned this Nov 20, 2020
@prestonvanloon
Copy link
Member

Did you confirm that nothing will happen when:

  • The file is deleted
  • The file is replaced with an empty file

Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm as long as @prestonvanloon 's concern is addressed

Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, thanks

@prylabs-bulldozer prylabs-bulldozer bot merged commit 7bd9754 into master Nov 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the on-any-event branch November 20, 2020 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to load dynamically validator key when using symbolic link
3 participants