fix: restore engine API JWT signing after jsonwebtoken 11 bump - #1545
Closed
perfogic wants to merge 1 commit into
Closed
fix: restore engine API JWT signing after jsonwebtoken 11 bump#1545perfogic wants to merge 1 commit into
perfogic wants to merge 1 commit into
Conversation
jsonwebtoken 11 requires exactly one of the `rust_crypto` or `aws_lc_rs` features;
its default feature set (`use_pem`) includes neither, so since the 9.3.1 -> 11.0.0
bump no crypto provider has been compiled in and every engine API request panics
while signing the JWT:
Could not automatically determine the process-level CryptoProvider
from jsonwebtoken crate features.
Beacon nodes talking to an execution client therefore fail authentication, receive
no payloads, produce no blocks, and the devnet5 serial tests time out waiting for
the head to advance past slot 0.
Prefer the pure-Rust provider: `ream-consensus-beacon` depends on
`ream-execution-engine` and is built for the riscv32im zkVM targets, where a C
library dependency would not build. `default-features` is disabled because only
`EncodingKey::from_secret` (HS256) is used and no PEM parsing is needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
jsonwebtoken 11 requires exactly one of the
rust_cryptooraws_lc_rsfeatures; its default feature set (use_pem) includes neither, so since the 9.3.1 -> 11.0.0 bump no crypto provider has been compiled in and every engine API request panics while signing the JWT:Beacon nodes talking to an execution client therefore fail authentication, receive no payloads, produce no blocks, and the devnet5 serial tests time out waiting for the head to advance past slot 0.
Prefer the pure-Rust provider:
ream-consensus-beacondepends onream-execution-engineand is built for the riscv32im zkVM targets, where a C library dependency would not build.default-featuresis disabled because onlyEncodingKey::from_secret(HS256) is used and no PEM parsing is needed.What was wrong?
How was it fixed?
To-Do