-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
JWT to authenticate external CL against Reth #1098
Comments
Hi guys, are you ok if I take this up? |
this is great, We definitely need an auth middleware that verifies the jwt. please go for it. |
@0xMelkor Please note that this should only apply to the engine API, which is the |
Hi @onbjerg, Maybe I'm missing something, can you clarify this? |
@0xMelkor Yes, the transport exposing the
Further:
And finally, on JWT auth:
In other words, if we enable RPC for reth, and we are running using beacon consensus, the following must be true:
|
Describe the feature
I propose Reth to adhere the JWT standard to setup a trust relationship with an external CL.
Given the current code base and available libraries I'd suggest to create a
tower::Layer
to cope with JWT authentication.At a first glance the code could look like this:
What do you guys think?
Additional context
I suppose all this stuff applies if Reth is built with
feature = "client"
The text was updated successfully, but these errors were encountered: