Skip to main content

Access Control for an Inference Service

Access Control for an Inference Service

  • Hardware & deployment
  • Stage 5 · Running It
  • refs checked 2026-11-06
What problem it solves

Decides who may call your model service, in what identity, within what budget, and whether it can be traced afterwards.

What it is
The first control is the bind address, not a password. Ollama's FAQ states the server binds 127.0.0.1:11434 by default and that changing OLLAMA_HOST exposes it on the network; the same document offers no authentication for that exposure. Authentication normally sits one layer out. The documented way to expose the server is behind a proxy such as Nginx, so identity and quotas are handled by the reverse proxy, gateway or cloud IAM rather than by the inference process itself. Four dimensions are worth separating: identity (who may call), quota and rate limits (how much they may use), audit (who called which model when), and isolation (separate keys per purpose, so one leak does not affect everyone). In general security vocabulary this sits on the protective side: the NIST Cybersecurity Framework organises controls into IDENTIFY, PROTECT, DETECT, RESPOND and RECOVER, and access control belongs to PROTECT. "Internal network only" is not a security property. Anything that can reach the port can submit prompts, spend compute on your bill, and read your system prompt.
Why it matters

An unauthenticated inference endpoint is three things at once: someone else's pay-as-you-go compute, a route around the checks in your application layer, and a way to read your system prompt without ever holding a key. The earlier you place the control, the more you can explain afterwards.

Chinese aliases

Sources
  • Ollama FAQ: default bind address and exposing via a proxy ↗
  • NIST Cybersecurity Framework ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →