lighthouse/common
Michael Sproul e961ff60b4 Implement standard keystore API (#2736)
## Issue Addressed

Implements the standard key manager API from https://ethereum.github.io/keymanager-APIs/, formerly https://github.com/ethereum/beacon-APIs/pull/151
Related to https://github.com/sigp/lighthouse/issues/2557

## Proposed Changes

- [x] Add all of the new endpoints from the standard API: GET, POST and DELETE.
- [x] Add a `validators.enabled` column to the slashing protection database to support atomic disable + export.
- [x] Add tests for all the common sequential accesses of the API
- [x] Add tests for interactions with remote signer validators
- [x] Add end-to-end tests for migration of validators from one VC to another
- [x] Implement the authentication scheme from the standard (token bearer auth)

## Additional Info

The `enabled` column in the validators SQL database is necessary to prevent a race condition when exporting slashing protection data. Without the slashing protection database having a way of knowing that a key has been disabled, a concurrent request to sign a message could insert a new record into the database. The `delete_concurrent_with_signing` test exercises this code path, and was indeed failing before the `enabled` column was added.

The validator client authentication has been modified from basic auth to bearer auth, with basic auth preserved for backwards compatibility.
2022-01-30 23:22:04 +00:00
..
account_utils Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
clap_utils Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
compare_fields Check for unused deps in CI (#1262) 2020-06-14 10:59:50 +10:00
compare_fields_derive Update external deps (#1711) 2020-10-05 08:22:19 +00:00
deposit_contract Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
directory Add background file logging (#2762) 2021-11-30 03:25:32 +00:00
eth2 Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
eth2_config Native support for Gnosis Beacon Chain network (#2931) 2022-01-27 22:58:33 +00:00
eth2_interop_keypairs Fix nightly bump num bigint (#2591) 2021-09-12 23:55:20 +00:00
eth2_network_config Native support for Gnosis Beacon Chain network (#2931) 2022-01-27 22:58:33 +00:00
eth2_wallet_manager Remove unused deps (#2592) 2021-09-30 04:31:42 +00:00
fallback Improve eth1 fallback logging (#2490) 2021-08-30 00:51:26 +00:00
filesystem Fix linting error on Windows (#2759) 2021-11-01 07:44:42 +00:00
hashset_delay Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
lighthouse_metrics Additional networking metrics (#2549) 2021-12-22 06:17:14 +00:00
lighthouse_version v2.1.1 (#2951) 2022-01-25 00:46:24 +00:00
lockfile 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
logging 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
lru_cache Keep track of failed head chains and prevent re-lookups (#1534) 2020-08-18 03:54:09 +00:00
malloc_utils Set mmap threshold to 128KB in malloc utils (#2937) 2022-01-26 23:14:24 +00:00
monitoring_api Fix metric name for monitoring (#2950) 2022-01-24 22:33:02 +00:00
sensitive_url Add SensitiveUrl to redact user secrets from endpoints (#2326) 2021-05-04 01:59:51 +00:00
slot_clock Avoid penalizing peers for delays during processing (#2894) 2022-01-12 02:36:24 +00:00
target_check Improve compilation error on 32-bit (#2424) 2021-06-30 04:56:22 +00:00
task_executor [Merge] Implement execution_layer (#2635) 2021-12-02 14:26:51 +11:00
test_random_derive Update external deps (#1711) 2020-10-05 08:22:19 +00:00
validator_dir Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
warp_utils Support duplicate keys in HTTP API query strings (#2908) 2022-01-20 09:14:19 +00:00
README.md Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00

eth2

Common crates containing eth2-specific logic.