Spark driver UI access: localhost-only binding versus reverse-proxy exposure
0 reputation · 17 May 2020, 14:02 UTC
Spark driver UI access: localhost-only binding versus reverse-proxy exposure
The goal is to let distributed team members monitor Spark applications through the driver UI without exposing job details, stage metrics, or environment information to unintended network peers. Spark historically binds its web UI to all interfaces unless the bind host is restricted, so a default standalone or YARN deployment can be reachable beyond the local host. Binding to localhost removes that exposure but prevents remote monitoring. A reverse proxy or firewall can restrict Spark ports without changing Spark settings, yet misconfigured security groups may still allow public access. Spark authentication is optional, disabled by default, and behaves differently across versions and cluster managers, so enabling it may affect executor-to-driver communication.
Assume Spark 3.x in standalone or YARN mode. Confirm the exact default bind behavior and available authentication properties for the deployed version before changing access controls.
- Should the driver UI be bound to localhost only, or exposed through an authenticated reverse proxy for remote teams?
- Is Spark built-in authentication reliable enough as the primary access control, or should network-layer restrictions be treated as the primary control?
- Which ports and bind addresses must be audited first to avoid accidental public access to job submission endpoints?