API key import
Last updated
Last updated
The role supports importing keystores using the Key manager API. This is a standard Ethereum API supported by all clients. In most cases this is the preferred way to import keys. It allows importing the keys along with the slashing protection DB. This requires that the Validator client API are enabled - refer to for details on how to do it. The tasks will dynamically retrieve the authentication token and use it for the API call.
There are two separate tasks:
Import keystores without slashing protection db (requires keystores_without_slashing_protection variable)
Import keystores with slashing protection db (requires keystores_with_slashing_protection variable)
As the task naming implies, one is used to import keys without slashing protection DB and other with it. Implementing this kind of logic in Ansible is cumbersome and separating it in two tasks makes them simpler.