-
Notifications
You must be signed in to change notification settings - Fork 959
Revise secrets-dir flag in the VC
#5480
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
Conversation
dapplion
left a comment
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
|
|
||
| ### 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
michaelsproul
left a comment
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 automaticallyDetailsThe pull request has been merged automatically at 5c30afb |
Issue Addressed
secrets-dirflag and docs #5331Proposed Changes
Thesecrets-dirflag in the validator client is not meant to be used together when starting the VC, i.e.,lighthouse vc --secrets-dir ./pathwill not direct the VC to read the keystore password from the./path. Instead, thesecrets-dirwill be created automatically when using thelighthouse account validator createcommand (reference), or when using the--http-store-passwords-in-secrets-dirand 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-diris created using the above methods, it will always follow the--datadirof the VC. For example if VC is started withlighthouse vc --datadir ./folder, then a folder namedsecretswill be created in the directory./folder/secretsalongside 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.ymlfile can use the fieldvoting_keystore_password_pathand point to a desired directory. An amendment was made in the Lighthouse book to highlight this.Edit: See the comments here: #5480 (comment)