Validator keys and failover: identity, vote, withdraw, and never running two

Three authorities at three heat levels: identity hot on the box, the voter hot and separate if you like, and withdraw never on the machine. Failover moves one identity, with the tower file, and never runs two.

Read the briefing
About 3 min to read 5 drills

What to remember

  1. Identity hot, withdraw cold. The identity has to sign constantly. Anza's docs say the withdraw authority "should never be stored on the remote machine".
  2. The vote account's own key does nothing. It only identifies the account. What matters are the authorized voter and the withdrawer.
  3. Never two copies. Two machines with one identity can produce duplicate blocks and double-vote. A careless failover causes more harm than the outage it fixes.
  4. Carry the tower. The tower file is your vote history. Without it, the new machine can vote against itself. Under Alpenglow, a vote-history file takes its place.
  5. Check the leader schedule before you touch it. The machine you're about to reboot may be about to produce a block.

The big picture

If you run validators, you need to know what each key does, where it lives and how failover works. It's also the fastest way to show real protocol fluency, because it connects consensus to the operations you've done for years. Check these against the current client docs, since Alpenglow and Firedancer change details.

The mental model

A bank branch. The identity is the manager's badge, worn all day. The voter is the pen used to sign the daily ledger. The withdraw authority is the vault key, kept in another building. And there's only ever one manager on shift.

Diagrams

Three heat levels
withdraw authority  COLD   hardware or multisig,
                           never on the machine
authorized voter    HOT    signs votes; passed with
                           --authorized-voter
identity            HOT    gossip, shreds, pays vote
                           fees; on the box, low value
vote account key    --     only names the account

In depth

What each one does

Identity. The node's name on the network. It signs gossip and, as leader, shreds, and it pays for vote transactions. It's used too often and too fast for a network KMS.

Authorized voter. Signs votes. It can be the identity, or separate.

Withdraw authority. Can move the vote account's funds and change its authorities. Anza's docs suggest a hardware wallet, paper wallet or multisig, and that it should never be on the machine.

Vote account keypair. Per Anza, it "does not have any function other than identifying the vote account".

Failover

A common setup: a staked identity kept safe, and each machine running under its own unstaked identity by default, with a symlink to the identity in use. To move: on the active machine, wait for a window and switch to its unstaked identity; copy the tower file across; on the standby, set-identity to the staked key with --require-tower. If the tower's lost, you can override that, and the docs warn about the safety risk. The rule underneath is that only one machine is ever the staked identity.

Restarts

Before touching a machine, look at the leader schedule and the cluster's health. agave-validator wait-for-restart-window --min-idle-time N waits until it's not due to lead for N minutes and the cluster's delinquent stake is acceptable. A snapshot should be recent, or the catch-up after restart takes far longer. Automate this in the deploy tool, so nobody has to remember it.

What this means for security

The identity sits hot on a machine you may be renting. So bound it: it holds only enough for vote fees, it's monitored for a second node using it, and rotating it is rehearsed. Inside the process, Firedancer isolates signing in a keyguard, which authorizes each request's role and payload type, because code execution elsewhere in the validator shouldn't mean signing anything at all.

Myths and facts

Myth: Put the identity key in a KMS for safety.

Fact: It signs too often and too fast for a network call. Check current client support before you claim a remote-signing option. Today's answer is bounding value and hardening locally.

Myth: A hot standby running the same identity gives instant failover.

Fact: Two nodes with one identity is the failure you're trying to avoid. A standby runs under its own identity until the switch.

Myth: The vote account key controls the stake and rewards.

Fact: The withdraw authority does. The vote account's own key only names it.

How pros do it

  • Never store the withdraw authority on the validator machine.
  • Keep the identity's balance to what vote fees need, topped up deliberately.
  • Script failover, rehearse it on testnet, and make carrying the tower part of the script.
  • Build restart windows into the deploy tool.
  • Monitor for a second node gossiping your identity.

Questions people ask

What if the identity key is stolen?

The attacker can run a node as you, with the harm that does to your votes, and spend its small balance. Stop, switch to a new identity, tell your delegators if they're affected, and investigate. Because the withdrawer isn't there, the funds aren't at risk: that's why it's separated.

I've never run a Solana validator. How do I say that?

Plainly. Then show the mapping: 'I haven't run one in production. I've run the things underneath one, and here's how I understand its keys and failure modes.' Better still, run one on testnet before the round.

Does slashing apply on Solana?

Check the current state rather than assuming: its status has been changing. Say that double-voting harms consensus and your reputation regardless, and that you'd design as if it were penalised.

Further reading

Drills · 5

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

Which of a Solana validator's keys should never be on the validator machine?

  1. The authorized voter. It signs votes continuously, so it's hot.
  2. The vote account's own keypair, because it controls the stake. Per Anza, it only identifies the account.
  3. The identity key. The identity has to be on the box. It signs constantly.
  4. The withdraw authority: it controls the vote account's funds. Anza says it "should never be stored on the remote machine".
In short

The withdraw authority: it controls the vote account's funds, so it stays cold and off the box.

Why

The structure keeps what must be hot separate from what has value. So compromising the box costs you a bad day rather than the funds.

2 Scenario: what do you do next?

Your primary validator's disk is failing. You have a hot standby in another rack, synced and running under its own unstaked identity.

Step 1. What do you check before starting?

  1. The leader schedule, so you don't switch just before your slots, and that the standby is really caught up. It's quick, and it avoids turning a planned move into missed blocks.
  2. Nothing: start immediately, because the disk is failing. A minute's check costs little unless the disk has already gone, and you'd say so.

Step 2. Now the switch. What's the order?

  1. Switch the primary to its unstaked identity first, copy the tower file, then set the standby to the staked identity, requiring the tower. There's never a moment when two machines hold the staked identity, and vote history comes along.
  2. Copy the identity key to the standby, and restart both. It has no order at all, and you've lost control of who's live.
  3. Bring the standby up as the staked identity first, so there's no gap, then stop the primary. That's two nodes with one identity: duplicate blocks and double-votes.

Step 3. The primary won't respond and its disk is dead, so the tower file is gone. What now?

  1. Override the tower requirement straight away, since that's what the flag is for. Overriding is sometimes right, but the docs warn about the safety risk, and the primary might still be alive.
  2. Be sure the primary can't come back: power it off through the BMC. Then decide deliberately whether to override the tower check, knowing that it risks double-voting, or wait. It's a real trade-off, and it needs a decision by someone who understands it, not a flag in a panic.
In short

Make sure the old one has stopped being the staked identity, carry the tower across, then bring the standby up as the staked identity; never both at once.

Why

The rule underneath is that only one machine is ever the staked identity, and vote history travels with it. Interviewers want to hear the order, and the thing that hurts: when the tower's gone.

The common mistake

Treating this as high availability, with two active copies.

3 Answer out loud

Why can't we just put the validator's identity key in a KMS or HSM like we would a treasury key?

In short

It signs too often and too fast for a network call, and a miss costs slots; so bound what it can lose, and harden it locally.

What a strong answer does
  • Why it doesn't fit: Says what it signs, how often, and what a slow signature costs.
  • What to do instead: Bounds value, isolates signing locally, monitors for a second node, rehearses rotation.
  • Protocol fluency: Gossip, shreds, vote fees and a 400 ms slot, and an honest note on what clients support today.
Why

The identity signs gossip and, when leading, shreds, on a budget where a slot is about 400 ms. A network round trip per signature doesn't fit. So the answer is different from a treasury key: little value on it, local isolation such as Firedancer's keyguard, monitoring and a rehearsed rotation. Check what current clients offer for remote signing before you say more.

The common mistake

Saying 'latency' and stopping. Say what you do instead.

4 Read the output

You're about to apply a kernel update to this host. What does this command do for you?

$ agave-validator --ledger /mnt/ledger \
    wait-for-restart-window --min-idle-time 10
  1. It blocks until this validator isn't due to lead for at least 10 minutes and the cluster is healthy enough, so you can restart safely. It watches the leader schedule and delinquency on your behalf.
  2. It keeps the validator from being scheduled as leader for 10 minutes. Nothing can change the leader schedule. It's fixed by stake for the epoch.
  3. It restarts the validator in 10 minutes. It only waits. You, or your tooling, do the restart.
  4. It tells other validators you'll be offline, so they cover your slots. Nobody covers your slots. Missed slots are missed.
In short

It waits until the node isn't due to lead for 10 minutes and the cluster can tolerate it, so the restart misses nothing.

Why

The job post's line, "the machine you are about to reboot may be about to produce a block", is exactly this. Build the wait into the deploy tool, and have a recent snapshot ready.

5 Quick recall

What file holds a validator's vote history, and must travel with the identity on failover?

In short

The tower file. Under Alpenglow, a vote-history file plays that role.

Accepted

tower · tower file · the tower

Why

It stops the node voting against its own earlier votes. Lose it and you risk double-voting, so overriding the check is a deliberate decision.

Next lesson What's in a transaction, and what a signer can check from the bytes
Drill · Validator keys and failover
0:00

Loading…