Skip to content

Production cluster mode needs TLS/auth or an enforced private-network posture #30

Open

Description

@vyncint

Today — SECURITY.md "Trust model" says cluster mode "has no authentication or transport encryption in v1 … will execute any plan a connected client submits, including reading any file the worker process can read." oxide-scheduler binds 127.0.0.1 by default (crates/oxidelake-runtime/src/bin/oxide_scheduler.rs:223), and --bind-host 0.0.0.0 is one flag away with no warning. crates/oxidelake-runtime/src/cluster.rs:119-128 spreads ..SchedulerConfig::default(). Ballista 54.1 does carry a client-side use_tls switch (ballista-core-54.1.0/src/utils.rs:70, BALLISTA_CLIENT_USE_TLS), which OxideLake neither exposes nor documents.

Why it is worth tracking — ADR-0013 and SPEC §6 put TLS/auth out of scope for v1. That was honest for v1; it is disqualifying for a release described as production-ready, because a reachable worker is remote code execution. This is a challenge to the v1 scope, not a new vulnerability.

Fix — the minimum that makes the posture enforced rather than documented:

  1. Refuse a non-loopback --bind-host on scheduler and worker unless --allow-insecure-bind is also given; warn! at startup when bound non-loopback.
  2. Expose Ballista's use_tls on the client (OxideSession::connect, oxide sql --cluster … --tls) and document the scheduler/executor TLS termination Ballista 54 supports, or state precisely that it supports none and document a required mTLS sidecar topology.
  3. SECURITY.md and README: one paragraph, same wording, on what a production deployment must put in front of the ports.

Done when — oxide-scheduler --bind-host 0.0.0.0 exits non-zero without the explicit flag (tested with assert_cmd); the TLS story is either implemented and tested against a local TLS-terminating proxy or documented as a hard requirement with a worked example.

Activity

  1. added
    enhancement
    on Sep 13, 2026
  2. vyncint commented on Nov 18, 2026

    @vyncint
    OwnerAuthor

    0.3.0 (#154) ships the enforced private-network half:

    • oxide-scheduler and oxide-worker exit 1 on a public or wildcard --bind-host or --metrics-host unless --allow-insecure-bind is given. This is tested with assert_cmd, on a port that cannot bind, so a regression fails instead of listening.
    • Both log a warning whenever they listen beyond loopback.
    • oxide-worker --bind-host is new.
    • README and SECURITY.md carry the same "Production deployments" paragraph.

    Still open is TLS/auth. Ballista 55 can make its clients dial TLS: ballista.client.use_tls, plus an endpoint override for a private CA. But it serves the scheduler's port and the executors' gRPC port in plain text, with no hook, and only the executors' Flight service can be replaced. TLS therefore needs one of:

    • an upstream server-side TLS option (tonic's ServerTlsConfig on create_grpc_server and on the scheduler's listener);
    • a terminating proxy per port, with every OxideLake process told to dial TLS, tested against a local mTLS proxy.

    Moving this to v0.4.0.

  3. modified the milestones: v0.3.0, v0.4.0 on Nov 18, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions