Validators: keys, slashing, client diversity, upgrades, and the availability/safety tradeoff

Being offline costs a little; double signing costs a lot. So every design biases to fail closed, and 'unreachable' never means 'stopped'.

Read the briefing
About 4 min to read 7 drills

What to remember

  1. Never start a second signer to chase uptime. Automatic failover is the most common cause of slashing. Handover is manual and verified.
  2. Unreachable is not stopped. Prove the old signer cannot sign — power off, key removed, signer lock — before starting a replacement.
  3. Migrate the slashing protection database with the keys. EIP-3076 interchange. Without it, a restore can sign a conflicting message.
  4. Missed proposals are the expensive miss. Rare and revenue-bearing — alert per occurrence, not on a percentage.
  5. Fork upgrades have a deadline. Version inventory, canary early, staged rollout, freeze around activation.

The big picture

Validator operations is the part of web3 infrastructure where ordinary SRE instincts are actively dangerous. The reflex to add redundancy, fail over automatically, and maximize uptime is exactly how operators get slashed. The topic covers slashing and its causes, the availability-versus-safety bias, key custody with remote signers, client diversity, fork upgrades, and MEV-boost failure handling.

The mental model

Two failure costs, wildly asymmetric. Being offline costs small, linear inactivity penalties. Signing twice costs a slashing penalty, forced exit, and reputational damage that ends businesses. So every design decision biases toward "at most one signer, ever", and availability is bought with fast, verified manual handover rather than automatic failover.

In depth

Slashing: what it is and who causes it

Slashable offences are provable contradictions: on Ethereum, proposing two different blocks for the same slot or making surrounding/double attestations; on Cosmos-style chains, equivocation at the same height and round. The overwhelming majority of real slashings are self-inflicted: an operator runs two copies of the same key, usually after a "failover" or a restore from a backup while the original is still running, or by importing keys onto a new machine without confirming the old one is stopped.

Defences, in order of importance: keep a slashing protection database and migrate it with the keys (EIP-3076 interchange format); use a remote signer that holds the key once and enforces protection centrally; enable doppelganger detection so a client refuses to attest until it has observed that the key is not already active; and make "is the other host definitely stopped?" a physically verified step in every runbook. On Ethereum the penalty scales with the correlation penalty: many validators slashed in the same window are punished far more severely, which is why a fleet-wide mistake is catastrophic rather than merely expensive.

Availability versus safety, and upgrades

Inactivity leaks and missed attestations cost a small fraction of rewards; slashing costs a large stake penalty plus ejection. That asymmetry gives the rule: fail closed. Never start a second signer to improve uptime. Redundancy is applied to the things that are safe to duplicate, beacon nodes, network paths, RPC endpoints, while the signer stays singular (or uses a real distributed-signing protocol such as DVT/SSV or Horcrux, which is a different mechanism with cryptographic protection, not just two copies).

Fork upgrades are deadline-driven: clients that are not fork-ready by the activation epoch follow the wrong chain and miss everything. The pattern is an automated version inventory, a canary validator upgraded early, staged rollout of the rest, a change freeze around activation, and a rollback plan that never involves two signers. Auto-update on validators is an anti-pattern for the same reason.

Keys and MEV

Key custody: signing keys should sit behind a remote signer (Web3Signer, Horcrux for Cosmos, or an HSM) so the beacon or consensus process never holds them; withdrawal credentials should be separate, colder, and ideally multisig-controlled; every key operation should be audited. "Where is the key, who can read it, and what stops two processes using it" is the first question a serious counterparty asks.

MEV-boost style block production adds external relays and builders: the validator asks relays for a payload and signs a header. Failure modes are missed proposals (revenue lost forever, unlike attestations which are cheap to miss), relay outages, and payloads that fail validation. The operational requirements are multiple relays, a circuit breaker back to locally built blocks, timeouts tight enough to still propose, and monitoring of proposal success separately from attestation health, because proposals are rare, valuable, and easy to miss silently.

Myths and facts

Myth: Set up automatic failover so the validator never goes down.

Fact: Automatic failover is the most common cause of double signing; prefer downtime and a verified manual handover.

Myth: Restoring a validator from a backup is safe if the original host is unreachable.

Fact: Unreachable is not stopped. Verify the original cannot sign (power off, key removed, signer locked) before starting a replacement.

Myth: Slashing is mostly caused by attackers.

Fact: It is mostly caused by operators running duplicate keys during maintenance or recovery.

Myth: Missing attestations and getting slashed are both just penalties.

Fact: Orders of magnitude apart, and slashing includes forced exit plus a correlation penalty that grows with how many validators are affected together.

Myth: MEV-boost is optional plumbing; if the relay is down the validator just proposes normally.

Fact: Only if a circuit breaker to local block building is configured and tested; otherwise a relay failure means a missed proposal.

How pros do it

  • One signer, always: remote signer or DVT, slashing protection database migrated with keys, doppelganger detection on.
  • Design failover as a documented, verified manual handover with a hard 'confirm the old signer is dead' step.
  • Separate withdrawal credentials from signing keys and keep them colder, multisig where possible.
  • Spread the fleet across clients and hosts; upgrade with a canary and a freeze window ahead of fork activation.
  • Run multiple relays with a circuit breaker to local building; alert on missed proposals separately from attestation effectiveness.

Questions people ask

Our validator host died. What is the safe recovery?

Lead with the gate: prove the old host cannot sign (powered off at the BMC, key removed, or signer disabled) before anything starts elsewhere. Then move the keys together with the slashing protection database, then start. If you cannot get that proof, say you would wait out the offline penalties and put the cost comparison in front of stakeholders. Interviewers are listening for 'unreachable is not stopped'.

How do we handle a hard fork?

Describe it as a scheduled operation with a deadline: automated version inventory that alerts on any non-fork-ready release, a canary validator upgraded a week early, staged rollout, a change freeze around activation, and a rollback plan that never starts a second signer.

Why do missed proposals matter more than missed attestations?

Proposals are rare and carry the block reward plus MEV, so one missed is a large, unrecoverable revenue event; a missed attestation is a tiny penalty. Add that you alert per missed proposal, because a percentage-based alert would never fire in time.

Is running two beacon nodes dangerous?

No. Say clearly that beacon nodes, network paths and RPC endpoints are safe to duplicate; it is the signing key that must exist in exactly one active place. That distinction is what the interviewer is checking.

What is doppelganger detection?

The client waits a couple of epochs before attesting to see whether the key is already active on the network. Present it as a safety net that costs a short delay at start-up, not as a substitute for verified shutdown of the old host.

Further reading

Drills · 7

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

An engineer on your team proposes a hot-standby validator that automatically starts signing if the primary stops responding for 60 seconds. How do you respond?

  1. Nothing is wrong; 60 seconds is long enough to be safe. No timeout makes 'unreachable' equal 'stopped'.
  2. It is fine as long as both use the same slashing protection database file. A shared file over a network filesystem is not a lock, and split-brain persists.
  3. The problem is only the 60-second delay, which loses attestations. The lost attestations are trivial; the double-sign risk is the issue.
  4. A network partition or a monitoring failure can leave both signing with the same key, which is a slashable double sign; the correct bias is to fail closed and accept short downtime instead. Automatic failover cannot distinguish a dead primary from an unreachable one; the penalty asymmetry makes downtime the safer failure.
In short

Automatic failover can leave two signers on one key, a slashable double sign; accept short downtime instead.

Why

Inactivity costs a small penalty; slashing costs a large one plus ejection, with a correlation penalty if several validators do it together. The safe patterns are a single remote signer that enforces exclusivity, a real distributed-signing protocol (DVT/SSV, Horcrux), or a manual handover with verified shutdown.

The common mistake

Trying to make the failover safe with a longer timeout or a shared slashing-protection file. No timeout turns 'unreachable' into 'stopped', and a shared file over the network is not a lock.

Read the docs

2 Scenario: what do you do next?

At 02:40 a datacentre loses power to the rack holding 30 validators. The hosts are unreachable; the provider says power will return "within a few hours" but cannot confirm. You have spare capacity elsewhere and encrypted key backups. Business stakeholders are asking you to restore signing immediately.

Step 1. What is your first decision?

  1. Do not start the keys elsewhere until you can prove the original hosts cannot sign; establish that proof (remote power off via BMC or provider confirmation of power removal, or disable the remote signer if one is in use) while calculating the actual cost of staying offline. Unreachable is not stopped; the entire slashing risk is in that gap, and the offline cost is small and quantifiable.
  2. Wait silently until power returns. Waiting may be right, but silence is not: stakeholders need the cost comparison and a decision.
  3. Restore the keys on spare capacity now; the hosts are clearly down. If power returns while the new instances are signing, 30 validators double sign with a correlation penalty.
  4. Exit all 30 validators to be safe. Exiting is slow, irreversible for the exit queue, and far more costly than a few hours offline.

Step 2. The provider confirms in writing that power to the rack is physically disconnected and cannot be restored without their action. What now?

  1. Restore on spare capacity without the protection databases; the keys have not signed since the outage. The protection database is what prevents signing a conflicting message relative to what was already signed; migrate it.
  2. Restore on spare capacity with the slashing protection databases from backup, verify each validator's protection state before enabling signing, and require provider notification plus your own shutdown step before that rack is ever powered on again. Proof of exclusivity plus protection database migration is exactly the safe path, with a control against the old hosts returning.
  3. Restore half now to reduce risk. Halves the revenue recovery without changing the safety property; exclusivity is what matters, not count.
  4. Keep waiting since power might return sooner. You now have proof of exclusivity, which was the blocker.

Step 3. Afterwards, what changes?

  1. Move to remote signing (or DVT) so exclusivity is enforced by a lock rather than by physical proof, spread validators across racks and providers, write the outage playbook with the 'prove it cannot sign' step, and rehearse it quarterly with the cost comparison precomputed. Turns a tense judgment call into a mechanism, and reduces correlated exposure.
  2. Buy a generator for the rack. Addresses one cause; the correlated placement and the manual exclusivity problem remain.
  3. Automate failover so this is faster next time. This is the design that causes slashings; automate the proof, not the signing.
In short

Do not start the keys elsewhere until you can prove the old hosts cannot sign; unreachable is not stopped.

Why

The whole exercise is the availability-safety asymmetry under business pressure. Interviewers listen for 'prove it cannot sign' as a hard gate, the slashing protection database, correlation risk across 30 validators, and a follow-up that replaces judgment with a mechanism.

The common mistake

Treating 'the hosts are unreachable' as proof they are stopped and restoring the keys elsewhere. If power returns while the new instances are signing, thirty validators double sign together and the correlation penalty applies.

Read the docs

3 Pick the strongest answer

Why would you put validator signing keys behind a remote signer such as Web3Signer or an HSM rather than on the validator client host?

  1. It allows running two validator clients safely with the same key. A signer can enforce exclusivity for protection, but the design intent is one active signer, not licence for duplicates.
  2. It removes the need for a slashing protection database. The signer is where protection is enforced; the database still exists, centrally.
  3. It makes signing faster. It adds a network hop; the benefit is security and exclusivity.
  4. The key never lives in the workload's process or filesystem, the signer enforces slashing protection and policy centrally (one place that can say no), and every signature is audited, so compromising a node does not immediately mean losing the key. Separation of key from workload plus centralized protection and audit is the whole point.
In short

The key never lives on the node, and the signer enforces slashing protection and logs every signature in one place.

Why

Remote signing separates custody from operation. It also makes key migration, auditing, and access control tractable; combined with tiered custody (hot signing keys, colder withdrawal credentials), it is the baseline design counterparties expect.

Read the docs

4 Read the output

It is eight minutes after fork activation. What happened, and what do you do about it?

# 06:00 UTC; the fork activated at 05:52 UTC; release notes: v7.0.0 or later required for this fork
$ ansible validators -m shell -a 'lighthouse --version | head -1' | sort | uniq -c
  38 Lighthouse v7.0.0
   6 Lighthouse v6.0.0
$ grep -c "Beacon chain is optimistic\|Invalid fork" /var/log/lighthouse/*.log | tail -3
/var/log/lighthouse/vc-41.log:0
/var/log/lighthouse/vc-42.log:214
/var/log/lighthouse/vc-43.log:198
# attestation effectiveness dashboard: 38 validators ~99%, 6 validators 0% since 05:52
  1. Move the six validators' keys to healthy hosts immediately to restore duties. Moving keys while the old clients are running is exactly how double signing happens; upgrade in place.
  2. The network is degraded; wait for finality. 38 validators are at 99%; the problem is local to the six.
  3. Six validators are on a pre-fork release and are following the wrong chain, so they are missing every duty since activation. Upgrade those six to the fork-ready version and restart; do not start replacements elsewhere with the same keys while the old ones may still sign. Version inventory plus zero effectiveness from the activation time is conclusive; the fix is an upgrade in place.
  4. The six validators are slashed; exit them. Following the wrong chain misses duties; it does not create a slashable double sign by itself.
In short

Six validators still run the pre-fork release and follow the wrong chain; upgrade them in place and never move their keys elsewhere.

Why

Fork upgrades are deadline work: an automated version inventory before activation would have caught six stragglers. The remediation must respect the one-signer rule: upgrade in place rather than migrating keys under time pressure.

Read the docs

5 Find what's broken

This chart is one incident away from a slashing and a lost proposal. Which three settings would you refuse to ship?

# validator-client.yaml (operator's deployment values)
validator:
  keystoresPath: /var/lib/validator/keys
  keystorePasswordFile: /var/lib/validator/password.txt
  slashingProtection: { enabled: false }
  doppelgangerProtection: false
  builder: { enabled: true, relays: [https://relay-a.example], fallbackToLocalBlocks: false, timeoutMs: 3000 }
  graffiti: "prod-fleet"
replicaCount: 2
In short

Line 5 turns off slashing protection, line 9 runs two signers for one key, and line 7 has one relay and no local block fallback.

What's broken
  • Line 5: Slashing protection is disabled, so the client has no record preventing it from signing a conflicting message after a restart or a restore.
  • Line 9: replicaCount: 2 runs two validator clients with the same keystores: two active signers for one key.
  • Line 7: One relay and fallbackToLocalBlocks false: a relay outage, a slow response, or a rejected payload means no block is proposed at all.
Why

The keystore password on disk (line 4) is a real weakness but is addressed by moving to a remote signer; doppelganger protection off (line 6) is a missing safety net rather than a cause; graffiti (line 8) is cosmetic. The three flagged settings are each sufficient to cause a serious loss on their own.

Read the docs

6 Design round

Design validator operations for 500 Ethereum validators run by a small team: custody, signing topology, client and host diversity, upgrade process, MEV setup, monitoring, and the incident playbooks. State the tradeoffs you are making.

  • Three engineers, on-call rotation; no 24/7 staffing.
  • Customer stake: a slashing event would end the business.
In short

A strong answer makes two active signers structurally impossible, through a signer lock or DVT, and accepts hours of downtime as the price.

A strong answer covers
  • Custody tiers: signing keys behind remote signer/HSM, withdrawal credentials separate and cold (multisig), audited access.
  • Signing topology enforcing exclusivity (remote signer lock or DVT), slashing protection databases backed up and migrated with keys, doppelganger detection.
  • Diversity: multiple execution and consensus clients, spread across hosts, racks, providers, and regions; correlation risk explicitly discussed.
  • Upgrades: automated version inventory, canary validators, staged rollout, freeze around fork activation, no auto-update.
  • MEV: multiple relays, circuit breaker to local block building, proposal success monitored separately.
  • Monitoring: duty-level SLIs (attestation effectiveness, inclusion distance, missed proposals), height/peers, alerting that pages only on what a human must fix at 3 a.m.
  • Playbooks: host loss, datacentre loss, suspected key compromise, fork day, each with a 'prove it cannot sign' gate; rehearsed.
  • Tradeoffs named: uptime vs safety, DVT complexity vs manual handover, cost of diversity, small team means automation over heroics.
What a strong answer does
  • design quality: Full custody tiering, exclusivity mechanism, diversity across several axes, disciplined upgrades, MEV circuit breaker, duty SLIs, rehearsed playbooks with a safety gate.
  • risk reasoning: Quantifies the asymmetry, discusses correlation penalties, and designs every failover around proving exclusivity.
  • fit to constraints: Chooses mechanisms a three-person team can operate: automation, few pages, rehearsed runbooks, deliberate simplicity.
  • communication: Threat-first framing, decisions with reasons, tradeoffs stated, and a verification plan.
Why

The strongest answers make exclusivity structural, tier custody, quantify the asymmetry to the business, and pick mechanisms a small team can actually run and rehearse.

Read the docs

7 Quick recall

In practice, what actually gets validators slashed?

In short

An operator running the same key in two places at once.

Accepted

running two copies of the same key · duplicate signers · double signing from two instances

Why

Operator error: two active signers for one key, usually after a failover, restore, or migration where the original was not confirmed stopped.

That's the last lesson in mission 11 Pick your next mission
Drill · Validators
0:00

Loading…