ops

Security model

What DeepLM Ops can and cannot do, what leaves your machine, and how it is locked down.

Read-only by design

Every tool is read-only, and each one is checked twice: in DeepLM Ops, and again by the gate on the cluster. There is no tool that submits, cancels, drains or modifies anything. If an answer suggests a destructive or admin command, the command is replaced with "(command removed)". The text that streams in while the model writes is checked the same way, line by line, before it reaches the page.

Local only

Always publish the port as -p 127.0.0.1:8090:8090. Never use -p 8090:8090 or --network host: Docker's own firewall rules bypass ufw and firewalld, so a plainly published port is open to your whole network.

The server also:

  • rejects any Host header other than 127.0.0.1, localhost and [::1], which protects against DNS rebinding;
  • refuses API requests that another site or another port's page makes;
  • checks a CSRF token on every request that changes state;
  • sends a strict Content-Security-Policy.

To use a DeepLM Ops that runs on another machine, such as a cloud VM or a cluster node, keep it on that machine's loopback and open an SSH tunnel from yours:

bash
ssh -N -L 8090:127.0.0.1:8090 <host>

Then open the sign-in link it printed.

What leaves your machine

  • The model download. The first start downloads the model once from huggingface.co. You can avoid this by mounting the model file, or by setting DLM_OPS_OFFLINE=1. On a Mac with Docker Model Runner, Docker's own pull of the model and its llama.cpp engine from Docker Hub applies instead.
  • Cluster queries. If you connect a cluster, the read-only queries are sent over SSH to your login node.

DeepLM Ops itself sends no telemetry, and the web page loads nothing from the internet. The installer sends one anonymous report that you can turn off. See Privacy and telemetry.

Signing in

There is no default password. Every start makes a new random token and prints a sign-in link with it to the log.

  • A signed-in browser stays signed in until 2 hours pass without a question or another action, and for 12 hours at most.
  • Signing out ends that browser's session, not the link. The browser keeps the link in its history, so on a computer others use, open the link in a private window.
  • Wrong guesses lock new sign-ins for everyone for up to a minute at a time. That is why a password file on a shared machine should hold a long random password.

Use a password instead

A password file works better on a shared machine, and it survives restarts. Put the password in a file of at least 12 characters, readable by uid 1000, and mount it read-only. Add these two lines before the image name in the run command:

bash
-v "$PWD/dlm-ops-password:/run/secrets/dlm_ops_password:ro" \
-e DLM_OPS_PASSWORD_FILE=/run/secrets/dlm_ops_password

DLM_OPS_PASSWORD also works, but anyone who can run docker inspect can read it, so prefer the file.

Container hardening

The container runs as uid 1000, never as root. It works with a read-only root file system and needs no Linux capabilities. The model server runs on a private UNIX socket with a per-start key, with no TCP port inside the container. The flags in the run command turn all of this on, so keep them. See the Docker run flags reference.

No password, key or token is baked into the image. The audit log, which is in docker logs, has JSON events without secrets or chat text.

On a Mac with Docker Model Runner

The model runs in Docker Model Runner on the Mac, and it has no sign-in. It keeps the last 10 requests and answers for each model, including your messages and the tool results, and serves them to any container on the Mac and to docker model requests on the host. Any container can also change the model server's flags while it is idle.

So run only containers you trust next to DeepLM Ops, or set DLM_OPS_ENGINE=local to run the model on the CPU inside the container, where chats stay in the container. Docker Business's Enhanced Container Isolation blocks every container from Docker Model Runner, DeepLM Ops included.

Shared machines and other web apps

  • Other users of the same machine can reach 127.0.0.1:8090 too. The sign-in protects it, so prefer a password file there.
  • Browsers share cookies across every port of a host. A web page or server on another port of this machine that your browser visits receives the DeepLM Ops session cookie. Sign in from a browser profile that opens only local web apps you trust, and sign out when you are done.