Why multi-tenant vLLM needs a deliberate isolation design
One vLLM process does not isolate tenants. When several teams or customers share one self-hosted capacity pool, every request runs against the same model weights, the same scheduler and the same KV cache, so isolation has to be designed around the engine rather than assumed from it. The vLLM security documentation treats multi-tenant prefix caching as a risk in its own right, and the design work starts with that fact.
The specific risk is the prefix cache timing side channel, tracked as CVE-2025-46570. Prefix caching lets vLLM reuse computed attention blocks when a new prompt begins with text it has already processed. An attacker sharing the server can send crafted prompts and measure time to first token. A fast response suggests that another user's cached prompt prefix already exists, which lets the attacker infer content they should never see. The security docs describe this as a timing leak, so the exposure depends on which tenants can send requests and how much they can observe. Confirm the current status of the CVE and the fixed vLLM versions in the vLLM security documentation before you set your upgrade baseline.
The control the docs describe is the optional cache_salt request field. vLLM mixes this value into the first KV cache block hash, so only requests carrying the same salt can share cached prefixes. Use a random secret value per tenant, such as a 256-bit value, and never a user name or other guessable identifier, because a guessable salt can be tried by an attacker. Plan a case where teams need this design: any shared deployment where tenants are untrusted with each other, where prompts contain regulated or confidential data, or where one customer's requests must never influence another's latency or cache behavior. Single-team internal deployments with one trust domain may need less, but the decision should be recorded.
Per-tenant instances or a gateway in front of shared vLLM
Running a separate vLLM server for each tenant moves the isolation boundary out of the process and into the infrastructure. Each tenant gets its own API server, its own KV cache and its own prefix cache, so one tenant's cached prompts cannot be observed by another through the cache. The trade-off is that every instance needs its own accelerator capacity, and a model that sits idle for one tenant still occupies memory on its GPUs.
- Isolation strength: Separate processes, and separate GPUs or nodes, give the strongest separation available in vLLM. Tenants do not share a prefix cache, a request queue or a metrics endpoint.
- GPU cost drivers: Capacity is paid per instance. Model size, the number of tensor-parallel GPUs per instance and the headroom each tenant needs for peak traffic all multiply, so low-traffic tenants often leave expensive hardware underused.
- Operational load: Each instance needs its own configuration, upgrades, health checks, /metrics scraping and log retention. Upgrades on the vLLM release cadence must be rolled out across every instance.
- Network exposure: Each instance has its own endpoints. The
--api-keyoption does not cover /metrics, /health or /pause, so each instance still needs a reverse proxy that allowlists user-facing routes. - Multi-node risk: If an instance spans nodes, inter-node traffic is insecure by default and must sit on an isolated network.
Before choosing this pattern, ask your vendor or platform team for the GPU count per tenant at peak and idle, and confirm how each instance will be patched and monitored.
A shared vLLM server with a gateway in front of it lets many teams use the same GPUs. LiteLLM is one option: its proxy issues virtual keys, enforces per-key, per-user and per-team budgets, TPM and RPM limits, and restricts each key to specific models. Access control and cost control move to the gateway, and the GPUs are used more evenly across tenants.
- Isolation strength: Isolation is logical. Tenants share the vLLM process, so the prefix cache and scheduling are shared. The gateway controls who can call which model, not what the engine remembers between requests.
- GPU cost drivers: A single pool of accelerators serves all tenants, so capacity is sized for combined peak rather than each tenant's peak. Model count and context length still drive memory use.
- Gateway dependencies: Virtual keys need a PostgreSQL database. Once more than one proxy instance runs, Redis 7.0 or newer is required for shared rate limits, router state and cache. These are recurring infrastructure costs and additional components to operate.
- Licensing: The LiteLLM code outside the enterprise/ directory is under the MIT license. SSO beyond the free limit, JWT authentication, audit logs and organization RBAC sit in the Enterprise license, so confirm which features your design needs before you rely on them.
- Operational load: Fewer vLLM instances are upgraded, but the gateway, database and cache become additional services with their own upgrades and backups.
Ask for a written list of which controls run in the gateway, which run in vLLM, and which Enterprise features the design assumes.
Both patterns still leave one exposure: prefix caching in multi-tenant deployments is a timing side channel tracked as CVE-2025-46570. Within one vLLM process, an attacker can infer another user's cached prompt prefix from time to first token. A gateway that separates keys does not remove the shared cache, so requests from different tenants can still be timed against each other on the same instance.
- Shared cache inside one process: Whenever two tenants reach the same vLLM server, the prefix cache is shared unless the requests use different
cache_saltvalues. - Salting as the control: The optional
cache_saltrequest parameter is mixed into the first KV cache block hash, so only requests with the same salt share cached prefixes. The docs advise random secret salts such as 256-bit values rather than user names. - Gateway responsibility: The gateway or the application must set and protect the salt per tenant, and must not expose it to other tenants.
- Per-instance isolation still needs the salt: Separate instances remove sharing across tenants, but salting still matters for a single tenant whose users should not share prefixes.
- Other exposures: The gateway does not replace network isolation, endpoint allowlisting or secure inter-node communication.
Ask your team to demonstrate how the salt is generated, stored, rotated and attached to each request before accepting either pattern.
Isolation and cache controls and when each fits
This table compares the controls available for serving several tenants from one vLLM estate, listing what each one protects, what it leaves open and when it fits. Read each row as a separate layer: most multi-tenant designs combine a gateway or proxy with per-tenant cache salts, because no single control covers both access and cache timing.
| Control | What it protects | What it does not protect | When it fits |
|---|---|---|---|
| Separate vLLM instances per tenant | Memory, KV cache and prefix cache contents are not shared between tenants, so cached prefixes cannot be probed across them. | Shared GPU hosts, network paths and operator access. Tenants on the same host still share hardware and any host-level compromise. | Tenants with strict data separation or contractual isolation requirements, where the extra GPU capacity is accepted. |
| Reverse proxy allowlist | Only endpoints meant for users are reachable, so admin and control routes stay off the public path. | Requests from an allowed tenant to other tenants' data. It does not separate prefix cache use inside the server. | Any shared deployment. The vLLM docs recommend this layer, and it should sit in front of every other control. |
| --api-key on vLLM | Requests to the protected /v1, /v2, /inference and /cohere paths must present a shared key. | Per-tenant identity, budgets or model access. It does not cover /invocations, /pause, /resume, /abort_requests, /metrics or /health. | A minimal layer behind a proxy. Do not rely on it alone, because it is one shared secret for all callers. |
| Gateway virtual keys with budgets and model restrictions | Per-key or per-team spend limits, request and token rate limits, and restriction of keys to approved models. | Cache timing between tenants on the vLLM server. The gateway does not change how vLLM reuses prefixes. | Several teams or customers sharing one model pool who need chargeback, quotas and clear ownership of each key. |
| Per-tenant cache_salt | Prefix cache reuse is limited to requests with the same salt, which blocks cross-tenant timing inference of cached prompts. | Access control, data leakage through model output, or abuse by a tenant who holds its own salt. It only affects cache sharing. | Any multi-tenant deployment with prefix caching on. Use random secret salts, not user names or other guessable values. |
| Tenant identity passed through to the server | Lets logs and metrics be attributed to a tenant when the gateway forwards identity. | Enforcement by itself. Identity labels do not stop a request that reaches the server. | Audit trails and per-tenant troubleshooting, combined with a control that actually enforces access. |
How to set up cache_salt per tenant and verify the separation
This sequence turns a shared vLLM server into one where each tenant's cached prompt prefixes are keyed to a secret the client cannot see or choose, and where that separation is tested before anyone relies on it.
Inventory tenants and exposed endpoints
Your team lists every tenant, team or customer that will send requests, along with every vLLM endpoint each one touches and every endpoint an operator uses. Include the /v1 routes, /invocations, /metrics, /health and any pause, resume or abort controls. The output is a table that shows which endpoints each tenant should reach and which should stay internal. You are done when no endpoint is unassigned and the owner of each tenant is named.
Decide the tenant boundary
Decide whether each tenant gets its own vLLM instance or whether tenants share one server behind a gateway that applies the salt. Per-tenant instances give stronger separation at the cost of more GPU capacity and operations work, while a shared server depends on the gateway and salt handling being correct. Record the decision, the reason for it, and who approves it. You are done when the boundary is written down for every tenant group.
Place a reverse proxy allowlist in front
Put a reverse proxy or gateway in front of vLLM and configure it to forward only the endpoints that users need, such as the chat and completions routes. The vLLM security documentation warns against relying on --api-key alone, because it does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. Deny everything else by default. You are done when a request to a blocked path returns a refusal from the proxy and never reaches the vLLM process.
Generate and store per-tenant secret salts
Generate a separate random secret for each tenant using a cryptographically secure generator. The vLLM documentation suggests values such as 256-bit random secrets, and advises against user names, which are predictable and may be shared across systems. Store each secret in your secret manager with access limited to the gateway service, and record rotation ownership. You are done when every tenant has a unique secret stored and no salt appears in source code, logs or client configuration.
Inject the salt at the gateway
Configure the gateway to add the tenant's cache_salt to each request on the server side, after it authenticates the caller and identifies the tenant. Strip or overwrite any cache_salt value the client sends, so clients cannot choose a salt or read another tenant's. Confirm that the salt is not returned in responses or error messages. You are done when a test request with a forged salt from one tenant is sent with the correct server-side salt and the forged value is discarded.
Test cache hits and misses across tenants
Send the same long prompt prefix from tenant A twice and confirm that the second request shows a cache hit through vLLM's prefix cache metrics. Then send the same prefix from tenant B and confirm it does not hit tenant A's cached blocks. Repeat with a changed salt to check that the cache key moves. The output is a short test log with timestamps, tenant names and observed hit behavior. You are done when cross-tenant requests never reuse another tenant's prefix.
Confirm metrics access is restricted
Check that /metrics, /health and the operator endpoints cannot be reached from the tenant-facing network or through the public proxy. Metrics expose request counts, throughput and KV cache use, which can help an attacker time requests or see other tenants' load. Ask your security team to verify the restriction from outside the trusted network and from a tenant client. You are done when those paths return refusals for every tenant credential and only the monitoring network can read them.
Request flow and trust boundaries for shared vLLM tenants
The diagram starts with tenant clients calling a gateway or reverse proxy that authenticates each caller and injects a per-tenant cache_salt before forwarding to the shared vLLM server. The important hand-off is that the gateway, not the client, decides the salt, so a tenant cannot pick another tenant's value. Metrics, health and admin endpoints sit on a separate internal path that only operators reach. Check that the proxy allowlists only user-facing endpoints and that nothing outside the trust boundary can reach the vLLM process directly.
Tenant traffic passes a gateway that sets cache_salt before reaching the shared server.
Security and operational risks to control
Serving several tenants from one vLLM deployment creates risks that sit in the engine, the network, the metrics and the keys around it. Each card below names one risk and the control that addresses it, so the isolation design and the operating runbook cover the same ground.
Prefix cache timing side channel
Prefix caching is a timing side channel, tracked as CVE-2025-46570. A tenant can infer another tenant's cached prompt prefix from how quickly the first token arrives. The control is to assign each tenant a distinct cache_salt so only requests carrying the same salt share cached prefixes. Confirm that every request path, including gateway routes and batch jobs, sets the salt before traffic reaches the engine.
vLLM security docsSalt leakage through clients and logs
A cache_salt only protects a tenant if other tenants cannot read it. If the salt is derived from a user name, team name or other guessable value, an attacker can reproduce it. Generate random secret salts, store them in a secret manager, and map them to tenants at the gateway. Check that salts do not appear in access logs, traces, error messages or client-side code.
Unauthenticated operational endpoints
The --api-key option protects the /v1, /v2, /inference and /cohere routes but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. Treat the API key as one layer only. Place a reverse proxy in front of the server that allowlists the endpoints meant for tenants and blocks control routes from tenant networks. Test the allowlist by calling each blocked path with a tenant credential.
vLLM security docsShared metrics exposing other tenants
The /metrics endpoint reports request counts, token throughput, latency histograms and KV cache use for the whole server. Those figures can reveal when another tenant is busy, how large its workloads are and when its cache is warm. Scrape metrics only from the monitoring network, keep the endpoint off the tenant allowlist, and review whether per-tenant dashboards need separate servers or filtered views.
vLLM metrics docsUnauthenticated traffic between nodes
In a multi-node deployment, communication between nodes is insecure by default, with no authorization or encryption. Any host that reaches the node network can join or interfere with the run. Place all nodes on an isolated network segment, restrict access with host firewall rules, and confirm the design with the network team before any tenant traffic reaches the cluster.
vLLM security docsKey and budget management
Tenant credentials, salts and per-team budgets need an owner and a rotation process. When a gateway issues tenant keys, set per-key or per-team limits so one tenant cannot exhaust shared capacity. Agree who can create, rotate and revoke keys, how revocation reaches running servers, and how quota changes are logged and reviewed.
Questions buyers ask about vLLM tenant isolation
Does cache_salt alone isolate tenants on a shared vLLM server?
No. The cache_salt parameter only controls which requests can share cached prefixes, which addresses the prefix cache timing side channel tracked as CVE-2025-46570. It does not separate authentication, authorization, logging, GPU memory, model access or request limits between tenants. Treat it as one control in a layered design. The vLLM security documentation describes the side channel, where an attacker can infer another user's cached prompt prefix from time to first token, and recommends random secret salts such as 256-bit values rather than user names. Confirm the exact behavior of your vLLM version against its security documentation before you rely on it for a compliance claim.
Do I need a separate vLLM instance for each tenant?
Not always, but the decision should follow your risk model, not convenience. A single vLLM process is not an isolation boundary, so a shared server needs a gateway or proxy in front of it that authenticates each tenant, allowlists only the endpoints users should reach, and enforces per-tenant limits. Per-tenant instances give stronger separation of GPU memory, configuration and failure domains, at the cost of more accelerator capacity, more operations work and lower utilization. Teams with strict contractual or regulatory separation often choose instances for the most sensitive tenants and a shared pool for the rest. Document which choice you made and why.
What drives the cost of isolating vLLM for multiple tenants?
vLLM itself has no license fee, so the cost comes from four places. The first is accelerator capacity, which rises if you run separate instances because each one needs its own GPU allocation and headroom. The second is the gateway or proxy layer, its hosting and the work to configure authentication and allowlists. The third is implementation and testing, which grows with the number of tenant types, the number of endpoints you expose and how many isolation controls you verify. The fourth is ongoing operation, including upgrades, monitoring, and retesting after vLLM releases. Ask any partner for a quote that lists each of these components separately, with one-time and recurring costs marked.
How long does tenant isolation work take, and what does it depend on?
The duration depends on the design decisions that are still open when the work starts. The main drivers are the number of tenants and their trust levels, whether you need per-tenant instances or a shared pool, how many teams already run an identity provider you can integrate with, and how much evidence your auditors or customers expect. Work that is usually needed includes choosing a salt strategy and key handling, locking down the endpoints that the --api-key option does not cover, and testing that one tenant cannot observe another's timing or cached content. Engagements are normally fixed-scope, so the written scope should state the timeline and the milestones it depends on.
What does my team need to provide before isolation work starts?
Your team needs to provide the inputs that define the boundary. Expect to supply a list of tenants and their trust relationships, the accelerator hosts and network segments where vLLM will run, and the identity provider that will authenticate users. You will also need to name the model set each tenant may use, the request and rate limits you want, and the logging and retention rules your compliance team requires. Access to a staging environment that mirrors production is important, because isolation tests can disturb latency and cache behavior. Finally, name an owner who can approve the design, since trade-offs between cost and separation need a decision maker.
Can my own engineers implement per-tenant cache salting and gateway controls?
Yes, if your team has experience operating vLLM, a reverse proxy and your identity provider, and if it can test the result. The salt itself is a configuration detail: each tenant's requests carry a cache_salt value that must be generated randomly, stored as a secret, and never derived from a user name. The harder part is the surrounding design. Your team must ensure that only intended endpoints reach users, that the --api-key option is not relied on alone, that the internal node and metrics paths stay closed, and that the setup is verified after each vLLM upgrade. Many teams keep the build in-house and bring in an outside tester for an independent check.
Which vLLM endpoints must stay closed to tenants?
The endpoints that need protection are the ones the --api-key option does not cover. According to the vLLM security documentation, that option protects paths under /v1, /v2, /inference and /cohere, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. The documentation recommends a reverse proxy that allowlists only the endpoints meant for users. For multi-tenant use, the control and metrics paths should be unreachable from tenant networks, and each tenant should reach only the model routes it is approved for. Confirm the current list against the documentation for your exact release, since the set can change between versions.
How DeployOpen scopes multi-tenant vLLM work
A written scope for multi-tenant vLLM work starts by fixing the tenant model before any configuration is touched. The scope records which teams or customers share a server, which of them may see each other's models, prompts or logs, and which tenants need their own vLLM process. From that model, the scope lists the endpoints to review, since the vLLM security documentation says the --api-key option does not cover /invocations, /pause, /resume, /abort_requests, /metrics or /health. The review confirms which of those routes are reachable from each tenant's network and which are blocked at a reverse proxy or gateway. The gateway configuration is written into the scope as a named deliverable, covering the allowlist, per-tenant keys, and any budgets or rate limits the client's platform team wants enforced before requests reach the engine.
Salt handling is scoped as its own item because the cache_salt value is a control the client's developers or gateway must set on every request. The scope states where salts are generated, who holds them, how they are stored in the client's secret manager, and how the gateway injects them so a tenant cannot choose or read another tenant's value. Each salt should be a random secret, such as a 256-bit value, as the vLLM security documentation advises, and the scope should confirm rotation is planned, since changing a salt means cached prefixes for that tenant are no longer shared. Verification tests are agreed in writing: timing comparisons of time to first token for repeated and unrelated prompts across tenants, checks that unauthenticated requests to restricted routes fail, and checks that one tenant's salt cannot retrieve another tenant's cached output.
The client receives evidence that its security team can review without relying on DeployOpen's word. This normally includes the tenant and endpoint inventory, the proxy or gateway configuration files, a record of each test with its inputs and observed results, the salt handling procedure, and a retest after fixes. DeployOpen prepares this material for the client's own assessors. It does not issue audit reports or certifications. Before signing, the client should confirm with its compliance lead which evidence its assessors expect, whether the tests must run against a staging copy or production, and who approves retesting after a vLLM upgrade.
How DeployOpen delivers vLLM isolation work
DeployOpen plans, builds, tests and documents multi-tenant isolation for vLLM inside infrastructure you control. We start from the tenant model and threat assumptions, then build the boundary, the cache salting rules and the proxy controls, and test them before handover.
How we scope
- We record which teams or customers share the server and what each tenant must not see.
- We choose between per-tenant instances and a shared gateway, and write that decision into the scope.
- The written scope lists the cache_salt design, proxy allowlist, network paths and test cases before work starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- We configure per-tenant secret cache_salt values, generated and stored in your secret manager, not derived from user names.
- We place vLLM behind a reverse proxy that allowlists only the endpoints tenants are meant to reach.
- We isolate node-to-node traffic on a private network and document every port that must stay closed.
- We test the prefix cache timing side channel (CVE-2025-46570) against the deployed configuration before sign-off.
How we hand over
- You receive the tenant model, isolation design and the reasoning behind each boundary decision.
- You receive configuration files, proxy rules, salt rotation steps and the test scripts used for verification.
- Operators receive a runbook covering onboarding a new tenant, rotating salts and reviewing metrics at /metrics.
- Your security and compliance teams receive evidence they can review. DeployOpen does not issue audit reports or certifications.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retesting covers vLLM release changes, such as the minor releases that ship about every two weeks, before you adopt them.
- We review proxy allowlists and salt handling when you add tenants, models or new endpoints.
- Ask in the quote which retests, upgrade reviews and response arrangements are included in the retainer.

