Enabling TLS for Qdrant REST and gRPC: what it protects and when you need it
Enable TLS on client traffic whenever vectors or payloads leave a single trusted host. A self-deployed Qdrant instance is not secure by default: the Qdrant security documentation states that it listens on all network interfaces and has no authentication configured. Any application, laptop or network segment that can reach the REST or gRPC port can read collections, write points and, unless access is restricted, change data. TLS addresses one part of that exposure. It encrypts the traffic between clients and the server so that anyone observing the network path cannot read queries, payloads or the API keys that clients send in request headers. Payloads often carry customer text, identifiers, medical or financial attributes, so this matters even on internal networks where traffic crosses shared switches, load balancers or service meshes.
TLS is not a substitute for the other controls. It does not decide who may call the API, which is the job of admin and read-only API keys and of JWT-based access control per collection. It does not keep the instance off public networks, which depends on binding and port exposure. A client holding a valid key can still reach an exposed port over TLS. Treat TLS as the transport layer under authentication and network restriction, and plan all three together. The topic facts cover encryption of client traffic only, over REST and gRPC. Node-to-node traffic in a distributed cluster is a separate concern, covered in the cluster traffic section, so a cluster with TLS on client ports can still have unencrypted internal links.
Before you start, inventory which services connect to Qdrant, from which networks and which protocol each one uses. Confirm with the Qdrant documentation for your exact release how TLS is configured and which settings apply to REST and gRPC, because certificate reload behavior is documented differently per interface. Decide who issues and renews the certificates and whether clients need to trust a private certificate authority. Those decisions determine the effort and the ongoing operational work described in the rest of this page.
Which TLS settings fit which deployment
This table maps each TLS-related setting to what it does and the deployment situation where a team would set it. Read it as a checklist: start with certificate and key for any encrypted endpoint, then add the client verification and CA settings only if your clients must present certificates. Confirm exact key names and file paths against the Qdrant version you run before you write configuration.
| Setting | What it does | When a team would set it | What to confirm |
|---|---|---|---|
| tls.cert and tls.key | Point Qdrant at the server certificate and private key used for REST and gRPC listeners. | Any deployment where clients connect over the network and traffic must be encrypted, including single-node and cluster setups. | Exact key names, file paths and whether a full chain file is expected for your version. |
| tls.cert_ttl | Sets how often Qdrant reloads certificate files, hourly by default, so renewed certificates are picked up without a restart. | Teams that rotate certificates automatically, for example through a certificate manager writing new files to the same paths. | Whether reload applies to gRPC in your version. The facts supplied say it currently covers the REST API only. |
| tls.ca_cert | Gives Qdrant the certificate authority used to verify client certificates presented to the server. | Environments where a private CA issues client certificates and only trusted services should reach the database. | Which CA bundle format is accepted and whether intermediate CAs must be included. |
| service.verify_https_client_certificate | Turns on verification of client certificates for HTTPS connections against the configured CA. | Zero-trust or internal service meshes where mutual TLS is required, and where API keys alone are not the only control. | Whether this flag covers gRPC as well as REST, and how clients must present their certificate in each SDK. |
| Public or internet-facing listener | Encrypts traffic to clients outside your network, usually with a publicly trusted or enterprise CA certificate. | Rarely advisable for a self-hosted instance without a proxy or private network. Usually paired with network binding controls. | Whether a reverse proxy or load balancer should terminate TLS instead of Qdrant. |
| Private CA for internal clients | Clients must trust the internal CA that signed the Qdrant certificate, so each runtime needs the CA added to its trust store. | Python, TypeScript and Java services inside your network that use an internal certificate authority. | The exact trust setting each client SDK expects, and how it is distributed to containers and build images. |
| Certificate expiry and renewal | Qdrant serves whatever certificate is on disk, so an expired file causes client failures until replaced. | Any production deployment, to keep renewal ownership and monitoring clear. | Your renewal process, alert threshold and who owns the certificate lifecycle. |
Setting up TLS on Qdrant step by step
This sequence turns on encryption for both the REST and gRPC listeners, from issuing the certificate to proving each protocol negotiates TLS. Each step ends with a check so a fault is caught before clients depend on the endpoint.
Request a server certificate from your CA
Your PKI or security team issues a server certificate and private key for the hostnames clients will use, including any internal DNS names and load balancer addresses. Ask for the full chain, including intermediate certificates, and keep the private key in a location your secrets process controls. Confirm the subject alternative names match every name clients will type. The step is done when you have a certificate file, a key file, and the chain file, and you can list the subject alternative names with openssl x509 on your workstation.
Place the files where Qdrant can read them
Mount the certificate, chain, and key into the Qdrant host or container from a secrets store or a restricted directory, not from the image or a shared repository. Make the key readable only by the account that runs Qdrant, and make the certificate readable by the same account. For Kubernetes, store the files in a Secret and mount them read-only. The check is that the Qdrant process can open the key and certificate, and that file permissions on the key do not allow other local users to read it.
Set the TLS keys in configuration
Edit the Qdrant configuration file or environment overrides to enable TLS for the service and point the certificate and key settings at the mounted paths. The Qdrant security documentation lists the exact keys, so confirm them against the version you run before editing. Keep the change in version control with the rest of your deployment configuration. The check is that the configuration file parses without errors and that the file paths in it match the mount points you created in the previous step.
Restart Qdrant with the new configuration
Restart the Qdrant process or roll the pods so the new configuration takes effect. In a cluster, restart one node at a time and wait for it to rejoin before moving to the next, so the cluster keeps quorum during the change. Watch the startup logs for messages about the certificate, the key, and the listeners on the REST and gRPC ports. The step is done when every node starts cleanly and reports healthy, and the logs show no errors about loading the TLS files.
Verify the REST handshake and refused plaintext
From a client host that trusts your CA, call the REST health endpoint over HTTPS with curl and confirm the handshake succeeds with the certificate chain validated. Then send the same request over plain HTTP to the same port and confirm the server refuses it. Test with the exact hostname in the certificate, because a mismatch shows up as a verification failure. The check is a successful HTTPS response and a refused or failed plaintext request. Record both results in your change ticket.
Verify the gRPC handshake with a client
Connect with a gRPC client that uses your CA bundle, for example the Qdrant Python client configured with the CA file, and run a simple collection listing call. Then attempt a connection without TLS to the gRPC port and confirm it fails. If the client runs in another language, use the SDK's documented way to set a custom CA, and test that path too. The check is a successful authenticated call over TLS and a failed plaintext connection on the gRPC port.
Confirm the certificate renewal path
Read the Qdrant security documentation to see which listeners reload certificate files automatically and how often, then write down the renewal steps for each listener. The docs describe an hourly reload controlled by the certificate time-to-live setting, and the topic notes that this reload currently covers the REST API only. Plan a rolling restart for gRPC renewals and confirm that step with your operations team. The check is a written renewal runbook that names the restart steps and the owner of each certificate.
Trusting a private CA in Python, TypeScript and Java clients
The Python client talks to Qdrant over REST and gRPC, and each transport checks the server certificate through its own trust setting. Point both transports at the same private CA bundle so verification does not depend on which protocol a service happens to use. If the server also verifies client certificates, the client must present its own certificate and key as well.
- Bundle file: Export the CA certificate in PEM format to a file the service account can read, and store it alongside other configuration that your secrets process manages.
- REST verification: Pass the CA file path through the client constructor option for certificate verification in your version, and do not turn verification off to get past a handshake error.
- gRPC channel: Confirm whether your client version uses the same option for gRPC or a separate channel setting, and test gRPC on its own.
- Client certificates: If the server requires client certificates, supply the certificate and private key the same way, and keep the private key out of source control.
- Negative test: Run a collection listing from a clean container that mounts only the CA bundle, then run it again with a wrong CA and confirm the handshake fails.
Confirm every parameter name against the qdrant-client version your services pin, because these options change between releases.
The TypeScript client runs in Node.js, so it relies on the Node runtime's trust store rather than a browser's. Node reads extra CA certificates when the process starts, which makes the container or service definition the place where trust is configured. Keep this setup in the deployment manifest so every process that starts from the image trusts the same CA.
- Process environment: Set the
NODE_EXTRA_CA_CERTSvariable to the path of the PEM file before the process starts, since Node reads it at startup and not per request. - Client options: If your SDK version accepts a CA or custom TLS agent in the client options, use that option for the Qdrant connection and confirm the exact name in the release you install.
- Image and base layers: Mount the CA file into the image at runtime instead of baking a key pair into a layer that others can pull.
- gRPC path: Check whether the gRPC transport in your installed version reads the same trust setting, and run a separate test that exercises it.
- Negative test: Start a minimal script with no CA configured and confirm it fails against your Qdrant endpoint, then confirm it succeeds once the variable is set.
Record the Node version in the test output, because trust behavior can differ between major runtime releases.
The Java client runs on the JVM, which reads trust from a keystore file, usually a PKCS12 or JKS truststore. You can add the private CA to the JVM's default truststore for all applications on a host, or give one application its own truststore through system properties. A dedicated truststore is usually easier to audit and to rotate, because it limits which applications trust the CA.
- Truststore creation: Import the CA certificate into a new truststore with
keytool, give it a password from your secrets store, and keep the file readable only by the application account. - Application wiring: Point the JVM at the truststore with the standard
javax.net.ssl.trustStoreandjavax.net.ssl.trustStoreTypesystem properties, or with the TLS settings your Java client version exposes. - gRPC transport: Confirm which TLS context the gRPC transport in your version uses, since it can handle trust separately from the REST path.
- Client certificates: If the server verifies client certificates, load the client keystore through the same configuration layer and protect its password.
- Negative test: Run the application once without the truststore and confirm the handshake error, then run it with the truststore and confirm the connection succeeds.
Confirm the property names and client builder options against your Java client release, and record the JVM version used for the test.
When to require client certificates
Turn on client certificate verification only when you need the network layer to prove which service is calling Qdrant, and when you are prepared to run a certificate process for every client. In Qdrant, this means setting service.verify_https_client_certificate to true and pointing tls.ca_cert at the CA bundle that signs client certificates. With that set, the REST listener rejects any TLS connection that does not present a certificate chaining to that CA. This is mutual TLS: the server authenticates the client as well as the client authenticating the server. It adds a control that sits below your API keys and JWTs, so a leaked token is still useless to a caller without a valid client certificate and key.
Your own PKI or internal CA should issue client certificates, not the application teams that consume them. Keep the CA that signs client certificates separate from the one that signs the server certificate where your policy allows, and record which service owns each certificate. Confirm with your security team how certificates will be issued, stored in your secrets manager, and revoked, because Qdrant checks the chain against tls.ca_cert and does not keep a revocation list for you. Also confirm how each client SDK you use loads a client certificate and key, since that setup differs by language and must be tested before rollout.
The cost of mutual TLS is operational and recurring. Each service needs a certificate and key, every certificate expires, and each renewal must reach every client before the old one stops working. Multiply that across batch jobs, notebooks and third-party integrations and the rotation load grows quickly. Compare this with the JWT and API key model, where access is scoped per collection and changed by reissuing a token or key without touching client trust stores. Many teams use both: API keys or JWTs decide what a caller may do, and client certificates limit where those credentials can come from. Decide which layer owns authorization before you add certificate distribution to your runbooks.
How a client request is checked on the way to Qdrant
A request starts in the client application, which trusts the organization's private CA and opens a TLS connection to the Qdrant REST or gRPC port. If client certificate verification is enabled, Qdrant checks the presented certificate against the configured CA before any API call is read. The request then passes the API key or JWT check, which decides whether the caller may touch the target collection. Node-to-node traffic between cluster members sits outside this path, on its own internal port, and is covered separately.
Client requests pass TLS, optional certificate checks, then key or JWT checks before collection access.
Security and operational risks to plan for
TLS on Qdrant is only as strong as the way its certificates are stored, renewed and monitored. The cards below cover the risks that tend to surface after the first successful handshake, and what to verify in your own environment before go-live.
Private key storage and permissions
The certificate and private key files are read by the Qdrant process, so anyone who can read the key can impersonate the server. Restrict the key file to the account that runs Qdrant, keep it out of images and version control, and load it from a secrets store or a mounted volume. Confirm the file permissions on every node, including nodes added later.
Qdrant security docsCertificate expiry and hourly reload
Qdrant reloads certificate files hourly by default through tls.cert_ttl, so a renewed certificate placed on disk is picked up without a restart. Renewal still has to happen before expiry, and a broken or partially written file can leave the service with an error. Test a renewal in staging, and confirm the file replacement is atomic on your volume type.
- Default reload interval
- 1 hour
REST-only reload coverage
The documented hourly reload currently applies to the REST API only. If gRPC uses the same certificate, a rotated certificate may not reach gRPC clients until the process restarts. Plan a restart step for gRPC after each renewal, and confirm the current behavior against the release you run before you rely on automatic reload.
Plaintext fallback on other ports
Enabling TLS on the REST and gRPC ports does not close other listeners. Check which ports Qdrant opens in your configuration and in your container or service definitions, and confirm that no client path, health check or load balancer still reaches a plaintext listener. Scan the bound ports from a client network after each change.
Node-to-node traffic is out of scope
Encryption between cluster nodes is a separate control with its own certificates and internal port settings. Enabling client TLS does not protect replication or consensus traffic between nodes. Treat internal encryption as a separate work item, and record it as open in your design until it is implemented and verified.
Logging and monitoring certificate expiry
Expiry is a silent failure: clients fail at connection time, often in batch jobs or on weekends. Track the notAfter date of each served certificate with your monitoring stack, alert well before it passes, and include the CA chain in the check. Record which certificate each environment serves so an incident review can answer which certificate was in use.
Questions teams ask before enabling TLS for Qdrant
How much effort does a TLS rollout for Qdrant take?
Effort depends mostly on how many clients, environments and certificate sources you have, not on the Qdrant settings themselves. The server side is a small set of configuration keys, including tls.cert, tls.key and tls.ca_cert, applied in each node's configuration. The larger part is inventory: finding every client that connects over REST or gRPC, confirming which language SDKs they use, and checking that each one can trust the certificate chain. Teams with many services, several environments and mixed SDKs should expect more time spent on testing than on editing configuration. Ask for a written list of clients and environments before agreeing on any scope or quote.
Can our own team enable TLS for Qdrant without outside help?
Yes, if your engineers can edit the Qdrant configuration, issue or import certificates, and update client trust settings. Qdrant documents TLS support for REST and gRPC since v1.2.0, and the security documentation and the tutorial Secure a self-hosted Qdrant instance walk through the steps. Outside help is most useful when the team lacks certificate operations experience, runs many client applications written in different languages, or needs evidence for an assessment. Whichever path you choose, confirm the approach against the documentation for the exact version you run, since settings and behavior change between releases.
What does a TLS project need from our PKI and client teams?
Your PKI team decides which certificate authority issues the server certificate, how long it lasts, and how private keys are generated and stored. They also need to confirm that the certificate names match the hostnames clients use to reach Qdrant. Your client teams need to confirm how each application loads a CA bundle, including applications that use the Python, TypeScript or Java clients. If you use private CA certificates, every client runtime must trust that CA, which often means changes to container images or runtime trust stores. If you plan to require client certificates, the PKI team must also issue and revoke client certificates on a schedule that matches your policy.
How does Qdrant handle certificate rotation?
Qdrant reloads TLS certificate files hourly by default through the tls.cert_ttl setting, so replacing the files on disk is often enough to rotate the server certificate without a restart. The Qdrant security documentation states that this reload currently applies to the REST API only, so gRPC rotation needs its own plan, such as a rolling restart of nodes. Confirm the reload behavior for your version, and test that clients accept the new certificate before the old one expires. Also plan how the new private key reaches every node, since a mismatch between certificate and key will break startup or reload.
Can we require client certificates for Qdrant connections?
Yes. Qdrant can verify client certificates through service.verify_https_client_certificate together with a CA set in tls.ca_cert, according to the Qdrant security documentation. This adds a second identity check beside the API key and JWT controls. It also adds operational work: every calling service needs a client certificate, a rotation process, and a revocation path when a service is retired. Test the setting with each client SDK before enforcing it, because a client that cannot present a certificate will fail at connection time, not at a configuration review.
What would a partner deliver for TLS on Qdrant?
A partner should deliver a written scope, a configuration for the Qdrant nodes, a client trust plan for each SDK in use, a test record showing that every client connects over TLS, and a runbook for certificate rotation and failure recovery. Ask whether the work includes gRPC and REST, client certificate verification, and a retest after changes. DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. Quotes follow from that written scope, and DeployOpen does not publish a price list.
Does enabling TLS on Qdrant make us compliant?
No. TLS encrypts client traffic, which supports encryption in transit controls, but it does not make a system compliant with any framework by itself. Assessments look at the whole system, including authentication, access control, logging, key management and backups. Only independent auditors and certification bodies issue audit reports, attestations or certifications. DeployOpen prepares systems, controls and evidence for those assessments, so ask your assessor which TLS evidence they expect, such as configuration records, certificate inventories and test results.
How DeployOpen scopes and delivers TLS hardening for Qdrant
DeployOpen plans, implements and hardens self-hosted open-source platforms inside the client's own infrastructure, including the cloud accounts, data centers or air-gapped networks where Qdrant runs. For TLS on REST and gRPC, that means the work happens on your nodes, with your certificate authority and your client fleet, not on a vendor-hosted endpoint. Most engagements of this kind are fixed-scope, so the scope is agreed in writing before any change is made to a running cluster.
A written scope for this topic usually names the exact surfaces to be covered: the REST and gRPC listeners, the tls settings and certificate paths, the decision on whether the service.verify_https_client_certificate check is enforced, the private CA trust configuration for each client language in use, and the rollout order across environments. It also states what is out of scope, such as node-to-node traffic, API key design or JWT policy, which are covered by sibling work. The reader should confirm that the list of client SDKs and their versions is named in the scope, because trust configuration differs between Python, TypeScript and Java clients.
DeployOpen can prepare evidence that a compliance reviewer will ask for, such as configuration records, certificate inventory, test results showing encrypted connections and the verification steps performed. DeployOpen does not issue audit reports, attestations or certifications; independent auditors and certification bodies make those determinations. Ongoing work such as certificate renewal checks, Qdrant version upgrades and continuous testing can be covered by a retainer, which should be priced and scoped separately from the initial hardening project.

