-
Notifications
You must be signed in to change notification settings - Fork 902
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
exposesecret: a way to back up the hsm_secret via rpc (if enabled!) #7647
Open
rustyrussell
wants to merge
4
commits into
ElementsProject:master
Choose a base branch
from
rustyrussell:guilt/exposesecret-plugin
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
exposesecret: a way to back up the hsm_secret via rpc (if enabled!) #7647
rustyrussell
wants to merge
4
commits into
ElementsProject:master
from
rustyrussell:guilt/exposesecret-plugin
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
rustyrussell
force-pushed
the
guilt/exposesecret-plugin
branch
from
September 6, 2024 06:22
9272d46
to
8a68385
Compare
niftynei
reviewed
Sep 6, 2024
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 8a68385
- int: parsed as a signed integer (64-bit) | ||
- flag: no-arg flag option. Presented as `true` if config specifies it. | ||
- `string`: a string | ||
- `string-conceal`: a string which will appear as "..." in `listconfigs`. |
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.
very cool!
ShahanaFarooqui
force-pushed
the
guilt/exposesecret-plugin
branch
3 times, most recently
from
September 11, 2024 18:24
1a44756
to
ad422bb
Compare
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Being able to back up the hsm_secret is critical, but you cannot do this through a UI, because of course we do not allow such access. People have lost funds because they didn't back up. This allows access to the hsm_secret if you use a password set in the config file. (If it's not set, the command does not work). This is a compromise, of course. Changelog-Added: `exposesecret` command for encouraging hsm_secret backups. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Gives us more room for user bits in opt. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…uld be concealed. And use it for `exposesecret-passphrase`. This is probably overly cautious, but it makes me feel a little better that we won't leak it to someone with read-only access. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ShahanaFarooqui
force-pushed
the
guilt/exposesecret-plugin
branch
from
September 25, 2024 17:47
ad422bb
to
c1f9fa9
Compare
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.
As co-programmed with @ShahanaFarooqui .
If you set
exposesecret-passphrase
you can use that to retrieve the hsm_secret using theexposesecret
command. It doesn't handle encrypted hsm secrets (if you're prepared type in the secret on every start, you don't want this).