Skip to content

Deploy sheet template: two-user validator signer

Copy into a release's DEPLOY-SHEET.md when its packet is staged with deployment-validator-units-stage --signer-shape two-user. The units and the rules are on the operator page. Replace <validator>, <release>, <chain-id>, <genesis-hash> and N.

The signer serves both rpc-serve and transport-validator-serve, so the key moves to the signer's directory and no copy stays in the data directory.

As of the November 6 handoff, unit generation and its process test are implemented, but this shape is not deployed on the devnet. On 2026-11-25 the running build 04600868 contains the unit generation, and validator 0's status listed deployment artifacts for the rpc and transport services only, with no signer service (Public RPC Operator Policy). Use a separately qualified release and an approved deployment window. Existing keys need the recorded floor in steps 5–6; a new empty guard alone does not protect their earlier signing history.

Per validator (operator's go)

The steps are the operator page's, in the same order and words.

  1. [ ] Create postfiat-signer and postfiat-signer-clients, add postfiat to the group, and write /etc/postfiat/signer/<validator>.env with POSTFIAT_SIGNER_ALLOW_PEER_UID=$(id -u postfiat).

    useradd --system --no-create-home postfiat-signer
    groupadd --system postfiat-signer-clients
    usermod -aG postfiat-signer-clients postfiat-signer
    usermod -aG postfiat-signer-clients postfiat
    install -d -m 0755 /etc/postfiat/signer
    echo "POSTFIAT_SIGNER_ALLOW_PEER_UID=$(id -u postfiat)" > /etc/postfiat/signer/<validator>.env
    install -d -o postfiat-signer -g postfiat-signer-clients -m 0700 /var/lib/postfiat-signer/<validator>
    
  2. [ ] Stop both old units, postfiat-<validator>.service and postfiat-<validator>-rpc.service: both sign with the key.

    systemctl stop postfiat-<validator>.service postfiat-<validator>-rpc.service
    
  3. [ ] Search for other copies of the key that postfiat can read, outside the signer's directory; the move is complete only when the search finds nothing.

    The search runs as postfiat over every mounted filesystem except /proc, /sys, /dev and /run, whatever the files' owner: find -readable lists the files named like key files that postfiat can read, and grep -l lists the files postfiat can read that hold private_key_hex and this key's public key; both print names only.

    PUB=$(python3 -c 'import json, sys; print(json.load(open(sys.argv[1]))["validators"][0]["public_key_hex"])' \
      /var/lib/postfiat/<validator>/validator_keys.json)
    SKIP='( -path /proc -o -path /sys -o -path /dev -o -path /run ) -prune -o'
    # Files named like key files that postfiat can read, whatever their owner.
    sudo -u postfiat find / $SKIP -type f -readable -name '*key*.json' -print 2>/dev/null
    # Files postfiat can read that hold private_key_hex and this key's public key.
    sudo -u postfiat find / $SKIP -type f -readable -size -64M -print0 2>/dev/null \
      | sudo -u postfiat xargs -0 -r grep -l -F private_key_hex 2>/dev/null \
      | sudo -u postfiat xargs -r -d '\n' grep -l -F "$PUB"
    

    Each hit other than /var/lib/postfiat/<validator>/validator_keys.json (moved below) is deleted or moved to postfiat-signer, and recorded; then search again.

  4. [ ] Move the key to /var/lib/postfiat-signer/<validator>/validator_keys.json (0600, owned by postfiat-signer); no copy stays in the data directory.

    install -o postfiat-signer -m 0600 /var/lib/postfiat/<validator>/validator_keys.json \
      /var/lib/postfiat-signer/<validator>/validator_keys.json
    shred -u /var/lib/postfiat/<validator>/validator_keys.json
    

    shred -u is best effort on a journaled filesystem: earlier blocks of the file may survive in the journal or in a backup; the search above covers files, not freed blocks.

  5. [ ] Choose the floor N by the rule above, with both old units stopped.

    The rule: the larger of the store's finalized height plus one (status) and the highest height in block_proposal_vote_locks plus one. If the old units may have voted or timed out on a height not final yet, read the tip after the other validators finalize past it. Record N.

  6. [ ] Initialize the guard once as postfiat-signer with --initialize-state --min-height N and a throwaway --socket under the signer's directory; stop it after its ready line.

    sudo -u postfiat-signer /opt/postfiat/releases/<release>/postfiat-node validator-signer-serve \
      --key-file /var/lib/postfiat-signer/<validator>/validator_keys.json \
      --state-dir /var/lib/postfiat-signer/<validator>/guard \
      --chain-id <chain-id> --genesis-hash <genesis-hash> \
      --initialize-state --min-height N \
      --socket /var/lib/postfiat-signer/<validator>/initialize.sock \
      --allow-peer-uid "$(id -u postfiat)"
    
  7. [ ] Start the signer unit, then the transport and rpc units.

    systemctl daemon-reload
    systemctl start postfiat-<validator>-signer.service
    systemctl start postfiat-<validator>.service postfiat-<validator>-rpc.service
    
  8. [ ] Run the deployment check.

    python -m postfiat_ops.validator_signer_check with the operator page's arguments and --search-root /var/lib/postfiat plus every backup directory; record its report.json.

  9. [ ] Read private_readiness and record custody_reasons.