cacti icon indicating copy to clipboard operation
cacti copied to clipboard

fix(besu): bind aio rpc endpoints to docker network

Open malsomesh9 opened this issue 7 months ago • 2 comments

Summary

  • Set the Besu all-in-one Docker image HTTP RPC host to 0.0.0.0.
  • Set the WebSocket RPC host to 0.0.0.0 so other containers can reach Besu over Docker networks.

Root Cause

Besu enables HTTP and WebSocket RPC in the AIO image, but without explicit host overrides Besu binds those endpoints to loopback. That makes the endpoints unreachable from other containers in the same Docker network.

Impact

Plugins, connectors, and validators running in sibling containers can connect to the Besu AIO RPC and WebSocket endpoints via the compose service name.

Fixes #4065

Validation

  • git diff --check -- tools/docker/besu-all-in-one/Dockerfile
  • Verified the resulting Dockerfile contains BESU_RPC_HTTP_HOST="0.0.0.0" and BESU_RPC_WS_HOST="0.0.0.0".

malsomesh9 avatar Apr 15 '26 19:04 malsomesh9

Removed the workflow-trigger change from this PR to keep the scope limited to the Besu AIO networking fix. I’ll handle any dependent-issues workflow changes separately if still needed.

malsomesh9 avatar Apr 29 '26 13:04 malsomesh9

The intent here is only to make Besu RPC reachable from other containers on the same Docker network, which is required for the AIO use case in #4065. This does not publish ports by itself, but I agree exposure becomes broader if users also publish those ports on the host, so I can add a short note clarifying that risk.

malsomesh9 avatar Apr 29 '26 13:04 malsomesh9