Setting Qdrant admin and read-only API keys

Self-hosted Qdrant ships with no authentication, so anyone who can reach the port can read and change data. Admin and read-only API keys close that gap with a small change to configuration and clients.

On this page

Why setting Qdrant admin and read-only API keys comes first

A self-hosted Qdrant instance is reachable without credentials until you configure them, and the admin and read-only API keys are the first control to turn on. The admin key lets a caller create, change and delete collections, while the read-only key lets a caller search and read but not modify data. Teams need both as soon as more than one service touches the cluster, because query-only applications should never hold the credential that can drop a collection. The Qdrant security documentation states that by default all self-deployed instances listen on all network interfaces and have no authentication configured, so a fresh install is open to anyone who can reach its ports.

The open-source engine is licensed under Apache-2.0 according to its GitHub repository, and it is free to self-host, so the cost of enabling keys is engineering time rather than a license purchase. Keys are also the first layer in a sequence. JWT-based scoping per collection, TLS for REST and gRPC, and network isolation all build on the same configuration model, and you should not start those steps on an instance that still accepts unauthenticated requests. Keys are a single shared secret per role, so they do not identify individual callers. That limit is why per-service JWT scoping and audit logging follow later in this series.

This page assumes the latest release on GitHub, v1.19.2, published October 5, 2026, following v1.19.0 on August 5, 2026. Confirm which version your cluster runs before you change any setting, because the key and JWT behavior you read about depends on the release. Before you start, inventory every client that talks to the instance, decide which of them only query, and confirm with your platform team where the keys will be stored so that the read-only key reaches those services and the admin key stays with the people who manage the cluster.

Key options and when each fits

This table compares three ways to configure Qdrant API keys: an admin key only, an admin key plus a read-only key, and a read-only key for query-only services. Read each row for the service it suits, the risk it leaves open, and what to confirm in your deployment before you choose. The main takeaway is that a read-only key limits what a client can do, but it does not replace network controls or per-collection access.

OptionBest fitRisk it leavesConfirm in the deployment
Admin key onlySingle operator or small team that runs indexing, administration and queries from the same trusted placeEvery client holding the key can write, delete collections and change cluster settingsWhere the key is stored, who can read it, and that no query-only service receives it
Admin key plus read-only keyIngestion or admin jobs use the admin key while search services use the read-only keyClients with the read-only key can still read every collection, and the admin key remains a high-value secretWhich services hold each key, and that the read-only key is not used by any writer or sync job
Read-only key for query-only servicesRetrieval APIs, chatbots or search front ends that only query existing collectionsA leaked read-only key still exposes all stored vectors and payloadsThat writes, snapshots and collection management fail with the read-only key, and that the key is delivered only through a secrets store
Unauthenticated instance (no keys)Only a disposable local test, never a shared or production instanceQdrant listens on all interfaces by default with no authentication, so anyone who reaches the port has full accessThat keys are configured before the instance is exposed, and that the network binding restricts access
Key format and length rulesApplies to every option aboveWeak or malformed keys reduce the value of any setupCurrent key length and format requirements in the Qdrant security documentation before you generate keys

Setup sequence for enabling both keys

This sequence turns on authentication for a self-hosted Qdrant node, from key generation through checks that prove the admin key and read-only key each do only what they should. It ends with a node that refuses anonymous calls and a record of how each key reached its service.

  1. Generate two distinct high-entropy keys

    The platform or security engineer generates both keys outside Qdrant, on a trusted workstation or inside your secrets manager. Use the operating system's cryptographically secure random source or your standard key generator, and produce a long random string for each key. Confirm the two values differ and that neither is a dictionary word, hostname or team name. Store each value under its own name, such as qdrant-admin-key and qdrant-readonly-key, so each can be rotated separately later. Done when both values exist in the secrets store and the admin value is not copied anywhere a query-only service can read it.

  2. Set keys in service configuration

    The engineer who manages the Qdrant deployment sets the admin key and the read-only key in the configuration file or environment variables named in the Qdrant security documentation. Confirm the exact setting names against that page for your Qdrant version. Inject the values at deploy time from the secrets store, not typed into a file in the repository, and restrict the config file to the service account. Done when the running configuration shows both settings present, checked by key name only, without printing the values to a terminal or log.

  3. Restart the node and confirm startup

    The operator restarts the Qdrant process or container so it reads the new settings. Before the restart, tell the teams that depend on the node, because clients that send no key will start receiving refusals once authentication is active. Check the startup logs for configuration errors and confirm the node is listening on its REST and gRPC ports. Done when the node starts cleanly with both keys loaded and no error about the key settings appears in the logs.

  4. Confirm unauthenticated requests are refused

    From a host outside the admin and service network, the tester sends a collection listing request with no key, then repeats it with a wrong key, over both REST and gRPC. The Qdrant security documentation describes the default state as having no authentication, so this test shows whether the change took effect. Confirm the exact header or metadata name for each client against that documentation. Done when every request without a valid key returns an authentication refusal and returns no collection data.

  5. Test admin key on admin operations

    The tester sends requests with the admin key to list collections, read collection details and run one harmless admin action, such as creating and then deleting a throwaway test collection. Run this on a non-production node first where possible. Pass the key through an environment variable or a header file so it does not appear on the command line. Done when the admin key completes the read and write operations and the test collection is removed afterward.

  6. Test read-only key on query and write

    The tester uses the read-only key to run a vector search and a point retrieval against a test collection, both of which should succeed. Then the tester sends a collection creation, a point upsert and a collection deletion with the same key, each of which should be refused. Record the status returned for each attempt in the test notes. Done when all searches and reads succeed and every write or admin attempt is refused, which confirms the query-only service cannot change data or structure.

  7. Scan images, logs and history for keys

    The security engineer searches the container image layers, build files, deployment manifests, application and Qdrant logs, and shell history files on the test hosts for the literal key values. Check process listings during the tests as well. If a search finds a value, remove it, rotate that key and fix the command or pipeline that exposed it before going further. Done when the search returns no matches for either key in images, logs, manifests or history, and the result is saved in the deployment record.

How clients send keys over REST and gRPC

Qdrant's REST API reads the key from an HTTP header named api-key on each request. Any HTTP client can set that header, including curl, a service mesh or an API gateway, so you can attach the key without SDK support. Keep the header in server-side code, because anything shipped to a browser can be read by every user.

  • Header name: send api-key with the key value on every request, including read calls and health checks.
  • Permission by key: the key determines what the request may do, so a search-only service should receive the read-only key.
  • Plain HTTP exposure: without TLS, the key crosses the network in readable form, so enable TLS before sending keys over any shared network.
  • Single-request test: run one curl call against a read endpoint with and without the header to confirm the behavior on your server version.

Check the header name and casing against the current Qdrant security documentation for your version before you configure a gateway to inject it.

How a query service and an admin tool reach Qdrant with different keys

The diagram starts at two clients inside the private network: a query-only service that sends the read-only key and an ingestion or admin job that sends the admin key. Each key is pulled from its own secrets store entry, so neither client holds the other's credential. Both requests cross the trust boundary into the private network and reach the Qdrant node, where the authentication check compares the presented key with the configured admin or read-only key before the request runs. Check that the read-only service cannot reach admin endpoints such as snapshots and collection changes, and that the admin key never leaves the job that needs it.

Two clients present different keys, and the Qdrant node checks each request.

Storing keys as secrets without leaking them

Qdrant reads its admin and read-only keys from configuration or environment settings, so the key values are only as safe as the place they live. The practices below cover where keys sit, who can read them, and how they get out of images, repositories and logs.

Inject keys from a secrets manager

Keep the admin and read-only key values in a secrets manager or in your orchestrator's secret objects, and inject them into the Qdrant container at start rather than baking them into a config file on disk. Confirm with your platform team which store is the system of record, who can rotate values there, and whether injection runs at pod or container start so a changed secret is picked up on the next restart. The exact environment variable and config key names should be checked against the installation and security docs for your Qdrant version.

Qdrant security docs

Separate admin and read-only scopes

Give the admin key and the read-only key separate secret entries with separate owners, so the credential that can create, change or delete collections is never the one a query service holds. Query-only services receive only the read-only value, and admin values stay with the small set of operators or pipelines that manage collections. Review the mapping quarterly, because a key copied into a convenience secret quietly widens access.

Keep keys out of images and repositories

Do not place key values in Dockerfiles, Helm values files committed to Git, client code, notebooks or sample environment files. Add scanning to CI that blocks commits containing the key values or common key patterns, and check built images for leftover config. If a key reaches a repository or image, treat it as exposed and rotate it, since removing the commit does not remove the copy in history or in registries.

Restrict who can read the secret

Limit read access to the Kubernetes Secret, Vault path or cloud secret entry to the Qdrant workload's service account and to named operators. Anyone who can run kubectl get secret in the namespace, or who can exec into the Qdrant pod and read its environment, can see the key, so role bindings and pod exec permissions matter as much as the secret itself. Ask for an access list from your platform team and check it against the namespace RBAC.

Keep keys out of logs and diagnostics

Make sure startup scripts, health checks, debug output and client exception traces do not print the API key header or the environment dump. Clients that send the key in an api-key header over REST or as metadata over gRPC can leak it through verbose request logging at the proxy or load balancer. Once audit logging is enabled for authenticated operations, confirm that the audit trail records who called and what they did without storing the key value itself.

Plan rotation before the first key ships

Decide now how a key changes: who approves it, which services restart, and where the new value is written first. Qdrant supports rotating keys on a running cluster, but the runbook needs to exist before an incident forces it. Record which services hold which key so that a rotation does not leave a query service failing silently with an old value, and test the procedure on a non-production cluster.

Questions teams ask before enabling Qdrant API keys

How much effort does enabling Qdrant API keys take?

The change itself is small: set an admin key and a read-only key, then update clients and restart the nodes. The effort comes from everything around it. The main drivers are how many services call Qdrant, how Qdrant is deployed (a single Docker host, a Helm chart on Kubernetes, or a Private Cloud or Hybrid Cloud deployment), and whether your secrets tooling already injects configuration into workloads. A cluster with three services and a secrets store that is already in use is far less work than a cluster with twenty services that read keys from config files. Ask any partner to size the work from a written inventory of clients, deployments and secrets paths, and to put the resulting scope and fee in writing.

Can our internal team enable Qdrant API keys without outside help?

Often, yes, if the team already runs Qdrant and has someone who can change its configuration and roll restarts safely. The Qdrant security docs state that self-deployed instances listen on all interfaces and have no authentication by default, so the first step is confirming current exposure. Internal teams usually stumble on client coverage: every SDK, job, notebook and dashboard that talks to Qdrant has to send the right key, and a missed client fails only after the restart. Outside help is most useful for the inventory, the staged rollout and an independent check that the read-only key is not able to write.

What do we need to give a partner for this work?

Expect to provide the following:

  • Read access to the Qdrant configuration, deployment manifests or Compose files, and the network path to each node.
  • A list of every service, job and person that calls the REST or gRPC endpoints, with the operations each one performs.
  • A secrets store that the workloads already use, or agreement on one, plus the owners who approve key creation and storage.
  • A change window for rolling restarts, and a named contact who can approve a rollback.

The partner needs these inputs before it can write a scope, so missing items usually show up as extra time or a revised quote.

Why does the change need a restart window?

Qdrant reads its API key settings at startup, so the new key takes effect only after the node restarts. In a single-node deployment, that means a short outage for every client. In a distributed cluster, nodes can be restarted one at a time, but clients still need the new key before traffic moves to the restarted node. Plan the window, confirm the rollback steps, and check that clients can reconnect after restart. Keys that change later follow a different path, covered in the rotation topic.

Which key does each service need?

Services that only search or retrieve points should hold the read-only key, and only the admin key should be used by the people or pipelines that create collections, upsert points or manage snapshots. The admin key also controls the snapshot endpoints, so keep it away from query-only services. Check each client by running it against the read-only key in a test environment and confirming that write operations are rejected. Fine-grained per-collection access is handled with JWTs, which is a separate step.

Where should the keys be stored, and how do clients send them?

Store keys in your existing secrets manager or Kubernetes secrets with encryption at rest, and inject them as environment variables or mounted files rather than placing them in code, images or shared configuration. Clients send the key as the api-key header on REST calls and in the request metadata on gRPC calls. Confirm the exact header and metadata handling for each client SDK your teams use, because older versions may differ. Do not place keys in query strings, where they can end up in proxy and access logs.

What does a partner deliver, and what does it cost?

A typical engagement delivers a written inventory of clients and key assignments, the configuration changes for each deployment method, the staged rollout and restart plan, client updates for each service, and a verification run showing that the read-only key cannot perform writes or snapshot operations. Each deliverable is listed in the written scope. DeployOpen does not publish a price list, so ask for a quote based on that scope. The cost depends on the number of services and deployments, how much of the secrets setup already exists, and the change windows you need. Ongoing key rotation and audits are separate line items.

What a fixed-scope key hardening engagement covers

A fixed-scope engagement for Qdrant API keys starts with an inventory, not a configuration change. Before anyone sets an admin key, the team lists every client that touches the cluster: application services, ingestion jobs, notebooks, dashboards, monitoring probes and any vendor tools. For each one, the inventory records which endpoints it calls, whether it only searches or also upserts, deletes or manages collections, and whether it reaches the cluster over REST or gRPC. That list decides how many keys are needed and which clients can safely receive the read-only key. The written scope should name the clients in this inventory, so the boundary of the work is agreed before the quote is finalized.

The key design deliverable turns that inventory into a short record: one admin key held by operators and deployment tooling, one read-only key for query-only services, and a documented rule for anything that falls between. The configuration change then sets the admin key and read-only key in the Qdrant configuration, with the values supplied from a secrets store rather than written into files or images. Client updates follow, with each service changed to send its key in the header the SDK expects. Verification is a scripted check, run over both REST and gRPC, that confirms the admin key can write, the read-only key can search but is refused on write operations, and requests without a key are rejected. The handover includes runbooks for key storage, who may hold each key, and what to do when a key is suspected to be exposed. Ask the provider to confirm which of these items are priced separately and which are included, since the quote should follow from that written list.

Verifying the key model after go-live

This sequence confirms that each credential behaves as designed, from anonymous rejection through read-only limits to admin management and client attribution, so you can sign off the setup with evidence instead of assumptions.

  1. Confirm anonymous calls are rejected

    From a host outside the trusted network segment and from a workstation with no key, send a few representative REST requests to the search, collection listing and health endpoints, then repeat the same calls over gRPC on the published port. The reviewer, usually the platform engineer with a security reviewer watching, records the status code for each call. Done means every data and management call returns an authentication error, while you note separately which unauthenticated health endpoints still respond, since the security docs describe those as exposed by default.

  2. Run a search with the read-only key

    Using the read-only key stored in the query service's secrets store, run a search against an existing collection through the REST endpoint and again through the gRPC client the service uses. The platform engineer runs the test from the service's own runtime, not a laptop, so the test reflects the real network path and secret injection. Done means the search returns results and the key was read from the secrets store rather than pasted into a config file or command history.

  3. Confirm the read-only key cannot change data

    With the same read-only key, attempt to create a test collection, delete a test collection and upsert a single test point into a non-production collection. The platform engineer expects each write or delete to be refused with an authorization error, and then verifies the collection list is unchanged. Done means every write attempt is refused and nothing was created, deleted or modified, which confirms the read-only role matches the design.

  4. Confirm the admin key handles management

    Using the admin key from the platform team's secrets vault, list collections, create a throwaway collection in a non-production environment, read its info, and delete it. The platform engineer runs these calls from the admin workstation or pipeline that is permitted to hold the key. Done means each management call succeeds, the throwaway collection is removed afterward, and the admin key is used only from the locations the access policy names.

  5. Check audit logs for each client identity

    Once audit logging is enabled on the deployment, review the logs for the calls made in the previous steps and match each entry to its client, such as the query service, the admin pipeline or the manual test host. The security or operations engineer checks that the log records authenticated operations and that the entries are retrievable through the logging path your team has configured. Done means every test call appears in the logs with a source you can attribute, and the rejected anonymous calls are either absent or recorded as the design expects.

  6. Record evidence and confirm the key owners

    Save the request outputs, status codes, collection checks and log excerpts in the change record, and list who holds each key, where it is stored and how the query services receive it. The platform lead and security reviewer sign the record together. Done means the record shows each expected result against each credential, names an owner for the admin and read-only keys, and identifies the next review point, so the setting is documented as a repeatable check rather than a one-time test.

How DeployOpen scopes and delivers Qdrant key hardening

DeployOpen treats Qdrant API key setup as a bounded piece of work on a Qdrant deployment you control. The engagement covers which services get the admin key, which get the read-only key, how keys reach each workload, and how the change is verified and documented before handover.

How we scope

  • Inventory every service, job and person that calls your Qdrant endpoints over REST and gRPC today.
  • Assign each caller to admin or read-only access, and list any caller that needs write access.
  • Agree in writing which deployment types, clusters and environments the key work covers, before work starts.

How we build

  • Enable the admin and read-only keys in the Qdrant configuration for each environment, then test both keys against the REST and gRPC ports.
  • Store keys in your secrets manager and inject them into workloads, so no key appears in images, repositories or shell history.
  • Confirm that read-only clients receive a rejection on write and snapshot operations, and document the results per service.

How we hand over

  • Deliver a written runbook covering the key map, storage locations, client configuration per language and the expected authentication errors.
  • Walk your platform and security teams through the configuration, the test evidence and the steps to add a new caller.
  • Provide the configuration and test records so your compliance and security reviewers can check the setup independently.

How we support

  • Fixed-scope engagements have deliverables and timelines agreed in writing before any work begins.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your key layout changes over time.
  • Ask for a quote based on the written scope, including who handles key rotation and retesting after each Qdrant upgrade.

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.