Why run Qdrant as non-root with a read-only file system
When a security team reviews a self-hosted Qdrant container, the central concern is that the database ships with no authentication, so anyone who reaches the API can read or change data. Running the process as a non-root user with a read-only root file system limits what a compromised process can change on the container image itself: it cannot rewrite binaries, add tools or modify configuration baked into the image. These controls do not replace authentication, network isolation or TLS. They shrink the damage an attacker can do after one of those layers fails.
Teams need these controls most when Qdrant runs on Docker hosts shared with other workloads, in Kubernetes clusters where many pods share nodes, or in shared clusters that serve several teams or customers. On Docker, the settings are the container user and the read-only root file system flag. On Kubernetes, they map to the pod security context, including runAsUser, runAsNonRoot and readOnlyRootFilesystem on the container. Pod Security Standards from the Kubernetes project give a baseline for what a restricted workload should look like.
The design has a hard constraint. Qdrant still has to write its storage, so the data directory and any snapshot location must be mounted as writable volumes, while everything else stays read-only. Qdrant also needs block-level storage with a POSIX-compatible file system, so these volumes cannot sit on NFS or object storage. Before you copy any user ID or path into a manifest, confirm them against the exact image tag you deploy. The latest supplied release is v1.19.2, and the Qdrant installation documentation is the place to check the storage path and user that release expects.
Container settings and when each fits
This table compares the container settings that govern who runs Qdrant, what it can write, and which privileges it keeps. Read each row for what it protects, what breaks when it is set wrong, and the situation where a team should reach for it. The main takeaway is that the read-only root filesystem only works when storage and snapshot paths are explicitly mounted as writable volumes.
| Setting | What it protects and what breaks if misset | When to use it |
|---|---|---|
| USER in the image or runAsUser | Protects the host by stopping the Qdrant process from running as root. If the UID does not own the storage path, Qdrant fails to write data on start, so check the image's default user and the ownership of mounted volumes. | Always, as the baseline. Confirm in the image which user it runs as before you set an override. |
| runAsNonRoot | Makes Kubernetes refuse to start a container whose user resolves to UID 0. If the image sets no numeric user, the pod fails to start, so pin a numeric user in the spec or the image. | Use in Kubernetes pods that must never run as root, especially under a Pod Security Standards restricted profile. |
| readOnlyRootFilesystem | Stops an attacker or a bad process from changing binaries or config inside the container image. Breaks any path Qdrant writes to outside the mounted volumes, such as temporary or cache directories, so the pod can crash on first write. | Use when the storage and snapshot paths are mounted as writable volumes and you have tested a full start, write, snapshot and restart cycle. |
| Dropped Linux capabilities | Removes kernel privileges the server does not need, which narrows what a compromised process can do. Dropping all capabilities can block operations the platform or storage driver expects, so test with the drop applied. | Drop all capabilities by default and add back only what a tested run proves is required. |
| allowPrivilegeEscalation set to false | Blocks a process from gaining more privileges than its parent through setuid binaries. It rarely breaks Qdrant, but it should be verified in the image and in any sidecar. | Set on every Qdrant pod or container unless the image's own documentation requires otherwise. |
| emptyDir volume | Gives a writable path for scratch or temporary data that is lost when the pod is removed. Using it for storage or snapshots risks data loss, so reserve it for paths that are safe to lose. | Use for temporary directories that Qdrant writes during startup or processing, not for the collection data path. |
| PersistentVolumeClaim for storage and snapshots | Keeps collection data and snapshot archives across restarts and rescheduling. A volume on a network file system or object storage is not supported for Qdrant storage, so confirm the storage class is block-level with a POSIX file system. | Use for the storage path and any local snapshot path. Confirm the volume's ownership matches the non-root UID before the first start. |
| Docker bind mounts or named volumes | Provide the same writable paths on Docker, with ownership set by the host directory. Wrong host ownership causes permission errors on start, so set the owner of the host directory to the container user. | Use on Docker hosts where you run the read-only flag. Confirm the mounted paths match the storage and snapshot paths in the Qdrant configuration. |
How to set up the non-root, read-only Qdrant container
This sequence confirms which user and paths the Qdrant image expects, places storage on block-level volumes, and applies a read-only root filesystem with writable mounts only where Qdrant needs them. The result is a container that starts, serves writes and rejects changes to its own filesystem.
Confirm the image user and writable paths
Before changing anything, the platform engineer checks which user the Qdrant image runs as by default and which directories Qdrant writes to at runtime, including its storage path and snapshot path. Confirm the exact paths against the version you deploy, because the installation and security documentation describe the storage layout and the defaults can differ between releases. Record the UID and GID you plan to use. The step is done when you have a written list of every path the process must write to and the numeric UID that owns those paths.
Place storage on block-level POSIX volumes
The team provisions the storage volume that will hold Qdrant data using block-level storage with a POSIX-compatible file system, and confirms it is not an NFS mount or an object storage bucket. The Qdrant installation documentation says these network and object file systems are not supported for storage, and SSD or NVMe drives are recommended. Ask the storage team to confirm the volume type, file system and mount options in writing. The step is done when a test file written by the target UID can be created, read back and deleted on the mounted volume.
Set the Docker run flags or Kubernetes security context
The platform engineer sets the container's identity and filesystem restrictions. In Docker, this means a user flag with the chosen numeric UID, a read-only root filesystem flag and a dropped-capability policy. In Kubernetes, the equivalent is a pod or container securityContext with runAsNonRoot, a runAsUser value, readOnlyRootFilesystem set to true, and allowPrivilegeEscalation set to false. Review the result against the Pod Security Standards for the namespace. The step is done when the manifest or run command is committed to version control and passes a dry run or validation step.
Mount writable volumes for storage and snapshots
Because the root filesystem is read-only, every path Qdrant writes to must be a mounted volume. The team mounts the storage volume at the data path and a separate volume at the snapshot path, and optionally a temporary directory if the image needs one for its runtime. Ownership of each volume must match the UID chosen in the first step. In Kubernetes, use a PersistentVolumeClaim with an fsGroup where the storage class supports it. The step is done when the container starts with both volumes mounted and the mount list in the pod or container spec matches the paths recorded earlier.
Verify the running process UID
Once the container is running, the engineer checks the identity of the Qdrant process from inside the container, for example with the id command or by reading the process status file for the main process. The UID must match the value set in the run command or securityContext and must not be zero. In Kubernetes, also confirm the effective settings with kubectl describe or by reading the pod spec from the API. The step is done when the process reports the non-root UID and the pod spec shows runAsNonRoot and the chosen runAsUser.
Confirm writes fail on the root filesystem
The engineer tests that the read-only restriction is actually enforced. From inside the container, attempt to create a file in a system path outside the mounted volumes, such as a directory under the root filesystem, and confirm the write fails with a permission or read-only file system error. Then confirm a write to the storage volume succeeds. The step is done when the write to the root filesystem is refused and the write to the mounted storage path works, and both results are saved in the change record.
Confirm startup and a collection write
Start the Qdrant service with the new settings and check the logs for clean startup with no permission errors on the storage or snapshot paths. Check the health endpoint from a client network, then create a test collection, insert a few points and run a search that returns them. Delete the test collection afterward. Ask the platform team to note any error messages that mention the read-only file system, since they point to a path that still needs a writable mount. The step is done when startup logs are clean, the test collection write and search succeed, and the test data is removed.
Where the read-only root and writable volumes sit
The diagram starts at the client network, where applications reach Qdrant on ports 6333 and 6334, and ends at the storage and snapshot volumes, which are the only paths the non-root process should be able to write. Port 6335 is drawn inside the container boundary because it carries node-to-node traffic and should stay off client networks. The read-only root filesystem sits between them, so any write outside the mounted volumes should fail. Check the writable paths for your release, since they are to be confirmed before you set the volume mounts.
Client traffic, the read-only root and the two writable volumes.
Security and operational considerations
Making the container unprivileged and read-only shrinks what an attacker can do after a compromise, but it does not make Qdrant safe on its own. The cards below cover the controls this page does not set up and the checks that keep the container hardening meaningful over time.
Qdrant ships unauthenticated
A default Qdrant instance listens on all network interfaces and has no authentication configured. A non-root container still answers any client that can reach the port, so the API key, JWT and network binding work must be done before the service is exposed. Confirm that no published port reaches a public network and that authentication is on before you treat the container as hardened.
Qdrant security docsKeys mounted read-only
API keys, TLS private keys and JWT signing material should reach the container as read-only mounts or secret references, not as environment variables baked into the image or pod spec. Set file permissions so only the unprivileged user can read them, and confirm that the read-only root file system does not force keys into a writable path. Rotation then changes the mounted file, not the image.
Pod Security Standards and etcd Secrets
Kubernetes Pod Security Standards define the baseline and restricted profiles that the namespace should enforce for this workload. Separately, Kubernetes Secrets are stored unencrypted in etcd by default. Confirm that encryption at rest is configured, that list and watch access on Secrets is limited by least-privilege RBAC, and that the Qdrant namespace enforces the profile you chose.
Pod Security StandardsSnapshot volumes hold everything
Snapshot volumes are writable by design, and they contain every vector and payload in the collections they cover. Restricting the container's filesystem does not restrict who can read those archives. Plan who can create, download and restore snapshots, where backup copies are stored, and how they are encrypted, and treat the snapshot path as the most sensitive data location in the deployment.
Image updates and vulnerability scans
An unprivileged container still runs known vulnerabilities in its libraries and base image. Set a routine to pull new Qdrant releases, rebuild or repin the image, and scan the image and its dependencies on each change. Check the GitHub releases page for the version you run, and confirm that the upgrade path between minor versions is tested before you roll a new image into production.
Qdrant releasesNode-level and runtime controls
Read-only root and non-root user limit file changes inside the container, but they do not control the host kernel, the container runtime or the nodes that run the pods. Ask the platform team which runtime settings, node hardening and host access rules apply, and confirm who can exec into running containers. These controls sit outside the Qdrant configuration and need a separate owner.
How Kubernetes enforces non-root for Qdrant pods
Kubernetes enforces non-root behavior through the pod's securityContext, not through the Qdrant image alone. In a StatefulSet or Helm deployment, the settings that matter are runAsNonRoot, runAsUser, fsGroup for the storage volumes Qdrant writes to, allowPrivilegeEscalation: false, dropped Linux capabilities, and readOnlyRootFilesystem on the container. Pod Security Standards define the baseline and restricted profiles that a namespace can enforce through Pod Security admission, and the restricted profile is the practical target for a Qdrant namespace. Before you enforce it, confirm in a staging namespace that the pod still starts, because the storage and snapshot paths must be writable and the restricted profile rejects pods that request anything broader.
The community-supported Kubernetes Helm chart is the path most teams will evaluate first, and it is not the enterprise path. Qdrant's installation documentation says the chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing, so the security context you set in the chart values is the control you own, and the upgrade and rebalancing work stays manual. The enterprise Kubernetes operator, offered as part of Qdrant Private Cloud, changes who maintains the pod specification and the upgrade mechanics. Ask the vendor whether the operator sets the non-root and read-only settings by default, which fields you can override, and how it handles volume ownership on your storage class. Confirm that the chart or operator version matches your cluster. Kubernetes maintains the three most recent minor releases, which as of September 2026 were 1.37 (end of life October 28, 2027), 1.36 (June 28, 2027) and 1.35 (February 28, 2027), so a chart release tested on an older minor version may need a retest after your cluster upgrades.
Limits to confirm in your environment
The non-root and read-only settings look simple, but several of them depend on facts that vary by release, storage backend and support contract. The cards below list the points to confirm with the Qdrant documentation, your storage vendor and your Qdrant provider before you lock the manifest.
Exact non-root UID for the release
Confirm the numeric user and group that the Qdrant image you pin runs as, rather than assuming a value from an older tag or a blog post. Your runAsUser, runAsGroup and volume ownership must match that UID exactly, or the process will fail to open its storage directory. Record the image tag and digest together so a future upgrade cannot silently change the UID.
- Latest release checked
- v1.19.2
Paths written beyond storage and snapshots
Test whether the release writes to any path other than the storage and snapshot directories, such as temporary files, logs or configuration overrides. Run the pod with readOnlyRootFilesystem enabled in a staging cluster and watch for read-only file system errors during startup, ingestion, optimization and snapshot creation. Mount an emptyDir only where a real write is confirmed.
Block-level POSIX storage requirement
Qdrant needs block-level storage with a POSIX-compatible file system and does not run on network file systems or object storage. Confirm that the PersistentVolume class behind your claim meets that rule, and that the read-only root setting does not tempt the team to place storage on NFS. Ask the storage vendor how the volume is provisioned and whether it is local or networked.
Volume driver behavior with fsGroup
Check how your chosen CSI driver applies fsGroup to a new volume, since some drivers change ownership recursively on mount and others do not. A mismatch can leave the non-root process unable to write, or can slow pod start on large storage directories. Test a restart and a node drain in staging, and confirm the driver's documented behavior for your Kubernetes version.
- Latest Kubernetes minor
- 1.37
Snapshot restore version rules
Snapshots restore only to clusters on the same minor version or the next minor version. If your hardened image changes the Qdrant version, a restore test may fail for reasons unrelated to permissions. Include snapshot restore in the same staging run as the security change, and confirm the version rule for the release you run before you schedule an upgrade.
Snapshot docsVendor support scope on Hybrid or Private Cloud
If you run Qdrant Hybrid Cloud or Qdrant Private Cloud, ask in writing which container settings, security context changes and volume layouts the vendor supports. Ask whether a read-only root file system or a custom UID affects the support agreement, and who owns the fix if an upgrade fails. Pricing for these offerings is handled through Qdrant sales, so put these questions into the quote scope.
Qdrant pricingQuestions teams ask before running Qdrant as non-root
Can our own team run Qdrant as non-root with a read-only file system?
Yes, if your team already runs Docker or Kubernetes in production and can test the change before it reaches production. The work is mostly configuration: a security context that sets the user, readOnlyRootFilesystem: true, and writable volumes for the paths Qdrant must write to. The harder part is proof. Your team has to show that inserts, searches, snapshots and restarts still work after the change, and keep that evidence for reviewers. Teams without container security experience often take longest on the volume mapping and the test plan. An outside partner is useful when you want that testing and documentation delivered in a fixed scope, or when this change sits inside a wider hardening program.
What makes a non-root Qdrant change take more effort?
The main drivers are how far you move from the default image, how your storage assigns file ownership, and what your cluster enforces. Each one adds work:
- Whether you use the official image unchanged or build a custom one, which adds build, scanning and update steps.
- Ownership and permissions on the mounted volumes, which depend on your storage class and the user the process runs as.
- Admission rules such as the Pod Security Standards, which can block a pod that does not match the policy you choose.
- Test scope: a basic restart check takes far less work than a full run covering writes, snapshots, node drains and upgrades.
Ask for each of these to be priced separately in any quote, so you can see which parts your team can absorb.
What do we need to provide before a Qdrant hardening project starts?
Before work starts, you need to provide access, storage facts and a test plan. Specifically:
- Cluster access, with an account that can change workloads in a test environment and read the current deployment manifests.
- Storage details: the storage class, the file system type, and confirmation that the volumes are block-level. Qdrant cannot run on network file systems such as NFS or on object storage such as S3.
- Test data that resembles your production collections, including vectors and payloads, so write and search tests reflect production-like load.
- A change window, plus named owners who approve the rollout and any rollback.
Ask the engineers doing the work to list exactly what they need in the written scope.
How long does a non-root Qdrant change take to complete?
No researched duration applies to this change, so the answer depends on scope. Time is driven by the number of environments, whether the cluster is a single node or a distributed cluster, and whether a custom image is needed. Qdrant's distributed deployment docs recommend at least three nodes for production clusters so quorum survives a node failure, which means each node must be changed and checked in turn. Testing is often the largest share of the time. Ask for a timeline in the written scope that lists the environments, the nodes, the test cases and the change window, with a clear completion test for each milestone.
Does running Qdrant as non-root require a paid Qdrant plan?
No. The Qdrant engine is open source under the Apache-2.0 license and free to self-host, and the security context, read-only file system and volume settings live in your own manifests or compose files. Paid options change other things. Hybrid Cloud and Private Cloud are priced through Qdrant sales, Premium adds SSO and private VPC links, and the enterprise Kubernetes operator comes with Private Cloud. The community Helm chart lacks enterprise features such as zero-downtime upgrades. Before you choose a path, confirm with Qdrant or the operator provider that their deployment lets you set the user and read-only root file system you need. See the Qdrant pricing page for current tiers.
What breaks if Qdrant has a read-only root file system without volumes?
Qdrant fails when it tries to write to a path it cannot reach, so the symptoms usually appear at startup or during data operations. Typical failures include crash loops at boot, errors on inserts, and failed snapshot creation. The fix is to mount writable volumes at every path the process writes to: the storage directory, the snapshot location and any temporary directory your image uses. Confirm the exact paths for your image version in the Qdrant installation docs. Mounted volumes often need matching group ownership, which Kubernetes sets with fsGroup in the pod security context. Test each path with a write, a snapshot and a restart before you call the change finished.
Will this change help pass a security or compliance review?
It helps as evidence. The change supports controls reviewers look for, such as least privilege for the process and a locked root file system, and it gives you a documented container baseline. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make that decision. Ask the team doing the work which controls the change maps to, and which recommendations in the CIS Kubernetes Benchmark you will follow for your cluster. Keep the before and after configuration files and the test results together.
How do we roll back a non-root Qdrant change safely?
Roll back by reverting the manifest to the previous security context, removing the read-only setting and redeploying. This is quick when the manifests are in version control. Take a snapshot before the change so the data is covered. Snapshots have version limits: a snapshot restores only to clusters on the same minor version or the next minor version, so a rollback that also involves an upgrade needs its own plan. Pin the previous image tag so a rollback does not pull a different version, and test the rollback in the test environment before the production change window.
How to verify the hardening holds after upgrades
Repeat the container checks after every image change, not only after the first deployment. A new image can change the user the process runs as, the paths it writes to, or the defaults in the chart or manifest you copied. Start by confirming the running process user inside each Qdrant pod or container, using the same runtime command you used at go-live, and compare it with the runAsUser and runAsNonRoot values in your manifest. If the process reports a different UID, or the pod starts with root privileges, treat the upgrade as failed until the cause is found. Then confirm that readOnlyRootFilesystem is still set on the effective spec, since an overlay or Helm values change can silently drop it.
Next, test that writes outside the mounted volumes fail. From inside the container, attempt to create a file in a path that is not a storage or snapshot volume, and expect a permission or read-only error. Then confirm that writes to the storage and snapshot volumes still succeed, because a new release may write to a path you did not previously mount. Verify that the volumes are on the block-level, POSIX-compatible storage Qdrant requires. Finally, run a snapshot creation and a restore test against a non-production collection. Snapshot paths are where read-only root filesystems most often break, so this check matters more than the others. Confirm the restore path works on the target cluster version, because snapshots only restore to clusters on the same or the next minor version.
Rerun the full set of checks whenever you move to a new minor release, and record the results with the image tag and date. Confirm the release notes for the target version before you deploy, and check the security documentation for changes to settings in your deployment. Treat any failed check as a blocker for rollout. Once the container checks pass, use the Qdrant upgrade guidance as the next step for the rollout itself, and confirm its steps for your topology before you start. Keep this verification record with your change tickets, since reviewers in regulated environments often ask for evidence that controls were retested after a change.
How DeployOpen hardens Qdrant containers
DeployOpen scopes the container work for Qdrant against your Docker or Kubernetes platform, then builds and tests the non-root and read-only settings in infrastructure you control. Each change is written down so your platform and security teams can review and repeat it.
How we scope
- Inventory how Qdrant images are pulled, built and admitted into your registry and cluster today
- Agree which storage and snapshot paths need write access and where they live
- Confirm the written scope, deliverables and timeline before any change is made
- Identify which pod security or admission controls your platform already enforces
How we build
- Configure the unprivileged image, runAsUser and fsGroup on Docker or Kubernetes workloads
- Set readOnlyRootFilesystem and mount only the storage and snapshot volumes Qdrant writes to
- Test startup, collection writes, snapshot creation and restarts under the hardened settings
- Check that the chosen volumes are block storage with a POSIX-compatible file system
How we hand over
- Deliver manifests or Compose files, with each security setting explained in plain language
- Document the writable paths, their owners and the reason each one must stay writable
- Provide a retest checklist your platform team can run after image or chart upgrades
- Walk your engineers through the runbook so changes can be reviewed without us
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if you want it
- Recheck container settings when you move to a new Qdrant minor version
- Retest after changes to base images, admission policies or storage classes
- Engagements are fixed-scope, so ongoing work is agreed in writing before it starts

