Putting vLLM behind a reverse proxy with an endpoint allowlist

vLLM's own API key does not cover every path it serves. A reverse proxy that allowlists only user-facing endpoints, with authentication and rate limits in front, closes the gap.

On this page

Why a vLLM reverse proxy with an endpoint allowlist is the default exposure pattern

The built-in --api-key option does not cover every path a vLLM server exposes, and the vLLM security docs recommend placing a reverse proxy that allowlists only the endpoints meant for users in front of the server. If you are about to expose a vLLM server to applications or staff, the question is not whether to add a proxy but which paths it passes through. The key only protects the /v1, /v2, /inference and /cohere prefixes. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health, so a server exposed with the key alone still answers on paths that operators use for control and monitoring.

The proxy sits between clients and the vLLM API server and forwards only the routes you list, such as /v1/chat/completions, /v1/completions, /v1/embeddings or /v1/responses, returning a refusal for everything else. Teams usually need this once more than one application or a group of staff reaches the server, because the proxy becomes the single place where you can attach user authentication, per-client limits and access logs. Confirm with your own environment which endpoints your applications call before you write the rules, since an allowlist that blocks a path your client uses fails in ways that look like model errors.

The proxy is one layer, not the whole control. It does not stop a workload on the same network from calling the vLLM port directly, so it must be paired with network isolation that makes the server reachable only from the proxy and from the operator network. Multi-node traffic is a separate concern: the security docs say inter-node communication is unauthenticated and unencrypted by default and must sit on an isolated network. Ask your security team to confirm that the proxy, not the server, holds the externally reachable address before go-live.

How user requests, internal operators and metrics scrapers reach vLLM

Client traffic starts at the reverse proxy, which enforces authentication and rate limits before forwarding only allowlisted /v1 paths to vLLM. Requests to other paths are denied at the proxy and never reach the server. Prometheus, operators and health checks sit on the internal network and connect to vLLM directly, so /metrics, /health and control endpoints stay off the public side. Check that the proxy, not the --api-key option, is the only route from outside the network.

Only the proxy faces users, while metrics, health and operator traffic stay internal.

Which vLLM paths to allow, keep internal or deny

This table sorts vLLM's HTTP paths into three groups: inference paths users call, internal operational paths, and paths the built-in API key does not cover. Read each row as a proxy decision: allow the path for clients, restrict it to the internal network, or deny it at the edge. Confirm the list against the features enabled on your build before you publish the rule set.

Path groupWhen it fitsProxy rule
/v1/chat/completionsChat applications and agents that send message lists to the OpenAI-compatible APIAllow for authenticated client traffic; require a model chat template on the server
/v1/completionsApplications that send raw prompts through the legacy completions interfaceAllow only if a client still uses it; otherwise deny to shrink the surface
/v1/responsesClients built on the Responses API, which can invoke built-in tools if the server enables themAllow after confirming tool settings; keep tool-enabled traffic on a reviewed route
/v1/embeddingsRetrieval and indexing pipelines that call an embedding model on the same serverAllow for named clients; apply the same authentication and rate limits as chat
Audio transcription and translation paths under /v1Speech features that the deployed model and enabled options supportAllow only when the feature is in use; confirm exact paths against your version
/metricsPrometheus scraping of request counts, throughput, latency and KV cache useDeny at the edge; scrape from an internal address on a separate listener or network
/healthLoad balancer and orchestrator liveness checksAllow only from internal probe addresses; never expose to general users
/invocations, /pause, /resume, /abort_requestsOperator and platform actions; the built-in API key does not cover these pathsDeny at the proxy for all external clients; reach them only from an operator network
LoRA and development endpointsAdapter management or development-mode routes, which should be off in productionDeny; confirm with your build that development mode is disabled
/v2, /inference, /cohereRoutes the built-in API key protects, relevant only if your version exposes themConfirm whether enabled on your build; allow or deny them explicitly in the allowlist

What --api-key leaves open and why the proxy must cover it

The built-in --api-key option on vllm serve is not an access control for the whole server. It protects the endpoints under /v1, /v2, /inference and /cohere, but it does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. A deployment that sets only the key still answers unauthenticated callers on the operational endpoints, and /pause and /resume in particular change how the engine serves traffic. The vLLM security documentation warns against relying on the key alone and recommends a reverse proxy that allowlists only the endpoints meant for users. Before go-live, confirm the exact path list against the security page for the release you run, because endpoint coverage can change between the two-week minor releases.

The key is also a single shared secret. Every client presents the same value, so the server cannot tell one application or user from another, cannot revoke one caller without rotating the key for everyone, and cannot attribute usage or set per-team limits. Audit logs from the server show requests but not who made them. For multi-user access, per-user or per-application identity belongs at the proxy or gateway, where SSO-issued tokens, virtual keys or client certificates can be checked, revoked and logged before a request reaches the engine. The engine then sees only traffic the gateway has already authorized.

In practice, the proxy should be the only listener reachable from user networks, forward only the inference paths users need, return a deny for everything else, and keep /metrics, /health and control endpoints reachable only from monitoring and operator networks. Decide who owns each rule, record it in configuration under version control, and test it from outside the cluster with requests to every excluded path. Keep --api-key enabled as a second layer, since it still protects the paths it covers if the proxy configuration is ever bypassed.

How to configure the proxy allowlist step by step

This sequence moves vLLM off the open network and places a default-deny reverse proxy in front of it, so only the inference endpoints users need are reachable and each control is verified before the next one is added.

  1. Bind vLLM to a private interface

    The platform team starts vLLM so the API server listens only on a private address that the proxy can reach, for example a loopback address on the same host or a private subnet address in a container network. Do not bind to all interfaces on a host with a routable address. Confirm the binding with your host's socket listing from a separate machine on the user network: the vLLM port should refuse connections there, and it should answer only from the proxy host. Record the bind address in your configuration so the setting survives restarts and image updates.

  2. Place the reverse proxy in front

    Deploy the reverse proxy on the public or user-facing side, with the only route to vLLM passing through it. The proxy should own the listening port users connect to, and it should be the only component with a network path to the private vLLM address. Confirm the topology by sending a request to vLLM's private address from a user network and checking that it fails, then sending the same request through the proxy and checking that the proxy reaches the server. Keep proxy configuration in version control so every later change has a reviewable history.

  3. Define the allowlist with default deny

    Write the proxy rules as an explicit list of method and path pairs for the endpoints users need, such as the OpenAI-compatible completion, chat, responses or embeddings routes your applications call, and set the default action to deny for everything else. Explicitly exclude control and operational paths, including metrics, health, and any LoRA, pause, resume, abort or invocation endpoints unless you have a specific, documented reason to expose them. Check the final rule set against the current vLLM online serving and security documentation for your release, because the endpoint list changes between versions. Verify by requesting an allowed path, which should reach vLLM, and a path not on the list, which should return a denial from the proxy and not from vLLM.

  4. Route metrics to an internal scraper

    vLLM exposes Prometheus-format metrics at /metrics on the API server, and the proxy must not forward that path to user networks. Point your Prometheus or equivalent scraper at vLLM's private address, or at a scrape path on an internal network segment, and keep the scraper's network inside your monitoring boundary. Health checks for load balancers or orchestrators should also reach vLLM directly on the private side, not through the public route. Confirm the result by requesting /metrics through the proxy from a user network, which should be denied, and by confirming that your internal scraper still receives metric samples.

  5. Add authentication and rate limits at the proxy

    Enforce identity and request limits at the proxy layer, where your organization's identity provider, gateway or token policy can be applied to each caller. Requests that lack valid credentials should be rejected before they reach vLLM, and per-client limits on request rate and concurrency should be set according to the workload agreed with the application owners. The exact limit values are a sizing decision, so confirm them with the owners of the models and the capacity available. Verify with an unauthenticated request, which should be refused at the proxy, and an authenticated request that exceeds the agreed limit, which should be throttled.

  6. Enable the API key as a second layer

    Start vLLM with the --api-key option so that the protected /v1 paths also require a key if the proxy is ever misconfigured or bypassed. The vLLM security documentation warns not to rely on this option alone, and it does not cover every path, so treat it as defense in depth and not as the main control. Store the key in your secrets system and pass it to the server through your deployment tooling rather than in shell history or committed files. Confirm the setting by sending an allowed request directly to vLLM over the private network without the key, which should be rejected, and then with the correct key, which should succeed.

  7. Test each path from outside

    Run a scripted check from a machine on a user network against every path in the allowlist and against the paths you excluded, including /metrics, /health and the control endpoints. Allowed paths should return normal responses and excluded paths should return a denial from the proxy. Record the results with the vLLM version, proxy configuration revision and date, then repeat the test after every vLLM upgrade, because new endpoints can appear in a release and the allowlist must be reviewed against them. The test record is the evidence that the configuration works as designed and the input for your next review.

Where authentication and rate limits belong in the stack

The simplest placement starts the vLLM server with the --api-key option, which checks a bearer token on endpoints under /v1, /v2, /inference and /cohere. Identity in this model is a single shared secret, so vLLM can tell a valid caller from an invalid one but cannot tell which person or application made a request. vLLM does not enforce per-user quotas, so rate limits, if any, have to be built outside the server. The vLLM security documentation warns against relying on this option alone, because it leaves /invocations, /pause, /resume, /abort_requests, /metrics and /health unprotected by the key.

  • Identity checked: one shared key for the path prefixes it covers, with no caller identity.
  • Per-user quotas: none in vLLM itself, so they are absent unless added elsewhere.
  • Open paths: the control and metrics endpoints listed above are not covered by the key.
  • Key handling: rotation, storage and distribution to every client are entirely the team's responsibility.
  • Operational cost: low to start, but every additional user increases the risk that one shared key is leaked.

Before choosing this placement, confirm which of your endpoints are reachable from clients and whether a single shared key meets your access policy.

Security risks that remain after the allowlist is in place

An endpoint allowlist closes the paths you never meant to publish, but it only works if the proxy sees requests the way vLLM does and the internal ports stay private. The cards below cover the gaps that most often remain after the allowlist is live, with a check for each.

Path normalization at the proxy

Proxies and vLLM can parse the same URL differently, so an encoded or doubled-slash path may pass a prefix rule at the proxy and reach a blocked route on the server. Test the allowlist with encoded variants such as percent-encoded slashes, dot segments and trailing characters, and confirm that the proxy rejects anything it does not match exactly rather than forwarding it. Repeat the tests after every proxy upgrade, because normalization rules change between versions.

vLLM security docs

Unauthenticated internal ports

The allowlist only protects the port the proxy listens on. If the vLLM API port, metrics, or any worker or Ray port is reachable from other hosts or pods, a caller can skip the proxy entirely. Confirm from a host outside the proxy's network segment that only the proxy can connect to the vLLM listener, and that the multi-node traffic between nodes sits on an isolated network. Note that the vLLM docs describe that node-to-node traffic as unauthenticated and unencrypted by default.

Node traffic is insecure
Default

Metrics leaking request and capacity data

The /metrics endpoint publishes request counts, token throughput, latency histograms and KV cache use. Those figures reveal how busy the service is, which users or applications are sending traffic when labels are exposed, and when capacity is running out. Keep /metrics off the public allowlist, scrape it from the monitoring network only, and check that the proxy returns a 404 or 403 for it from outside clients.

vLLM metrics docs

Request body size and streaming abuse

The proxy decides how much request body it will buffer and how long a streamed response can stay open. Without a body size cap, a caller can send very large payloads to the chat or completions routes, and long-lived streams can hold connections and GPU batch slots. Ask your team to set and test a maximum body size, an idle timeout for streams, and a maximum connection count per client, then confirm the values with a load test that includes slow readers.

Proxy header trust for client IP

Rate limits, audit logs and per-tenant policies often key on the client IP, which the proxy takes from forwarding headers such as X-Forwarded-For. If vLLM or an upstream gateway trusts those headers from any source, a client can set its own address and bypass per-IP limits. Configure the proxy to overwrite forwarding headers it receives from outside, trust them only from known proxy addresses, and verify that the logged client address changes when you send a spoofed header from a test client.

Keeping the allowlist in sync after upgrades

vLLM ships new minor releases about every two weeks, and new routes or renamed endpoints can appear in a release without anyone reviewing the proxy rules. An allowlist written against one version can silently block a route your users need, or leave a new internal route reachable by default. Assign an owner to diff the served route list against the allowlist for each release you deploy, and run the endpoint tests from your pipeline before rollout.

Minor release cadence
About 2 weeks
vLLM releases

Keeping the allowlist correct across vLLM's two-week release cadence

The allowlist is only as good as its last review. vLLM ships new minor releases about every two weeks, for example v0.30.0 on September 22, 2026 and v0.31.0 on October 5, 2026, and each release can add, rename or move HTTP paths. A path that was never exposed before can appear behind your proxy the moment the server is upgraded, and a path you allowed may stop existing or change behavior. Treat every engine upgrade as a change to the exposed surface, not only to the model-serving behavior, and make the proxy configuration part of the same change record as the image or package version.

Build a path test suite that runs against the proxy, not the vLLM server directly. The suite should send a request to each path your users need and confirm it succeeds with a valid key, and send requests to the paths you keep internal, including /metrics, /health, LoRA management and the control endpoints such as /pause and /resume, and confirm the proxy returns a denial from the public listener. Run it on every upgrade and on a schedule, because a configuration drift in the proxy can also open a path. Confirm with your team which endpoints are in use and whether any development-mode endpoints are enabled on the deployed version, since those are documented separately in vLLM's security guidance.

Watch the release notes and the GitHub releases page for each minor version, and record the endpoints listed as added, removed or changed before scheduling the upgrade. Assign one owner for this review so that a two-week cadence does not turn into skipped reviews. Where a release adds an endpoint your team does not need, keep it blocked by default and document the decision. Ask your platform team to confirm how the proxy will be updated if vLLM changes a path prefix, because a proxy rule written for one prefix may silently stop matching a new one.

Limits to confirm in your environment before going live

A reverse proxy allowlist is only as good as the path rules behind it and the traffic patterns it has to carry. The cards below cover what your vLLM version exposes, what your proxy can match, and which traffic must stay off the proxy entirely.

Endpoints your version actually exposes

The endpoint list in the vLLM security docs and the list your running server returns can differ once features are enabled. Start the server with the exact flags, container image and features you plan to use, then enumerate its routes and compare them with your allowlist. Confirm which endpoints are added by audio, embeddings, Responses or development settings. Treat any route you cannot name as blocked until someone has reviewed it.

vLLM security docs

Precise path and method matching

A proxy rule that matches a prefix such as /v1 can also pass paths you did not intend, and a rule that ignores methods can expose state-changing calls. Confirm that your proxy matches exact paths, normalizes encoded characters and trailing slashes, and can deny by method as well as path. Test each rule with malformed and near-miss paths before relying on it. Confirm the exact behavior of your proxy version, because matching semantics differ between products.

Streaming responses through the proxy

Chat and completion requests often stream tokens over long-lived connections. Confirm that the proxy passes server-sent event responses without buffering, and that its idle and total request timeouts are long enough for long generations without being unbounded. Check that client disconnects propagate so generation can be aborted. Run a streaming test with a long output before go-live, not only a short single-response request.

Multi-node traffic kept off the proxy

Communication between nodes in a multi-node deployment is unauthenticated and unencrypted by default, and the security docs require an isolated network for it. The proxy must never sit on that path, and it must not be reachable from the node network. Confirm which ports your Ray or multiprocessing backend uses and that the proxy's upstream targets only the API server. Keep this check separate from the allowlist, since allowlist rules do not protect node-to-node ports.

Kubernetes ingress behavior

If you run vLLM on Kubernetes, the ingress controller or gateway may add its own routes, rewrite paths or forward health probes in ways the allowlist does not anticipate. Confirm which Service exposes the API port, whether any ingress rule maps broader paths to the pod, and whether internal probes still reach /health without being published externally. Check how the controller handles path types such as prefix and exact, since defaults differ.

vLLM Kubernetes docs

TLS termination and client identity

Decide where TLS ends, at the proxy, at the vLLM server or at a load balancer in front of both, and confirm that traffic between the proxy and vLLM follows your policy. Also confirm that the proxy, not the client, supplies any identity header that reaches vLLM, and that clients cannot spoof it. Check that your API key or gateway credential is validated at the proxy and not passed through unexamined. Record the decision so auditors can trace where encryption and authentication happen.

Questions teams ask before putting vLLM behind a proxy

How much effort does putting vLLM behind a reverse proxy take?

The proxy itself is usually a small piece of work, and most of the effort goes into agreeing which endpoints users need and proving that everything else is unreachable. The main drivers are the number of client applications, whether they call the OpenAI-compatible paths only or also use other features, how many environments need the same rules (development, staging, production), and whether the proxy must also handle authentication, rate limits and logging. Each of these adds review and testing time. Ask any partner for a written scope that lists the endpoints in the allowlist, the environments covered, and the test cases used to confirm that blocked paths return refusals from the proxy and never reach vLLM.

Can our in-house team put vLLM behind a proxy without outside help?

Yes, many platform teams can do this themselves if they already run reverse proxies and understand how their applications call the API. The security documentation recommends a proxy that allowlists only the endpoints meant for users, so the core technique is standard. Teams usually need outside help when the proxy must integrate with an identity provider, when multiple tenants share one deployment, or when auditors want documented evidence of each control. Assess your team against the skills needed: proxy configuration, TLS, identity integration, load testing and log review. A partner can review your configuration or run the test plan without taking over operation.

What does the work need from our team before it starts?

Three inputs shape the design and save the most time. First, a network diagram showing where vLLM nodes, the proxy, load balancers, identity services and client networks sit, including any firewall zones. Second, an endpoint inventory listing every path your applications call today, such as /v1/chat/completions or /v1/embeddings, and every path operators use, such as /metrics or /health. Third, the identity provider details: the protocol, the group or role model, and how service accounts are issued. Your team should also name owners for the proxy, the allowlist and the metrics scrape path, because each of these needs a different access rule.

Does vLLM's license or cost change how we build this proxy layer?

vLLM is licensed under Apache-2.0 and has no paid edition, so the license does not limit how you place a proxy in front of it. Your costs come from accelerator capacity, the surrounding infrastructure, the implementation work and the people who operate it. A proxy adds recurring costs in its own compute, certificate management, log storage and on-call effort, and these scale with traffic and the number of environments. Ask any quote to separate one-time work (design, configuration, testing) from recurring work (patching the proxy, rotating keys, reviewing logs, retesting after vLLM upgrades).

How do vLLM upgrades affect the endpoint allowlist?

vLLM ships new minor releases about every two weeks, and new releases can add, rename or change endpoints. For example, the server exposes /v1/responses and audio endpoints, and later releases may add more. An allowlist written today can therefore silently block a feature that a new client needs, or expose an endpoint that did not exist before. Treat the allowlist as versioned configuration: review the release notes for each upgrade you adopt, diff the served routes against the allowlist, and rerun the blocked-path tests. Set a rule that unknown paths are denied by default so new endpoints stay closed until someone approves them.

Does DeployOpen issue an audit report for our vLLM proxy?

No. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments. DeployOpen can plan and build the proxy layer, document the allowlist and its owners, run security tests against the exposed paths, and prepare the evidence an assessor will ask for, such as configuration records, test results, access logs and change history. Ask your assessor early which evidence format they accept, so the controls and records are designed to match what they will review.

Where should authentication and rate limits live if vLLM's API key is not enough?

The vLLM --api-key option covers the /v1 family of paths but not /metrics, /health or several control endpoints, and the security docs advise against relying on it alone. A reverse proxy or gateway is the usual place for per-user authentication, token checks, rate limits and request logging, because it sees every request before vLLM does. Keep operational endpoints on a separate internal listener or network path that only monitoring and operators can reach. Confirm the exact behavior of each vLLM release in your environment before you rely on a control, because path coverage can change between versions.

What a scoped engagement for this allowlist covers

A scoped engagement for this allowlist starts with an endpoint inventory: the list of every path your vLLM server answers, which callers use each one, and which are only needed by operators. The inventory covers the OpenAI-compatible routes such as /v1/completions, /v1/chat/completions, /v1/responses and /v1/embeddings, plus the operational paths that sit outside the --api-key protection, including /metrics, /health, /invocations, /pause and /resume. From there, the written scope usually sets out the proxy choice made with your team, the allowlist rules and the authentication design at the proxy, the deployment into your own cloud accounts, data centers or air-gapped network, and the path tests that prove blocked routes return denials. Confirm with your team which proxy or gateway standard you already run, since that choice changes the configuration work more than any other single decision.

Fixed-scope work is agreed in writing before it starts. The agreed deliverables typically include the endpoint inventory, the proxy configuration as code, the allowlist and authentication specification, test evidence for each allowed and denied path, and handover notes covering how to add a route, where metrics are scraped from inside the network, and how the allowlist is reviewed when vLLM is upgraded. Ask for each deliverable to be named, along with who signs off on the endpoint list and what happens if a new vLLM release adds or renames a route during the work.

A quote follows from the written scope, not from a price list. The main cost drivers are the number of distinct client types and their access patterns, whether rate limits and per-user keys must be built at the proxy or delegated to an existing gateway, how many environments need the same policy, and how much of the path testing must be repeated after changes. Recurring costs sit outside the engagement itself, such as proxy licensing where it applies, monitoring of the metrics path, and the time your team spends reviewing the allowlist after each vLLM release. Ask for the quote to separate one-time build work from any retainer for ongoing review.

How DeployOpen scopes, delivers and supports this vLLM hardening work

DeployOpen plans and builds the reverse proxy in front of your self-hosted vLLM server inside your own infrastructure, starting from an inventory of every path the server exposes. Each allowed route is tested for what it reaches, and internal endpoints stay unreachable from user networks.

How we scope

  • Inventory every vLLM path your users, applications and operators call, including the OpenAI-compatible routes you intend to publish.
  • Record which control endpoints, metrics and health paths stay internal, and which network or identity group may reach each one.
  • Agree the scope in writing before work starts, covering proxy product, authentication model, rate limits and test deliverables.

How we build

  • Configure the proxy with a default-deny allowlist so only the agreed paths and methods reach the vLLM API server.
  • Place authentication and per-client rate limits at the proxy or gateway, and keep the vLLM --api-key option as a secondary control rather than the only one.
  • Test the allowlist from outside the network, confirming that /metrics, /health, control paths and LoRA management paths return no access to user clients.

How we hand over

  • Deliver the proxy configuration, network rules and route inventory as files your team can version and review.
  • Document each allowed path with its purpose, owner and the test that proves it is reachable, and each blocked path with its reason.
  • Walk your platform and security teams through the test results and the steps to add or remove a route safely.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, so allowlist changes follow each vLLM release.
  • Retest the allowlist after vLLM upgrades, since new endpoints added in a release stay blocked until someone reviews them.
  • Confirm with your team which proxy, identity provider and monitoring tools are already in use before the written scope is fixed.

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.