Skip to content

Commit 0ef36d3

Browse files
authored
fix: switch all entrypoints to use base node auth (#1001)
1 parent c8d0862 commit 0ef36d3

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

.env.mainnet

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ BASE_NODE_L1_TRUST_RPC="false"
3939
# -------------------
4040
OP_NODE_L2_ENGINE_KIND=reth
4141
OP_NODE_L2_ENGINE_RPC=http://execution:8551
42-
OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
43-
OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a
4442

4543
BASE_NODE_L2_ENGINE_RPC=ws://execution:8551
4644
BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt

.env.sepolia

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ BASE_NODE_L1_TRUST_RPC="false"
3939
# -------------------
4040
OP_NODE_L2_ENGINE_KIND=reth
4141
OP_NODE_L2_ENGINE_RPC=ws://execution:8551
42-
OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
43-
OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a
4442

4543
BASE_NODE_L2_ENGINE_RPC=http://execution:8551
4644
BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt

geth/geth-entrypoint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
mkdir -p $GETH_DATA_DIR
3030

31-
echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"
31+
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
3232

3333
if [ "${OP_GETH_ETH_STATS+x}" = x ]; then
3434
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --ethstats=$OP_GETH_ETH_STATS"
@@ -62,7 +62,7 @@ exec ./geth \
6262
--authrpc.addr=0.0.0.0 \
6363
--authrpc.port="$AUTHRPC_PORT" \
6464
--authrpc.vhosts="*" \
65-
--authrpc.jwtsecret="$OP_NODE_L2_ENGINE_AUTH" \
65+
--authrpc.jwtsecret="$BASE_NODE_L2_ENGINE_AUTH" \
6666
--ws \
6767
--ws.addr=0.0.0.0 \
6868
--ws.port="$WS_PORT" \

nethermind/nethermind-entrypoint

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ fi
2323
mkdir -p "$NETHERMIND_DATA_DIR"
2424

2525
# Write the JWT secret
26-
if [[ -z "$OP_NODE_L2_ENGINE_AUTH_RAW" ]]; then
27-
echo "Expected OP_NODE_L2_ENGINE_AUTH_RAW to be set" 1>&2
26+
if [[ -z "$BASE_NODE_L2_ENGINE_AUTH_RAW" ]]; then
27+
echo "Expected BASE_NODE_L2_ENGINE_AUTH_RAW to be set" 1>&2
2828
exit 1
2929
fi
30-
echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"
30+
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
3131

3232
# Additional arguments based on environment variables
3333
if [[ -n "${OP_NETHERMIND_BOOTNODES:-}" ]]; then
@@ -52,7 +52,7 @@ exec ./nethermind \
5252
--JsonRpc.Host=0.0.0.0 \
5353
--JsonRpc.WebSocketsPort="$WS_PORT" \
5454
--JsonRpc.Port="$RPC_PORT" \
55-
--JsonRpc.JwtSecretFile="$OP_NODE_L2_ENGINE_AUTH" \
55+
--JsonRpc.JwtSecretFile="$BASE_NODE_L2_ENGINE_AUTH" \
5656
--JsonRpc.EngineHost=0.0.0.0 \
5757
--JsonRpc.EnginePort="$AUTHRPC_PORT" \
5858
--HealthChecks.Enabled=true \

op-node-entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ else
4242
fi
4343
export OP_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP
4444

45-
echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"
45+
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
4646

4747
exec ./op-node

0 commit comments

Comments
 (0)