Beacon node authentication
Send authenticated requests to a beacon node protected by HTTP Basic, or header-based access control.
Last updated
Send authenticated requests to a beacon node protected by HTTP Basic, or header-based access control.
Last updated
If you want to use Charon with a protected beacon node, then you can supply charon run
with the --beacon-node-headers
flag. The flag's value should be set like: Authorization=Basic <credentials>
where Authorization
will be the header key and Basic <credentials>
will be the header value. The <credentials>
are a encoding of the username and password joined by a single colon :
.
These headers will be sent in every request to every beacon node. This could leak your credentials to the other beacon nodes. Make sure you trust every listed beacon node.
Suppose we have a HTTP Basic access protected beacon node with username john
and password doe
. To access it we would construct the credentials by running the following command:
Then you could pass the flag to your Charon instance like this:
Or you could specify it as an environment variable like this: