You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The directory which contains the password to unlock the validator \
voting keypairs. Each password should be contained in a file where the \
name is the 0x-prefixed hex representation of the validators voting public \
key. Defaults to ~/.lighthouse/{network}/secrets.",
)
.takes_value(true)
.conflicts_with("datadir")
)
This is despite SigP using them together in our infra!
The trick is to put the datadir flag first:
# This works
lighthouse --datadir $PATH vc --secrets-dir $SECRETS# This doesn't
lighthouse vc --datadir $PATH --secrets-dir $SECRETS
It seems we should remove the conflicts_with clause.
Additionally, secrets-dir doesn't seem to function as its docs describe:
The directory which contains the password to unlock the validator
voting keypairs. Each password should be contained in a file where the
name is the 0x-prefixed hex representation of the validators voting public
key. Defaults to ~/.lighthouse/{network}/secrets.
The VC uses the flag for two things:
During validator "discovery" of keys that are not already present in the validator definitions YAML, here:
let voting_keystore_password_path = Some(default_keystore_password_path(
&keystore,
secrets_dir.as_ref(),
))
.filter(|path| path.exists());
If a key already has a validator definition, then the VC will not attempt to read the password from the secrets-dir, it will expect voting_keystore_password_path to have been set accordingly.
When creating validators via the HTTP API and the --http-store-passwords-in-secrets-dir is used.
The docs make it seem like Lighthouse might try to read the password from the secrets-dir if no password or path is present in the definitions, but this is not the case.
Version
v5.0.0
Steps to resolve
Remove conflicts_with.
Update the docs to clarify the behaviour.
The text was updated successfully, but these errors were encountered:
Description
@chong-he noticed that the VC flag
--secrets-dir
conflicts withdatadir
:lighthouse/validator_client/src/cli.rs
Lines 65 to 77 in b5bae6e
This is despite SigP using them together in our infra!
The trick is to put the datadir flag first:
It seems we should remove the
conflicts_with
clause.Additionally,
secrets-dir
doesn't seem to function as its docs describe:The VC uses the flag for two things:
lighthouse/common/account_utils/src/validator_definitions.rs
Lines 326 to 330 in b5bae6e
If a key already has a validator definition, then the VC will not attempt to read the password from the
secrets-dir
, it will expectvoting_keystore_password_path
to have been set accordingly.--http-store-passwords-in-secrets-dir
is used.The docs make it seem like Lighthouse might try to read the password from the
secrets-dir
if no password or path is present in the definitions, but this is not the case.Version
v5.0.0
Steps to resolve
conflicts_with
.The text was updated successfully, but these errors were encountered: