lighthouse/validator_client/src
Age Manning 7456e1e8fa Separate BN for block proposals (#4182)
It is a well-known fact that IP addresses for beacon nodes used by specific validators can be de-anonymized. There is an assumed risk that a malicious user may attempt to DOS validators when producing blocks to prevent chain growth/liveness.

Although there are a number of ideas put forward to address this, there a few simple approaches we can take to mitigate this risk.

Currently, a Lighthouse user is able to set a number of beacon-nodes that their validator client can connect to. If one beacon node is taken offline, it can fallback to another. Different beacon nodes can use VPNs or rotate IPs in order to mask their IPs.

This PR provides an additional setup option which further mitigates attacks of this kind.

This PR introduces a CLI flag --proposer-only to the beacon node. Setting this flag will configure the beacon node to run with minimal peers and crucially will not subscribe to subnets or sync committees. Therefore nodes of this kind should not be identified as nodes connected to validators of any kind.

It also introduces a CLI flag --proposer-nodes to the validator client. Users can then provide a number of beacon nodes (which may or may not run the --proposer-only flag) that the Validator client will use for block production and propagation only. If these nodes fail, the validator client will fallback to the default list of beacon nodes.

Users are then able to set up a number of beacon nodes dedicated to block proposals (which are unlikely to be identified as validator nodes) and point their validator clients to produce blocks on these nodes and attest on other beacon nodes. An attack attempting to prevent liveness on the eth2 network would then need to preemptively find and attack the proposer nodes which is significantly more difficult than the default setup.

This is a follow on from: #3328 

Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Paul Hauner <paul@paulhauner.com>
2023-04-26 01:12:36 +00:00
..
duties_service Validator registration request failures do not cause us to mark BNs offline (#3488) 2022-08-29 11:35:59 +00:00
http_api Add new validator API for voluntary exit (#4119) 2023-04-03 03:02:56 +00:00
http_metrics Add new validator API for voluntary exit (#4119) 2023-04-03 03:02:56 +00:00
signing_method Add new validator API for voluntary exit (#4119) 2023-04-03 03:02:56 +00:00
attestation_service.rs Validator registration request failures do not cause us to mark BNs offline (#3488) 2022-08-29 11:35:59 +00:00
beacon_node_fallback.rs Log a WARN in the VC for a mismatched Capella fork epoch (#4050) 2023-03-06 04:08:48 +00:00
block_service.rs Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
check_synced.rs Remove duplicate log in BN fallback (#2116) 2021-01-06 03:01:48 +00:00
cli.rs Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
config.rs Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
doppelganger_service.rs Clippy lints for rust 1.66 (#3810) 2022-12-16 04:04:00 +00:00
duties_service.rs Optimise attestation selection proof signing (#4033) 2023-03-05 23:43:31 +00:00
graffiti_file.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
initialized_validators.rs Optimise update_validators by decrypting key cache only when necessary (#4126) 2023-03-29 02:56:39 +00:00
key_cache.rs Clippy lints for rust 1.66 (#3810) 2022-12-16 04:04:00 +00:00
latency.rs Add VC metric for primary BN latency (#4051) 2023-03-06 04:08:49 +00:00
lib.rs Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
notifier.rs Add new VC metrics for beacon node availability (#3193) 2022-05-26 02:05:16 +00:00
preparation_service.rs Publish subscriptions to all beacon nodes (#3529) 2022-09-28 19:53:35 +00:00
signing_method.rs Add new validator API for voluntary exit (#4119) 2023-04-03 03:02:56 +00:00
sync_committee_service.rs Sync committee sign bn fallback (#3624) 2022-11-13 22:40:43 +00:00
validator_store.rs Add new validator API for voluntary exit (#4119) 2023-04-03 03:02:56 +00:00