-
Notifications
You must be signed in to change notification settings - Fork 912
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
hsmtool rune #6097
hsmtool rune #6097
Conversation
bd8d91e
to
7872023
Compare
1. Rename get_hsm_secret to get_unencrypted_hsm_secret. 2. Create a common helper for fetching full file contents. 3. Create new routine to decrypt if necessary: get_hsm_secret(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This way we always call it (we weren't for some paths!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7872023
to
6d4e942
Compare
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.
ACK 6d4e942
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.
The tool works as expected but the cli hangs if commando is used with this master rune without calling commando-rune first. For posterity, can we add the message You will still need to create a rune once the node starts, if you want commando to work (as it is only activated once it has generated one)
somewhere in this command usage?
You still need to actually make a rune when lightningd starts, as commando (for safety) won't work unless you actually generate a rune (that it knows of!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: hsmtool: `makerune` command to make a master rune for a node.
6d4e942
to
a914288
Compare
OK, I added this to the documentation. There's no really great place to add it in the tool, unfortunately: the usage message is all single lines, and the output is simply the rune: if we add a warning there it gets harder to parse. |
ACK a914288 |
This allows creation of a master rune before the node starts. You will still need to create a rune once the node starts, if you want commando to work (as it is only activated once it has generated one), but creating a default rune will give the identical results to the tool anyway.
Requested-by: @ShahanaFarooqui