You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Helm chart exposes the Spark driver, block manager and UI without Spark authentication #2983
The chart creates Services for the Spark UI and for the Spark driver's RPC and block manager ports (deployment/helm/pathling/templates/service.yaml:25-52), and configures the driver to bind to all interfaces and advertise itself through the pathling-driver Service (deployment/helm/pathling/templates/deployment.yaml:58-65):
Nothing in the chart, in application.yml or in the server documentation sets spark.authenticate, spark.network.crypto.enabled or spark.ui.enabled, and the chart has no NetworkPolicy. These Services are created for every install, including the default local[*] mode where no executor needs to reach the driver.
The consequence is that any workload in the cluster that can reach the namespace can connect to the driver's RPC endpoint and block manager without a shared secret, and can open the Spark UI, which shows the plans of running queries and allows jobs to be killed. This is a route to the data that does not pass through the FHIR API or its authorisation. In cluster mode the driver also serves the Spark configuration to executors over the same RPC endpoint, and the documented SeaweedFS example places the S3 access keys in that configuration.
This is from reading the chart and Spark's documented defaults. I did not deploy the chart or attempt a connection.
Suggested changes:
Enable spark.authenticate and spark.network.crypto.enabled by default.
Disable the Spark UI by default, or make the pathling-spark-ui Service opt-in.
Create the pathling-driver Service only when a cluster manager is configured.
Ship a NetworkPolicy that limits ports 7077 and 7078 to executor pods, and 8081 to whatever scrapes it.
Activity