Skip to content
Open
Changes from 7 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
10 changes: 5 additions & 5 deletions docs/get-started/how-to/run-a-node/beta-v4-migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,37 +241,37 @@ And you can also check Maru's health:
curl -X GET "http://localhost:8080/eth/v1/node/health"
```

## JWT Authentication
## JWT Authentication (optional)

For production environments, you should enable JWT authentication:

### Generate JWT secret

```bash
openssl rand -hex 32 > ~/linea-node/jwt/jwt.hex
openssl rand -hex 32 > ~/linea-node/jwt/jwtsecret
```

### Update Besu config

```toml
# Replace engine-jwt-disabled=true with:
engine-jwt-enabled=true
engine-jwt-file="/opt/besu/jwt.hex"
engine-jwt-file="/jwt/jwtsecret"
```

### Update Maru config

```toml
[payload-validator]
engine-api-endpoint = { endpoint = "http://linea-besu:8550", jwt-secret-path = "/jwt.hex" }
engine-api-endpoint = { endpoint = "http://linea-besu:8550", jwt-secret-path = "/jwt/jwtsecret" }
```

### Update Docker volumes

```yaml
# Add to both Besu and Maru:
volumes:
- ./jwt/jwt.hex:/jwt.hex:ro
- ./jwt:/jwt:ro
```

## Private key management
Expand Down