[Merged by Bors] - auth for engine api - #3046
Conversation
|
#3040 has done some refactoring of the After you rebase on #3040 you may need to run the tests differently (see PR notes). I suggest using this command in the root of this repo: |
|
Follows the proposal here #3015 (comment) to generate a new secret in a default location if one isn't provided for any EL endpoint. Will rebase on unstable once #3040 gets merged. |
|
I've been using this for some testing and it's working really nicely! #3040 has merged now 🎉 I have a branch here, where I took this branch and rebased it onto |
|
Hey @paulhauner sorry ended up rebasing myself. This is ready for review now. |
paulhauner
left a comment
There was a problem hiding this comment.
This has been working great on merge-devnet-5! I just have a few little things and then we're good to go! 🚀
There was a problem hiding this comment.
Almost there! I have two more suggestions 🙏 One is recommended in this review and the other is at #3046 (comment).
|
Oh also, it seems that Geth have updated some CLI flags. If we don't fix them here then bors will fail. The fix is nice and simple: 9be6845 |
Co-authored-by: Paul Hauner <paul@paulhauner.com>
paulhauner
left a comment
There was a problem hiding this comment.
Looks good!
Let's try an optimistic bors 🚀
bors r+
## Issue Addressed Resolves #3015 ## Proposed Changes Add JWT token based authentication to engine api requests. The jwt secret key is read from the provided file and is used to sign tokens that are used for authenticated communication with the EL node. - [x] Interop with geth (synced `merge-devnet-4` with the `merge-kiln-v2` branch on geth) - [x] Interop with other EL clients (nethermind on `merge-devnet-4`) - [x] ~Implement `zeroize` for jwt secrets~ - [x] Add auth server tests with `mock_execution_layer` - [x] Get auth working with the `execution_engine_integration` tests Co-authored-by: Paul Hauner <paul@paulhauner.com>
Issue Addressed
Resolves #3015
Proposed Changes
Add JWT token based authentication to engine api requests. The jwt secret key is read from the provided file and is used to sign tokens that are used for authenticated communication with the EL node.
merge-devnet-4with themerge-kiln-v2branch on geth)merge-devnet-4)Implementzeroizefor jwt secretsmock_execution_layerexecution_engine_integrationtests