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

feat(entrypoint): add support for rotating mnemonic through docker entrypoint #311

Closed
wants to merge 2 commits into from

Conversation

talalashraf
Copy link
Contributor

@talalashraf talalashraf commented Sep 16, 2022

The following changes were introduced:

  • some issues/recommendations around usage of quotes, leveraging arrays for args, using < instead of piping input etc. came from shellcheck. the file now passes shellcheck
  • added a rotate_mnemonic function. This function is called before running the daemon in auto mode if mnemonic exists already
  • the function checks for a file called rotate in tofnd home. if found, it will rotate the key and delete the rotate file. if not found it will skip rotation
  • this makes it easy to rotate the mnemonic. we simply have to add a file in tofnd home and thats it.

@talalashraf talalashraf force-pushed the talal/rotate-mnemonic-entrypoint branch 4 times, most recently from 9cc08b4 to c5f5610 Compare September 16, 2022 23:30
@talalashraf talalashraf force-pushed the talal/rotate-mnemonic-entrypoint branch from c5f5610 to b054cf1 Compare September 16, 2022 23:30
@talalashraf talalashraf marked this pull request as ready for review September 16, 2022 23:36
@talalashraf
Copy link
Contributor Author

this will be irrelevant after we deploy the helm based validators. we will find a better way of doing it.

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.

1 participant