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

  1. If the address was never funded, staked or used: stop the node, then move $DIR/validator/ off the host or delete it.
  2. 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.
  3. Whatever you keep: run chmod 700 on the directories and chmod 600 on the keystore and password files.
  4. 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 restart keeps them.

Questions: email hello@xone.sh.