Skip to content

Commit e917d59

Browse files
erhnysrclaude
andcommitted
fix: add JWT secret validation to geth-entrypoint
geth/geth-entrypoint was missing the same BASE_NODE_L2_ENGINE_AUTH_RAW validation added to reth-entrypoint, base-consensus-entrypoint, and op-node-entrypoint. Without this check, geth nodes using the default or placeholder secret would silently start with a public JWT. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 662c786 commit e917d59

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

geth/geth-entrypoint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ fi
2828

2929
mkdir -p $GETH_DATA_DIR
3030

31+
if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" || "${BASE_NODE_L2_ENGINE_AUTH_RAW}" == "<your-secret-jwt>" ]]; then
32+
echo "ERROR: BASE_NODE_L2_ENGINE_AUTH_RAW is not set." >&2
33+
echo "Generate a secret and set it in your .env file:" >&2
34+
echo " BASE_NODE_L2_ENGINE_AUTH_RAW=\$(openssl rand -hex 32)" >&2
35+
exit 1
36+
fi
3137
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
3238

3339
if [ "${OP_GETH_ETH_STATS+x}" = x ]; then

0 commit comments

Comments
 (0)