Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ BASE_NODE_L1_TRUST_RPC="false"
# --------------------
BASE_NODE_L2_ENGINE_RPC=ws://execution:8551
BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
BASE_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a
# [REQUIRED] Generate with: openssl rand -hex 32
BASE_NODE_L2_ENGINE_AUTH_RAW=<your-secret-jwt>

# P2P CONFIGURATION
# -----------------
Expand Down
3 changes: 2 additions & 1 deletion .env.sepolia
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ BASE_NODE_L1_TRUST_RPC="false"
# --------------------
BASE_NODE_L2_ENGINE_RPC=http://execution:8551
BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
BASE_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a
# [REQUIRED] Generate with: openssl rand -hex 32
BASE_NODE_L2_ENGINE_AUTH_RAW=<your-secret-jwt>

# P2P CONFIGURATION
# -----------------
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ The following are the hardware specifications we use in production:
- `BASE_NODE_L1_BEACON`: your L1 beacon node endpoint
- `BASE_NODE_NETWORK`: `base` or `base-sepolia`
- `RETH_CHAIN`: `base` or `base-sepolia`
- `BASE_NODE_L2_ENGINE_AUTH_RAW`: a 32-byte hex secret shared between the execution and consensus containers — **never use the placeholder value**. Generate with:
```bash
openssl rand -hex 32
```

### Network Settings

Expand Down
6 changes: 4 additions & 2 deletions consensus-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ if [[ -z "${BASE_NODE_L2_ENGINE_AUTH:-}" ]]; then
exit 1
fi

if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" ]]; then
echo "expected BASE_NODE_L2_ENGINE_AUTH_RAW to be set" 1>&2
if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" || "${BASE_NODE_L2_ENGINE_AUTH_RAW}" == "<your-secret-jwt>" ]]; then
echo "ERROR: BASE_NODE_L2_ENGINE_AUTH_RAW is not set or still uses the placeholder value." >&2
echo "Generate a secret and set it in your .env file:" >&2
echo " BASE_NODE_L2_ENGINE_AUTH_RAW=\$(openssl rand -hex 32)" >&2
exit 1
fi

Expand Down
7 changes: 7 additions & 0 deletions execution-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ fi

mkdir -p "$RETH_DATA_DIR"
echo "Starting reth with additional args: $ADDITIONAL_ARGS"

if [[ -z "${BASE_NODE_L2_ENGINE_AUTH_RAW:-}" || "${BASE_NODE_L2_ENGINE_AUTH_RAW}" == "<your-secret-jwt>" ]]; then
echo "ERROR: BASE_NODE_L2_ENGINE_AUTH_RAW is not set or still uses the placeholder value." >&2
echo "Generate a secret and set it in your .env file:" >&2
echo " BASE_NODE_L2_ENGINE_AUTH_RAW=\$(openssl rand -hex 32)" >&2
exit 1
fi
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"

exec "$BINARY" node \
Expand Down