Restricting Qdrant tenant access with JWTs

Qdrant JWTs can limit a client to specific collections and read or write permissions, but they cannot filter points inside a shared collection. This page explains where JWT stops and an API layer must take over.

On this page

Restricting Qdrant tenant access with JWTs: where the database boundary stops

Picture a team serving several customers or business units from one self-hosted Qdrant deployment. The question they must answer first is where the database can enforce a boundary and where it cannot. Since v1.9.0, Qdrant supports JWT-based granular access control with per-collection read or write permissions. That fits separation at the collection level: one customer's collection can be readable by a token that has no rights to another customer's collection. It does not fit separation at the row level. If several tenants share one collection and are distinguished only by a payload field, a JWT can grant access to the whole collection but cannot say that a caller may see only the points where tenant_id equals a given value. Confirm the exact claim format and permission names against the Qdrant security docs for your target version before you design token issuance around them.

Qdrant ships without protection because its security documentation states that self-deployed instances listen on all network interfaces and have no authentication configured by default. Teams need the JWT capability as soon as more than one trust domain touches the cluster: separate customers, internal business units with different data rights, or a service account that should only write to one collection. Admin and read-only API keys are not enough for that case, because they do not scope access by collection. Before you rely on any of this, run a check that the instance is not reachable from networks it should not reach, that TLS is enabled, and that the admin key is not shared with application code. Also confirm that audit logging of authenticated operations, available since v1.17.0, is on, so you can show which token touched which collection.

Treat JWT as the outer boundary and an API layer as the inner one. Each tenant gets tokens scoped to its own collections where that is practical, and the application or gateway that issues queries on behalf of shared-collection tenants always adds the tenant filter server side, never trusting a filter sent by the caller. Decide who signs tokens, how keys rotate, how long tokens live, and who is paid to build and test this layer, and write those decisions into the scope before work starts. The Qdrant security documentation is the natural next read for the exact configuration options.

How the JWT boundary and the tenant filter fit together

The request starts at the tenant's client, which calls an API layer that is the only component allowed to talk to Qdrant. That layer adds the tenant condition to every search and write before the request reaches the Qdrant node, which checks the JWT's collection-level permissions against the shared collection. The trust boundary sits between the API layer and the database, so anything the API layer omits is not caught by Qdrant. Check that the JWT grants access only to the shared collection and that no path reaches Qdrant without passing through the API layer.

Requests pass the API layer, which adds the tenant filter, before Qdrant checks the JWT.

What JWT enforces and what it cannot enforce

Qdrant's JWT-based access control lets you issue tokens that grant read or write permission on specific collections. When a request arrives, the server checks the token's claims against the collection named in the request path and either accepts or rejects the call. This is the enforcement point Qdrant actually provides for tenant separation, and it works well when each tenant or team owns its own collection. A token scoped to collection tenant_a_docs cannot read or write tenant_b_docs, regardless of what the client sends. The control applies at the level of the whole collection, so it answers the question "which collections may this caller touch," not "which records may this caller see." Permissions were introduced in v1.9.0, and the security documentation describes them as granular access control. Review the exact claim format and permission names in the security docs for your version before you write token issuance code.

  • Per-collection scope: Tokens name the collections they may read or write, and Qdrant enforces that scope on each request.
  • Read and write separation: A read-only token can serve search traffic while a separate write token handles ingestion.
  • Key rotation and expiry: Your identity system issues and expires the tokens, so define lifetimes and a rotation process before go-live.
  • Coverage of both protocols: Confirm that your chosen client and gateway send the token on REST and gRPC paths the same way.
  • Admin keys remain separate: Keep admin credentials out of application tokens so that an application can never change collection structure.

Before relying on this layer, test each token against a collection it should not reach and confirm the rejection is logged.

Choosing JWT access options for your tenant model

This table compares the four access options Qdrant offers for a multitenant setup, from a shared admin key to one token per tenant. Read each row against your tenant count and how often you expect to issue and rotate credentials. The main takeaway is that per-collection JWTs only isolate tenants when each tenant has its own collection, so shared collections still need the API layer to enforce the tenant filter.

OptionIsolation it providesWhen it fitsOperational cost of issuing and rotating
Admin API keyNone between tenants. Full control over all collections and operations.Internal back-end services only, never handed to tenant-facing code.Low effort, but one leaked key exposes every tenant. Rotate through your secrets manager and redeploy clients.
Read-only API keyBlocks writes and admin operations, but every tenant's vectors are still readable.Shared reporting or search services that only read from one or more collections.Low effort. Rotation affects every consumer of the key at the same time.
Per-collection JWT with read or writeLimits a token to named collections and access levels, so a token can be scoped to one tenant's collection.Shared collections are not covered: a JWT cannot filter points by tenant field inside one collection.Each token must be signed, issued, stored and rotated by your identity layer. Confirm the claim structure in the Qdrant security docs before building it.
Collection per tenant with one JWT per tenantStrongest boundary Qdrant access control offers, since each tenant's data sits in its own collection.A small number of tenants with strict isolation, deletion or encryption needs.Highest effort: one collection and one token per tenant to create, rotate and revoke. Shard and memory overhead grows with tenant count.

How to set up JWT access control on a self-hosted Qdrant cluster

This sequence takes a self-hosted Qdrant cluster from open and unauthenticated to one where each tenant or service token can reach only the collections it was issued for. The output is a tested configuration with API keys, TLS, JWT signing and claims in place, plus negative test results that prove cross-collection reads fail.

  1. Confirm the baseline and version

    Confirm the cluster version and the network exposure before changing anything. Self-deployed Qdrant listens on all network interfaces and has no authentication configured by default, so the first check is whether the REST and gRPC ports are reachable from outside the intended network. Record the running version, since JWT per-collection permissions are available from v1.9.0 and audit logging from v1.17.0, and the current release line is documented on the releases page. Done when you have a written inventory of ports, versions and clients that connect to the cluster.

  2. Enable TLS on REST and gRPC

    Configure TLS for both the REST and gRPC interfaces using the Qdrant configuration keys for certificates and private keys, supported since v1.2.0. Issue certificates from your internal certificate authority and confirm that every client SDK and tool you use trusts that chain. Tokens and API keys sent over plaintext would be exposed to anyone on the path, so TLS must come before credentials are issued. Done when a client connects over HTTPS and gRPC with certificate verification on and a plaintext request is refused.

  3. Enable API keys and restrict network access

    Set an admin API key and a read-only key, then restrict the listening interfaces and firewall rules so only application subnets and the API layer can reach Qdrant. The admin key should be held by the platform team only and never embedded in application code. Confirm that requests without a key return an authentication error and that the read-only key cannot create or delete collections. Done when unauthenticated calls fail and the key roles behave as documented in the security docs.

  4. Configure the JWT signing setup

    Follow the security documentation to configure JWT validation on the cluster, choosing the signing secret or key material your security team manages, and store it in your secrets manager rather than in the configuration file committed to version control. Decide the token lifetime and rotation procedure before issuing any token, because changing the key later invalidates every token signed with it. Ask your Qdrant contact to confirm the exact configuration keys for your version. Done when the node restarts cleanly with JWT validation enabled and a token signed with a test key is accepted while a tampered token is rejected.

  5. Define claims for collections and permissions

    Write the claim structure that maps each token to the collections it may access and whether it may read, write or both. Keep one collection per tenant or per service where isolation is required, and list those names explicitly in the claim rather than using wildcards. Document the claim schema in a single file that the API layer and the token issuer both read, so the two cannot drift. Done when the schema lists every collection, every permission level and a default of no access for anything not listed.

  6. Issue tokens per tenant and per service

    Have the issuing service create one token for each tenant or service account, with the minimum permissions its workload needs and a lifetime that matches your rotation policy. Store each token in the secrets store of the consuming application and log issuance events with the requesting identity. Do not issue a shared token across tenants, because a leaked shared token exposes every collection it covers. Done when each tenant has its own token, the issuance log shows who received it, and the token decodes to the expected claims.

  7. Run negative tests across collections

    Test the boundary before any tenant is onboarded. Using a token issued for collection A, attempt reads, searches, scrolls, upserts and deletes against collection B, and confirm that each attempt is refused with an authorization error. Repeat with an expired token, a token with a modified claim and a read-only token attempting a write. Record the results in a test report that you rerun after every configuration change or version upgrade. Done when every cross-collection and write attempt fails as designed and the report is stored with the configuration.

  8. Verify audit logging and plan rotation

    Turn on JSON audit logging of authenticated API operations, available from v1.17.0, and confirm that log entries identify the token subject and the collection touched. Check that a denied request also appears in the logs so that boundary violations can be investigated. Set a key and token rotation schedule with a named owner and test one rotation in a non-production cluster first. Note that JWT on its own does not restrict what happens inside a shared collection, so the API layer must still apply the tenant filter. Done when a sample operation and a denied attempt both appear in the audit log and a rotation has been rehearsed.

Pairing JWT with an API layer that always applies the tenant filter

The API layer, not the client, must attach the tenant filter to every search, scroll, recommend and delete call. JWT scopes limit which collection a token can touch, but inside a shared collection they cannot say which points a caller may see. That boundary exists only if your service adds a must condition on the tenant payload field to every request it forwards to Qdrant. Build this as a single query-building function that all endpoints call, so a new endpoint cannot skip it. Never accept a tenant identifier from the request body or query string as the source of truth. Derive the tenant from the verified token claims or your session store, and treat any client-supplied tenant value as untrusted input that must match the verified identity or be rejected.

Confirm that the tenant field is indexed as a keyword payload index with is_tenant set before you rely on the filter in production. The index design, HNSW settings and deletion by filter are covered on the sibling page on payload partitioning, so this section only requires you to verify the index exists on every collection the API serves. Add a startup or deployment check that reads the collection configuration and fails if the index is missing, because an unindexed tenant filter still works but degrades query speed and makes the isolation design harder to audit.

Test filter bypass before any tenant uses the system. Write tests that authenticate as tenant A and attempt to reach tenant B's points through every route: omitted tenant conditions, a forged tenant field in the body, nested or should clauses that widen the match, direct calls to Qdrant with a valid token, and pagination through scroll with offsets from another session. Run the same suite against search, scroll, recommend, count and delete. Also confirm that the JWT used by the API layer cannot be exchanged for a broader token, and that Qdrant audit logging, available since v1.17.0, records the calls you expect to see. Repeat these tests after each Qdrant upgrade and each change to the gateway, since an API change is the most common way a filter gets dropped.

Security risks to close around JWT tenant access

A JWT scoped to a collection only protects the boundary the database can see. The risks below sit around that boundary: the default exposure of the server, the credentials that reach it, the filter that the API layer must apply, the traffic between services, and the logs that show who did what.

Unauthenticated default exposure

A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Any JWT scheme is void if the REST or gRPC port is reachable from a network that should not see tenant data. Check the bind address, the container port mapping, the Kubernetes service type and the ingress rules, and confirm that API key or JWT authentication is enabled before the first tenant is loaded. Test from outside the intended network, not only from inside the cluster.

Qdrant security docs

Leaked or long-lived tokens

A token that grants read access to a tenant's collection is a credential for that tenant's vectors and payloads, so it should be treated like a database password. Issue short expiry times, rotate signing keys on a schedule, and store tokens in a secrets manager rather than in client code or CI logs. Confirm how your team revokes a token before its expiry, because a JWT is only checked for signature and claims and a removed tenant can keep a valid token until it expires.

Write access on a shared collection

A token with write permission on a collection that holds several tenants can upsert, overwrite or delete points for every tenant in that collection. Per-collection JWT permissions cannot express a per-tenant rule inside one collection. Grant write access only to the service account that performs ingestion, keep end-user tokens read-only where the design allows it, and review which collections each token names before issuing it.

Filter bypass in the API layer

When tenants share a collection, the tenant filter lives in your application, not in Qdrant. Any query path that omits the filter, accepts a client-supplied tenant ID, or calls Qdrant directly with a broader token returns another tenant's points. Build one search function that injects the tenant condition from the verified token claim, route every read and write through it, and add tests that query as tenant A and assert that no tenant B point appears.

Missing TLS between services

JWTs and API keys travel in request headers, so plaintext traffic between the API layer, the Qdrant nodes and the cluster peers exposes them to anyone on the path. Qdrant supports TLS for REST and gRPC, and the inter-node traffic of a distributed cluster also needs protection. Confirm that certificates are issued from an internal authority, that clients verify them, and that no service falls back to plaintext for a convenience port.

Audit log coverage

Qdrant writes JSON audit logs of authenticated API operations from v1.17.0, which shows which token performed which action. Those logs only help if they are shipped off the node, retained for your review period and joined to your application's own tenant records. Confirm that unauthenticated requests are rejected before they reach the log, that log access is restricted, and that an investigator can trace a disputed read to a token and then to a tenant.

Questions buyers ask about Qdrant JWT tenant access

Does a JWT alone isolate tenants in a shared Qdrant collection?

No. JWT access control in Qdrant grants read or write permissions per collection, so it can separate tenants only when each tenant has its own collection. Inside a shared collection, a token that can read that collection can read every point in it, including other tenants' vectors and payloads. Tenant separation in a shared collection has to come from a tenant filter that your API layer always applies to every query, upsert, scroll and delete, combined with the payload design you choose. Treat the token as the outer boundary and the API layer as the inner one, and test both. Confirm the exact claim format and permission model against the Qdrant security documentation before you design around it.

Can our team set up per-collection JWT access without outside help?

Often yes, if your engineers already run Qdrant in production and know how your identity provider issues tokens. The configuration itself is small. The hard parts are the things around it: deciding which tenants need their own collection, issuing and rotating tokens, mapping your identity provider's claims to Qdrant permissions, and building an API layer that cannot be bypassed. Teams that lack an identity owner or have no one who reviews authorization code often underestimate the testing work. A useful self-check is whether someone on your team can write a test that proves tenant A's token cannot read tenant B's points, and run it on every release.

What drives the effort and cost of this work?

Effort rises with four things. The first is the number of collections, since each tenant or tenant group that needs its own permission adds provisioning, token and test work. The second is the token lifecycle: how tokens are issued, how long they live, how they are revoked when a customer leaves, and how key rotation is handled. The third is API layer work, which covers tenant identity resolution, a filter applied to every operation, and handling of batch and admin endpoints. The fourth is testing, including negative tests for cross-tenant access, load behavior and security review. Your cost is shaped by how many of these exist in your environment and how much of the existing code you can reuse.

What does the work need from our side?

Plan for three groups of inputs. Infrastructure access is needed to run Qdrant in your cloud account, data center or air-gapped network, along with the TLS and network controls the deployment requires. An identity owner must define how tokens are issued, which claims carry the tenant identity, and who can revoke access. Security reviewers should read the authorization model, the negative test results and the audit log design before go-live. Ask the provider to name these people in the written scope so the schedule does not depend on availability you have not confirmed.

Does the open-source Qdrant engine include JWT access control?

Yes. Qdrant is licensed under Apache-2.0, and the open-source engine is free to self-host. The Qdrant security documentation describes JWT-based granular access control with per-collection read or write permissions, along with admin and read-only API keys and TLS for REST and gRPC. Access control does not come on by default, because self-deployed instances listen on all interfaces without authentication until you configure it. Confirm the feature set in the release you plan to run, since the Qdrant GitHub releases page lists the changes per version.

How is the cost of this engagement quoted?

DeployOpen does not publish a price list. Engagements are normally fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. Ask for the quote to list the collections or tenant groups in scope, the identity integration, the API layer work, the test cases and retest rounds, the knowledge transfer, and any ongoing retainer for token rotation or upgrades. Note which items are one time and which recur. Ask your own team to estimate the same list so you can compare build and buy on equal terms.

Can we run Qdrant tenant access on a managed cloud instead?

You can, but confirm first what the managed service exposes. Qdrant Cloud pricing lists tiers with different uptime commitments and features, and the Premium tier adds SSO and private VPC links, with pricing that depends on a minimum spend. Whether a managed tier supports the access model you need, and where your data lives, must be checked in writing with the vendor. If your data location or network rules require self-hosting, the deployment and security steps in this guide apply directly.

Official Qdrant documentation for JWT and security settings

Before you write any JWT configuration, read the Qdrant security documentation on JWT-based granular access control. It covers how per-collection read and write permissions are expressed in tokens, how the signing secret or key is set, and how the admin and read-only API keys interact with JWT tokens. Use the Qdrant security docs as the baseline for your design review, and record which page version you read so the team can trace any later change.

Confirm every JWT configuration key, claim name and token field against the exact Qdrant release you run, not against memory or an older blog post. Qdrant has shipped JWT-based access control since v1.9.0, and later releases have changed surrounding security features, so a key that works in one minor version may be renamed or behave differently in another. Test each claim with a token that should be denied, a token scoped to one collection, and a token with the wrong signature before you rely on it in production.

Next, read the Qdrant distributed deployment docs if your tenant boundary spans a cluster. Access rules you set on one node must reach every peer and every replica, so confirm how your chosen topology applies the same security configuration cluster-wide, and how a node you add later inherits it. Also check that the API layer and the database use the same tenant identifiers, because the JWT only protects the collection, and the tenant filter inside a shared collection remains your responsibility.

How DeployOpen scopes and delivers Qdrant tenant access controls

DeployOpen works on Restricting Qdrant tenant access with JWTs as a fixed-scope engagement inside infrastructure you control. We set the per-collection JWT boundaries, test what they cannot enforce inside a shared collection, and deliver an API layer that applies the tenant filter on every request.

How we scope

  • Map every tenant, collection and role that needs a JWT with read or write permissions.
  • Identify which tenant boundaries JWT can enforce and which must sit in the API layer.
  • Agree deliverables, environments and timelines in writing before any build work starts.

How we build

  • Configure Qdrant API keys, TLS and JWT claims on self-hosted clusters in your environment.
  • Implement the API layer that always injects the tenant filter and rejects unscoped queries.
  • Test cross-tenant reads and writes, token expiry and filter bypass attempts before go-live.

How we hand over

  • Document the JWT signing process, claim structure, key rotation steps and collection permissions.
  • Deliver audit logging settings and a runbook for adding tenants and revoking access.
  • Walk your security and platform teams through the controls and the retest results.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Retest access controls when Qdrant versions change or new tenants and collections are added.
  • Confirm with your team which tenant isolation needs, such as deletion or encryption, require separate collections.

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.