Severity: Low. No action is needed if you never ran installer 2.0.0–2.1.2.
What happened
On a plain run with no key options, installer versions 2.0.0 through 2.1.2 created a validator key that you did not ask for. This happened on every XDC network. The installer wrote:
$DIR/validator/keystore/, an encrypted keystore file$DIR/validator/password.txt, the keystore password in plain text$DIR/validator/address.txt, the key's address$DIR/validator/keystore-to-hex.py, the tool that created the key
$DIR defaults to ./xone-<network> in the directory where you ran the installer. The files are created readable only by the user who ran the installer (directories 0700, files 0600). The password is never printed or logged. The node does not load this key unless block production is enabled.
Installer 2.1.3 and later create a key only when you ask for one.
How to check
ls -la "$DIR/validator" "$DIR/validator/keystore"
stat -c '%a %U %n' "$DIR"/validator "$DIR"/validator/* # Linux
stat -f '%Lp %Su %N' "$DIR"/validator "$DIR"/validator/* # macOS
What to do
- If the address was never funded, staked or used: stop the node, then move
$DIR/validator/off the host or delete it. - If the address was funded, staked or used:
- Create a new key with
xone account new, using a password file with mode 0600. - Move your funds and stake to the new key.
- Retire the old key.
- Never run the old and new keys at the same time.
- Create a new key with
- Whatever you keep: run
chmod 700on the directories andchmod 600on the keystore and password files. - Re-run the installer, version 2.1.3 or later, from xone.sh. Re-running re-creates the node container without the old key options. A plain
docker restartkeeps them.
Questions: email hello@xone.sh.
This article describes the source and evidence at its review date. Check the linked repository for current implementation and qualification status.
Explore the engineering evidenceEdit this page on GitHub opens the Markdown source (content/blog/installer-unrequested-validator-key/index.md). GitHub may ask you to sign in. Report a correction opens a prefilled GitHub issue for this page.