Keeping vLLM development endpoints out of production

Development endpoints in vLLM are for engineers working on the server, not for the applications and users who call the API. This page explains why VLLM_SERVER_DEV_MODE stays off in production and how to give operators the controls they need without exposing them to API users.

On this page

Why VLLM_SERVER_DEV_MODE stays off in vLLM production

Keep VLLM_SERVER_DEV_MODE off in production, and give operators a separate, internal path for pausing, resuming or clearing the cache on a running server. Platform teams often need these actions during an incident or a memory problem, and the temptation is to enable the debugging mode on the production server so the endpoints are available. That trades a convenience for an attack surface. Development endpoints are built for debugging. They are not part of the user-facing API, and the vLLM security documentation separates user endpoints from control endpoints for this reason.

Start by confirming what the flag does in your version. The exact endpoint list depends on the vLLM release in use, and vLLM ships new minor releases about every two weeks, so a list copied from an older guide can be wrong. Read the current docs and the release notes for your pinned version, then start the server with the flag unset and check that the control paths return errors from the public listener. Record the result in your change records, and repeat the check on every upgrade. Also confirm that the flag is absent from container environment settings, Helm values and Kubernetes manifests, since it is easy to carry over from a test chart.

Give operators a path that does not touch the user-facing listener. Run control actions from an admin host or a bastion on a private network, with named operator accounts, multi-factor authentication where your identity provider supports it, and audit logs that record who paused or cleared what and when. The reverse proxy should never route control paths to the public side, and the --api-key option does not cover them, so it cannot be the only control. Define in advance which actions operators may take and who approves them during an incident.

How API users, operators and the vLLM server are separated

The diagram starts with API users and applications on the public side, where requests pass through a reverse proxy that forwards only the user-facing endpoints. The trust boundary separates that network from the internal control network, where operators reach the vLLM server from an admin host and monitoring scrapes metrics and health checks. Check that the vLLM server runs with development mode off and that no path from the public side reaches the control endpoints.

Trust boundary between user-facing traffic and the internal control network.

Which exposure controls fit vLLM development endpoints

This table compares five ways to give operators control actions such as pause, resume and cache management without exposing them to API users. Read each row for what it protects, what the operator team must run and when the option fits. The main takeaway is that a reverse proxy allowlist alone does not separate operator actions from user traffic, so most teams need one of the options that adds an operator path.

Control optionWhat it protectsRunning cost and operator burdenWhen it fits
Dev mode off, no operator endpointsRemoves development control endpoints from the server, so no path exists for user or operator misuseLowest running cost. Operators use restarts or redeployments for changes that would otherwise be live actionsDefault for production when the team can accept restarts for sleep, cache or pause changes
Internal-only listener for control actionsKeeps control paths off the interface that user networks can reach, if the listener is bound and routed correctlyNeeds network policy and tests showing user paths never reach control actions. Confirm listener support for your versionTeams that need live operator actions and can enforce network separation in their platform
Reverse proxy allowlistBlocks control, metrics and health paths at the edge for user traffic, so only listed inference paths reach usersRoute rules to update for each release. The proxy team owns allowlist changes and periodic reviewMost user-facing deployments, paired with a separate operator path because the allowlist does not govern operators on the same host
Admin host behind a bastion with authenticationLimits control actions to hosts reached through an authenticated jump point, separate from API usersBastion access, session logging and access reviews to run. Operators need bastion accounts and an approval processRegulated environments where operators act from managed workstations and sessions must be recorded
Gateway access tied to named operator identitiesLinks each control action to a named person through single sign-on and records it in gateway logsGateway configuration, identity integration and log retention. The gateway team maintains role mapping and removes leaversTeams with several operators that need per-person accountability and a reviewable audit trail

Which vLLM endpoints the API key leaves open

The vLLM security docs say the --api-key option does not cover several paths on the API server. Each of these paths does a different job, and each one needs a decision in the reverse proxy before the server reaches users.

Invocations endpoint

The /invocations path is an alternate way to send inference requests that --api-key does not protect. If a proxy forwards only /v1 paths but the server still listens on /invocations, any caller who can reach the port can run inference without a key. Block it at the proxy and confirm with a test request from outside the trusted network that it returns an error.

vLLM security docs

Pause and resume controls

The /pause and /resume paths control whether the engine accepts and processes work. An unauthenticated caller who can reach them can stop serving for every user. Keep both paths off the user-facing allowlist, and grant them only to an operator network or a tool that runs under a separate credential.

Abort requests control

The /abort_requests path cancels in-flight generations. A user or outside caller who can reach it could cancel other users' requests, which shows up as random failures rather than an obvious attack. Keep it internal to operators and check that your proxy rejects it from every external route.

Metrics endpoint

The /metrics path exposes Prometheus data on request counts, token throughput, latency and KV cache use. That data reveals load patterns, model usage and capacity limits to anyone who can read it. Serve it only to the monitoring network, and confirm your scraper still reaches it after the proxy rules change.

Health endpoint

The /health path is needed by load balancers and orchestrators, but it is not protected by the API key. Expose it only to the internal health checker, and decide whether external probes should see a generic answer from the proxy instead. Verify that the health check still passes after the allowlist is applied.

Proxy allowlist as the control

The docs recommend a reverse proxy that allowlists only the endpoints meant for users. The API key alone is not enough because it leaves these control and telemetry paths open. Write the allowlist as the default deny rule, then test each excluded path from an external client to confirm it is blocked.

Read the security docs

How to verify development endpoints are off in production

This sequence gives an operations team a repeatable way to prove that VLLM_SERVER_DEV_MODE is off, that no development routes answer on the production server, and that only the intended user endpoints are reachable. It ends with a dated evidence record that a security reviewer can check.

  1. Confirm the running vLLM version and security guidance

    The platform owner records the exact vLLM version in the running container image or environment, then reads the current vLLM security documentation for that version. Compare the version against the release list so the team knows which features and control paths belong to it. Done when the version string, image digest and the date of the security review are written into the change record. Keep the release notes for that version with the evidence, because the set of endpoints can change between releases.

  2. Check the environment flag in the deployed configuration

    Someone who can read the deployed configuration checks that VLLM_SERVER_DEV_MODE is absent or unset in every place it could be set: the container definition, the systemd unit or service environment file, and the Kubernetes Deployment, StatefulSet and pod template. Check the live pods too, since a manifest can be correct while a patched or rolled-back object differs. Done when the check returns no value for the variable in each workload and the output is saved with the timestamp.

  3. Enumerate the routes the server actually exposes

    From a host inside the serving network, the team queries the running server's OpenAPI document or routes list and saves the full set of paths. Compare that list with the paths the security docs describe for the installed version, and flag any development, sleep, cache or control path that appears when it should not. Done when the saved route inventory is attached to the record and each unexpected path has a named owner and a disposition. Confirm the exact way to list routes for your version in the vLLM online serving documentation, because the mechanism is version specific.

  4. Probe control paths from outside the allowed network

    A tester on a network segment that is not allowed to reach the operator interface sends requests to each development and control path found in the inventory, such as sleep, cache reset and profiling routes. Each request should be refused or fail to connect, and the tester records the status code or connection error for every path. Done when every probe result is logged with the path, source address, time and outcome, and any path that answers with a success code is treated as a failed control and escalated. Run the same probes after each upgrade.

  5. Confirm the proxy allowlist matches user endpoints

    The team compares the reverse proxy or gateway configuration with the list of endpoints the application owners intend users to call. The proxy should forward only those paths, and it should return a refusal for everything else, including /metrics, /health and any control route. Done when a diff between the allowlist and the approved endpoint list shows no extra entries, and a test request to a path that is not on the list returns a refusal from the proxy. Record the proxy configuration revision alongside the diff.

  6. Test operator access through a separate path

    Operators who need sleep, cache or metrics controls should use a separate, authenticated route on an internal network, not the user-facing endpoint. The team confirms that the operator path requires its own credentials, that it is reachable only from the management network, and that a user credential does not open it. Done when the test shows the operator path works from the management network, fails from the user network and the results are stored with the names of the people who ran the tests.

  7. Store the verification record as evidence

    The team assembles one record containing the version, the flag check output, the route inventory, the probe results, the proxy diff and the operator access test. The record is signed off by the platform owner and the security reviewer, and it is linked from the change ticket. Done when the record is stored in the evidence repository the organization uses for audits and when a second person can reproduce each check from the written steps. Repeat the full sequence after every vLLM upgrade, configuration change or proxy change.

Security risks of exposed vLLM development endpoints

Development endpoints give callers power over the engine itself, not just over their own requests. The cards below cover what an exposed control or diagnostic path lets a user do, what it reveals, and which control keeps it away from API users. Each one can be checked in your own deployment before go-live.

Users pausing and resuming the engine

Pause and resume controls change the state of the whole server, so one caller can stop serving every tenant. The control to apply is a reverse proxy that returns a denial for /pause and /resume on any path reachable from outside the operator network. Check it by sending a request to each path through the public hostname and confirming the proxy rejects it, not the engine.

vLLM security docs

Aborting other users' requests

An abort path can cancel in-flight generations that belong to other callers, which shows up to them as failed or truncated responses. Because the built-in --api-key option does not cover /abort_requests, a valid key alone does not prevent this. Keep the path off the public allowlist and confirm that abort calls are only issued from an internal operator host.

Reading operational detail from metrics and health

The /metrics and /health paths are not protected by --api-key, and metrics show request volume, token throughput, latency and KV cache use. That detail helps an outsider size your capacity and time an attack. Scrape Prometheus from a private network address, and confirm that the public hostname returns no response for these paths.

Changing server state through control endpoints

Development mode adds endpoints for operators, such as sleep and cache controls, that were built for maintenance and not for tenants. A caller who reaches them can change engine state or clear caches, with effects on latency and availability for everyone. Confirm during your build review that VLLM_SERVER_DEV_MODE is unset in production images and that the proxy allowlist matches the paths your application actually calls.

Unclear audit trails from shared credentials

When operators run maintenance through a shared key or a single service account, logs record the key rather than the person. You then cannot show which operator paused the engine or cleared a cache during an incident. Give each operator an individual identity at the gateway or bastion, log every control call with that identity, and rotate the shared secret used for the engine.

Giving operators sleep and cache controls without exposing them

The sleep and cache controls that development mode exposes are operational tools, and they belong to operators, not to API users. Operators reach for them during maintenance windows, when memory pressure builds on a GPU, or when a team is troubleshooting a serving problem. The goal is to keep the capability and move it behind an internal admin path that only named operators can reach. Before writing any runbook, confirm in the vLLM documentation for the exact release you run which actions exist when development mode is enabled, what each one does to the engine and GPU memory, and whether it affects in-flight requests. Behavior can change between releases, and the docs for the version in production are the reference, not an older blog post or a forum answer.

Move each action onto an internal admin path with controls the rest of your platform already uses. Route it through your identity provider so every call maps to a named person or service account, require a change record or ticket reference for anything that changes serving state, and send the request and its outcome to your central log store. The admin path should sit on a network segment that user traffic cannot reach, and the reverse proxy in front of the public API should never forward it. Test that the proxy returns a refusal for these paths from the user side, because an allowlist that is later edited by mistake is a common way these controls leak.

Put the procedures in runbooks, not in dashboards, scripts shared in chat, or product features that end users can click. A runbook records when to use each action, who may approve it, the expected effect on latency and queued requests, the rollback step, and how to confirm the engine has recovered. Rehearse the runbook in a non-production environment that runs the same release and flags, and record the timings you observe so the on-call team knows what normal looks like. Review the runbook at every upgrade, since an action that worked in one release may be renamed or removed in the next.

How the setup changes across development, staging and production

Engineers use the development environment on a private host the team controls, often a single GPU node that only the team can reach. Here, the dev mode flag may be enabled so engineers can exercise sleep, cache and other operator controls while they tune a model or reproduce a bug.

  • Network placement. The host sits on a private subnet or behind a VPN, with no route from the internet or the general application network.
  • Flag scope. VLLM_SERVER_DEV_MODE is set only in an engineer's shell or local environment file, never in shared images, Helm values or base manifests.
  • Model inputs. Engineers use scratch model copies and test prompts, and no customer data is loaded.
  • Access. Each engineer reaches the server through a personal SSH tunnel or jump host, and the server is not registered with any shared load balancer.
  • Logging. Logs stay on the host and are discarded on rebuild, so development traces do not feed production monitoring.

Before anyone copies a development setting into a shared file, confirm that the flag is absent from every artifact that reaches staging.

What to confirm about VLLM_SERVER_DEV_MODE in your vLLM version

Development mode adds server routes that are not meant for API users, and the exact set depends on the release you run. The four items below are what to verify against the vLLM docs, release notes and your own test deployment before you decide how operator controls are exposed.

Enumerate the endpoints dev mode enables

Start the exact vLLM version you plan to run with the development mode variable set in a non-production environment, then list every route the server answers that it does not answer with the variable unset. Compare that list against the routes in the online serving docs and record the result for your version. Treat any route that changes model state, cache state or scheduling as a control endpoint that must stay off the public path. Do not assume the list in one release applies to the next.

Online serving docs

Track changes across minor releases

vLLM ships new minor releases about every two weeks, so an endpoint list verified once can drift within a month. Read the release notes for each version you consider, search them for the variable name and for route names, and repeat the endpoint enumeration whenever you move to a new tag. Pin the version you tested and record the test date in your change record so a later upgrade triggers a fresh check.

Minor release cadence
About 2 weeks
vLLM releases

Confirm the security docs cover dev routes

The security page explains which paths the built-in API key protects and which it leaves open, but a given docs version may not list development-mode routes. Check whether the security page for your pinned version names any dev-mode endpoints. If it does not, the absence is not proof that the routes are safe. Document the gap, and make your reverse proxy allowlist the control that blocks those paths regardless of what the docs say.

vLLM security docs

Check how the inference image sets variables

Container images and Helm charts can set environment variables in defaults, in example manifests or through values files, and a copied example may enable development mode without anyone noticing. Inspect the effective environment of the running container, not only the manifest, and confirm the variable is absent or false in every environment, including sidecars and init containers. Ask your image provider or chart maintainer which variables the image sets by default.

vLLM Kubernetes docs

Test probes and metrics against restricted paths

Kubernetes liveness and readiness probes, Prometheus scrapes and load balancer health checks often call paths such as health or metrics. If your proxy blocks those paths for users, the probes may fail, and teams sometimes respond by opening paths more widely than intended. Map every probe and scrape to a specific path, allow those paths only from the cluster or monitoring network, and test that a restart or failed probe does not require loosening the allowlist.

vLLM metrics docs

Questions teams ask about vLLM development endpoints

Is it ever safe to turn on development mode in production?

No. Keep VLLM_SERVER_DEV_MODE unset on any server that takes user traffic, sits on a shared network or handles production data. The flag exists so engineers can manipulate a running server during development and testing, so the exposure depends on who can reach those routes, not only on who holds a key. If operators need sleep or cache controls in production, give them a separate internal interface with its own access path, and keep the user-facing server with the flag off. Check the behavior in the vLLM security documentation for the release you run, because vLLM ships new minor releases about every two weeks and the surrounding behavior can change between them.

What does enabling VLLM_SERVER_DEV_MODE actually change on the server?

It adds control routes to the same API server that serves user requests, so anything that can reach the port can reach those routes. The exact route set changes by release, so confirm it for your version by reading the code and testing from outside the server. The kind of operation at stake is visible in paths that already sit outside --api-key coverage: /pause, /resume and /abort_requests change live serving. Sleep and cache controls act on engine state and memory in the same way, so they belong in the same risk category. A review should list every route the flag adds and test each one from the user network, the internal network and a host without access to either.

Is the --api-key option enough to protect vLLM's extra endpoints?

No. The --api-key option protects paths under /v1, /v2, /inference and /cohere, and it leaves /invocations, /pause, /resume, /abort_requests, /metrics and /health open. The vLLM security documentation warns against relying on it alone and recommends a reverse proxy that allowlists only the endpoints meant for users. A single shared key also identifies no individual, cannot separate one team's access from another's and leaves no per-person audit trail. Treat it as one layer alongside network placement and a proxy that denies by default. Multi-user access normally needs a gateway that issues and revokes keys per user or per application.

Which paths should a reverse proxy allow and which should it block?

Allow only the inference paths users call: /v1/completions, /v1/chat/completions, /v1/responses, /v1/embeddings and the audio transcription and translation paths in the OpenAI-compatible API. Deny everything else by default, including /pause, /resume, /abort_requests, /invocations, /metrics and any development or operator route your release exposes. Health checks from load balancers or the orchestrator should reach the server on an internal address that users cannot route to, not through the user-facing proxy. Confirm the exact audio paths and any newer routes in the online serving documentation for your version. Then test the allowlist from outside the network and confirm that every blocked path returns a denial.

How long does a configuration review take, and what drives the effort?

The supplied material sets no duration, so ask for one in writing. Effort depends on how many vLLM deployments and replicas you run, how many ingress routes, gateways and identity integrations sit in front of them, whether development mode was ever enabled on a live server and how deep the testing goes. A review of configuration files and runtime flags is smaller than one that also probes each path from user, internal and pod-level positions and checks authentication behavior. Because vLLM ships new minor releases about every two weeks, plan for retests after each upgrade, since routes can change. Most DeployOpen engagements are fixed-scope and agreed in writing before work starts, so the quote should list the deployments, paths and tests in scope.

What does this work need from our own platform and security staff?

Your staff supplies the facts the review depends on: deployment manifests or service definitions, the exact launch flags and environment variables, ingress and gateway configuration, network policy or firewall rules and identity provider settings for any gateway login. You also need an owner who decides which operator actions must exist in production, who may use them and how they are logged, because that decision sets the design of the allowlist. Staff time is a cost component that is easy to underestimate, so name the people who will answer questions, approve changes and review findings. Ask any provider which of your people must be available, for how many working sessions and what access they need to each environment.

Can our team handle this internally, or do we need outside help?

Yes, if your team includes engineers who run reverse proxies and Kubernetes ingress, can read vLLM release notes and security documentation and can run external tests against their own endpoints. Internal work holds up when someone owns the allowlist, the flag settings in every environment and the retest after each upgrade. The recurring cost is the part to plan for, because each release can change routes and the allowlist and tests need upkeep. Keep a runbook that records every route, the owner of each operator path and the test that proves it is blocked. If your team lacks proxy, identity or testing depth, DeployOpen can scope a review, implement the proxy and identity work and retest, and it offers retainers for continuous testing after go-live.

How DeployOpen reviews and hardens vLLM endpoint exposure

DeployOpen treats development endpoints as an exposure question before it treats them as a feature question. We map which vLLM routes exist in your running server, decide which ones operators need, and build the controls so those routes stay off the paths API users can reach.

How we scope

  • Inventory every route the running vLLM server exposes, including any enabled by development or debug settings.
  • Record which endpoints users, gateways, monitoring and operators need, with an owner for each.
  • Agree the scope in writing before work starts, with engagements fixed-scope and delivery dates set in the agreement.

How we build

  • Set the server to production configuration, confirm the development mode flag is off and verify it in the deployed environment.
  • Place operator-only controls on an internal interface or behind separate authentication, away from the public gateway.
  • Test from outside the trust boundary to confirm sleep, cache and similar control routes return denied responses to API users.

How we hand over

  • Document the endpoint allowlist, the internal operator runbook and the configuration baseline used for each environment.
  • Provide test scripts that repeat the exposure checks so your team can rerun them after each vLLM upgrade.
  • Walk your platform and security teams through the findings, the fixes and the evidence produced for review.

How we support

  • Retest the exposure checks after vLLM releases, since new minor releases ship about every two weeks.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement ends.
  • Ask any partner for a written quote that lists which environments, endpoints and retests are included.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.