-
Notifications
You must be signed in to change notification settings - Fork 741
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
Revise secrets-dir
flag in the VC
#5480
Conversation
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, definitely not the most UX friendly flag
Oh, this isn't what I intended when I opened #5331. I think we should document the behaviour of the secrets-dir flag more accurately, and remove the |
I have revised the PR by removing the
|
secrets-dir
flag in the VCsecrets-dir
flag in the VC
book/src/validator-management.md
Outdated
@@ -75,6 +77,8 @@ recap: | |||
|
|||
### Automatic validator discovery | |||
|
|||
> Note: The description below only applies when the keystore files are created using the [`lighthouse account validator create`](./key-management.md) command, which has been deprecated. |
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.
I think we should delete this line
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.
Thanks CK!
Lets open an issue for the lighthouse account create
bug. I think we probably don't need to solve it if we deprecate the lighthouse account create
command, but it's good to have a record of it until that deprecation is complete.
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 5c30afb |
Issue Addressed
secrets-dir
flag and docs #5331Proposed Changes
Thesecrets-dir
flag in the validator client is not meant to be used together when starting the VC, i.e.,lighthouse vc --secrets-dir ./path
will not direct the VC to read the keystore password from the./path
. Instead, thesecrets-dir
will be created automatically when using thelighthouse account validator create
command (reference), or when using the--http-store-passwords-in-secrets-dir
and import the keystore via HTTP API. Therefore, I think it is better to hide the flag, and I also change the description to avoid confusion, and to deprecate the flag in the future.When thesecrets-dir
is created using the above methods, it will always follow the--datadir
of the VC. For example if VC is started withlighthouse vc --datadir ./folder
, then a folder namedsecrets
will be created in the directory./folder/secrets
alongside with a separate folder for the validator client./folder/validators
. Hence, this line is remained:lighthouse/validator_client/src/cli.rs
Line 76 in 5ce1619
Users who do not wish to store the keystore password in thevalidator_definitions.yml
file can use the fieldvoting_keystore_password_path
and point to a desired directory. An amendment was made in the Lighthouse book to highlight this.Edit: See the comments here: #5480 (comment)