Conversation
…s in node entrypoint This PR hardens the node's execution entrypoint by implementing strict input validation for the L2 engine secret and reducing the default unauthenticated RPC attack surface, addressing the vulnerabilities identified in the workspace security audit. **Engine Authentication Validation:** * Added strict fail-closed validation for `BASE_NODE_L2_ENGINE_AUTH_RAW` in `node/execution-entrypoint`. The node startup will now safely exit with an error if the provided value is absent or not exactly 64 hexadecimal characters, preventing the engine from running with malformed authentication material. **RPC Attack Surface & Cross-Origin Protection:** * Restricted the default privileged HTTP and WebSocket APIs. The entrypoint now securely defaults to `web3,eth,net` instead of exposing `debug`, `txpool`, and `miner` namespaces automatically. * Replaced wildcard (`*`) HTTP CORS and WebSocket origins with a restricted default of `http://localhost`. Operators can still explicitly configure these via the `RETH_HTTP_CORS_DOMAINS` and `RETH_WS_ORIGINS` environment variables.
Collaborator
🟡 Heimdall Review Status
|
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.
This PR hardens the node's execution entrypoint by implementing strict input validation for the L2 engine secret and reducing the default unauthenticated RPC attack surface, addressing the vulnerabilities identified in the workspace security audit.
Engine Authentication Validation:
BASE_NODE_L2_ENGINE_AUTH_RAWinnode/execution-entrypoint. The node startup will now safely exit with an error if the provided value is absent or not exactly 64 hexadecimal characters, preventing the engine from running with malformed authentication material.RPC Attack Surface & Cross-Origin Protection:
web3,eth,netinstead of exposingdebug,txpool, andminernamespaces automatically.*) HTTP CORS and WebSocket origins with a restricted default ofhttp://localhost. Operators can still explicitly configure these via theRETH_HTTP_CORS_DOMAINSandRETH_WS_ORIGINSenvironment variables.