Skip to content

Helm chart exposes the Spark driver, block manager and UI without Spark authentication #2983

Backlog

Description

@johngrimes

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):

- name: spark.driver.host
  value: pathling-driver
- name: spark.driver.port
  value: "7077"
- name: spark.blockManager.port
  value: "7078"
- name: spark.driver.bindAddress
  value: 0.0.0.0

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

  1. added
    security
    helm
    server
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    helmsecurityserver

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions