-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-4
with themerge-kiln-v2
branch on geth)merge-devnet-4
)Implementzeroize
for jwt secretsmock_execution_layer
execution_engine_integration
tests