ClickHouse vs DuckDB for PCI DSS: which one fits your cardholder data?
When a QSA asks how an analytics store holding cardholder data is controlled, the answer depends on where the store runs. ClickHouse fits a shared, server-based store where a documented QSA assessment matters, and ClickHouse's compliance documentation describes an external PCI DSS audit with a Qualified Security Assessor, offered as an Enterprise plan feature. DuckDB fits embedded analysis inside a host process your organization already controls, but it publishes no PCI DSS attestation, so its evidence has to come from your own host, key management and assessment records. This page covers only the PCI DSS angle. The general ClickHouse vs DuckDB comparison has its own page, and PCI DSS v4.0.1 is the only active version, so every requirement reference here applies to that version. Use the sections that follow to test each claim against your own deployment before you fix the cardholder data environment boundary.
The ClickHouse claim is the one to verify first. The QSA assessment is documented as an Enterprise plan feature, so ask ClickHouse in writing which deployment it covers: ClickHouse Cloud compliance overview describes the managed service, and that is not the same thing as an open-source server you run yourself. The ClickHouse server is Apache-2.0 licensed and runs on servers you operate, so host hardening, network segmentation, database access control and audit logging remain your responsibility unless the assessment scope explicitly includes them. Ask for the scope statement, the date of the most recent QSA assessment and the list of controls it tested. If the assessment does not cover your self-hosted deployment, your QSA will still expect you to evidence those controls yourself, and that work should be scoped before the store receives live cardholder data.
DuckDB has a different evidence model. Its documented file encryption may support encryption-at-rest requirements, but the operator owns key management, so your team must show how keys are generated, stored, rotated and restricted. DuckDB runs inside a host process with no separate database server to install or patch, which shrinks one part of the scope but leaves the host application, its dependencies and any exported Parquet or CSV files in scope. Choose DuckDB for cardholder data only when the analysis runs inside a process your existing PCI DSS controls already cover, and confirm the encryption design with your QSA before data arrives. Plan the evidence in advance: configuration baselines, key custody records, access logs for every host that opens the database file, and a documented retention and deletion process for exported copies.
Which situations favor ClickHouse and which favor DuckDB under PCI DSS
Neither engine removes PCI DSS scope on its own. The choice turns on who reads card data, whether a server sits in the cardholder data environment, and what evidence your assessor can take from the vendor versus from your own host controls. Each card marks the condition under which that option's advantage holds.
Shared multi-user analytics on card data
Pick a ClickHouse server when many analysts or services query the same card data under separate accounts and access rules, since a shared server is the setup a database is built for. Before you rely on any vendor audit, confirm assessment coverage: ClickHouse's compliance documentation describes an external audit with a Qualified Security Assessor, so ask whether that scope includes the open-source server you run yourself or only the managed service. Also ask which controls the assessor tested for your deployment.
Compliance overviewScheduled jobs and notebooks
Choose DuckDB for a scheduled job or notebook that reads a card data extract on one controlled host, because the engine runs inside that process with no server to install or patch. Here the host carries most of the evidence: access control, logging, disk encryption, and who may copy the extract out. DuckDB publishes no PCI DSS attestation, and its documented file encryption can support encryption-at-rest requirements, but the operator owns key management. Check that the extract never leaves the host unencrypted.
Encryption in DuckDBProcurement asking for vendor documentation
Choose ClickHouse when procurement or the assessor asks for vendor-side PCI documentation, because the external QSA audit is documented as an Enterprise plan feature. Ask what evidence the audit produced, whether you may receive it, and which scope it covers against your deployment. A vendor-side audit does not transfer your obligations, so your own responsibility matrix still has to show who controls what. DuckDB has no equivalent published, so the same request leaves that gap with you.
No team to run a server
DuckDB suits a team that cannot staff database upgrades or cluster operations, because the engine runs inside a host process and there is no database server to install, update or maintain. That advantage holds only if the host still gets patched: the operating system, the language runtime and the application that embeds DuckDB all sit in your patch scope and in the assessor's view. Confirm who owns those patches, how often they ship, and whether the job runs on an in-scope host. The engine is MIT-licensed, so running cost shifts to the host and whoever patches it.
Keeping the server on support
Choose a self-hosted ClickHouse server when you can commit to running a version the project still supports, since running an unsupported version creates a patching question you will have to answer. The security policy lists 26.9, 26.8, 26.7 and 26.3 as supported and treats every other version as unsupported. Stable releases ship roughly monthly, and LTS releases ship twice a year with one year of support, so plan a recurring upgrade window. Check the policy on the day of assessment, because the supported list changes as new lines arrive.
Security policyWhat PCI DSS v4.0.1 asks of a warehouse that holds card data
Any entity that stores, processes or transmits cardholder data or sensitive authentication data, or that could affect the security of that data, is in PCI DSS scope. An analytics store that holds card numbers, including a reporting copy pulled from a payment database, sits inside the cardholder data environment and needs controls that match the payment system it came from. Confirm the scope with your assessor before you design the schema, because that decision drives the rest of this section. The current version is v4.0.1, published on 11 June 2024 as a limited revision of v4.0 (PCI SSC announcement of v4.0.1). It is the only active version, since v4.0 was retired on 31 December 2024 and v3.2.1 was retired on 31 March 2024. Of the 64 new requirements introduced in v4.0, 51 became effective on 31 March 2025, so any assessment you start now should be written against v4.0.1 with those requirements in force.
The controls group into themes that an assessor will test in a warehouse. Stored account data must be protected, which for a columnar store means identifying the columns that hold primary account numbers, deciding whether they are encrypted, masked or tokenized, and listing who can read them in clear form. Access must be restricted to the people and services that need it, so review database users, roles and any BI tool that connects with a shared credential. Logging and monitoring must show who queried sensitive columns and when, which means enabling audit logs at the database host level and setting how long they are kept. Systems must be kept patched on a documented schedule, cryptographic keys need a lifecycle covering generation, rotation and custody, and testing, including vulnerability scans and penetration tests, must reach the warehouse itself and not only the applications in front of it.
A vendor attestation supports the assessment but does not replace the assessor's review of your own environment. Ask any vendor for its current attestation, the date it covers and the exact scope, then confirm whether that scope includes the deployment model you plan to run, such as a self-hosted server, a managed service or an embedded engine inside a job. Before the assessment, build an inventory of every table, extract, cache and export that may contain card data and map each one to the control themes above. Plan for the work a vendor cannot do for you: key custody, quarterly access reviews, log retention and evidence of patching stay with your team, so assign an owner to each before the assessor arrives.
How ClickHouse and DuckDB each meet the main PCI DSS control areas as documented
This table compares the two platforms against six control areas an assessor typically asks about for cardholder data stores. Read each cell as what the vendor documents, and treat any gap as work for your team or a question for the vendor. The main takeaway: ClickHouse has a documented external QSA audit and a Cloud audit log, while DuckDB publishes no attestation and leaves key management and logging to the host.
| Control area | ClickHouse as documented | DuckDB as documented |
|---|---|---|
| Assessment or attestation | External QSA audit for PCI DSS since 2025, listed as an Enterprise plan feature. Confirm whether it covers self-hosted servers. | No PCI DSS attestation published. Your assessor evaluates DuckDB inside your own cardholder data environment. |
| Encryption at rest | Not detailed here. Confirm with ClickHouse which at-rest encryption options apply to your self-hosted deployment, and who holds the keys. | Documented file encryption may support encryption-at-rest requirements. The operator manages keys and must verify the setup. |
| Access control | Not detailed here. Your team must design and evidence user, role and network controls, and confirm options with ClickHouse. | Embedded, with no separate server to install or maintain. Access control falls to the host application, which your team must design and evidence. |
| Audit logging | Cloud has a database audit log. Self-hosted equivalents are not detailed here, so confirm with ClickHouse what your servers can log. | No audit logging is documented. The host application or organization must log queries and access and retain the evidence. |
| Data location | Cloud supported regions are documented. Self-hosted data stays wherever you run the servers, so set and document that location yourself. | Runs inside your application or job, so data lives wherever that process and its files run. The host sets the location. |
| Version support | Security policy lists 26.9, 26.8, 26.7 and 26.3 as supported; all other versions receive no security updates. | v1.5.6 released September 28, 2026. Confirm the support window and patch policy for the version you pin. |
Where cardholder data sits in each design and where the trust boundary falls
This illustrative diagram starts at the payment application, which sends a tokenized extract into a self-hosted ClickHouse server inside the cardholder data environment. The operator owns the access control, audit logs and key custody for that server. The right branch shows DuckDB running inside a scheduled job on the host, reading an encrypted database file, with the host team owning key custody and job logs. Analyst access stays inside the boundary, and in this layout only aggregates leave it for reporting. Check every arrow that crosses the boundary, and confirm with your assessor which records each owner must produce.
Illustrative layout showing the cardholder data environment boundary and owner-marked controls.
Where a vendor attestation stops and your own assessment starts
A vendor's QSA assessment answers one narrow question: does that vendor's product or service, within the scope it states, meet the requirements the assessor tested? It does not show that your cardholder data flows are mapped, that network segmentation isolates the cardholder data environment, that staff access to the database is controlled, or that the applications around the database handle card data safely. Those controls stay with you. For ClickHouse, the ClickHouse Cloud compliance overview describes an external audit with a Qualified Security Assessor for PCI DSS, dated to 2025 and offered as an Enterprise plan feature. The open question is whether that audit covers the self-hosted open-source server or only the managed service. Do not assume it covers your deployment. Ask ClickHouse Inc. in writing which versions, deployment models and components are in scope, and get the responsibility split for each control before you cite the attestation in your own assessment.
DuckDB is different in kind. It runs embedded inside a host process, so there is no database server to install or patch, but it also means there is no vendor attestation to inherit. DuckDB publishes no PCI DSS attestation, so every control an assessor tests falls to you and the host: where the database file lives, who can read it, how the host process is hardened, how the job or notebook that runs it is logged, and how configuration changes are recorded. The DuckDB data-at-rest encryption write-up describes file encryption that may support encryption-at-rest requirements, but the operator owns key management. Every control has an owner, and for DuckDB that owner is always your team. Expect the assessor to ask for host access records, change history and key custody evidence, all produced by your own tooling and processes.
Turn this split into a decision before you build. For ClickHouse, the first action is a written scope and responsibility matrix from ClickHouse Inc. that covers the self-hosted server as well as the managed service. Until that document arrives, treat the attestation as unconfirmed for your deployment. Then confirm that the version you run is one the ClickHouse security policy lists as supported, which currently means 26.9, 26.8, 26.7 or 26.3, because unsupported versions receive no security updates. For DuckDB, start the evidence file on day one with host access logs, key custody records and configuration history, since no vendor document will fill those gaps later. In both cases, map each requirement to a named owner and an artifact before the assessor asks for it.
ClickHouse vs DuckDB for PCI DSS: the evidence an assessor will ask for
ClickHouse starts with more evidence, because the vendor has already been through a PCI DSS audit led by a Qualified Security Assessor. ClickHouse's compliance overview says that external audit has run since 2025 as an Enterprise plan feature. Ask what it covers and whether it extends to your setup.
- Data flow diagram and scope statement: Your team writes both. Map each path from source systems through ClickHouse to every report and export, mark each node that stores or transmits cardholder data, then ask ClickHouse for the audit's scope boundary so the statement shows which controls the vendor carries.
- Access listings and audit log samples: On ClickHouse Cloud, the database audit log is the primary source. Export user, role and query records for a sample period and record who reviewed them. On self-hosted ClickHouse, confirm the equivalent logging, its retention and its reviewer.
- Encryption configuration and key custody records: Request ClickHouse's encryption documentation for your edition and confirm each setting in your own configuration. Then record the key custodian, the rotation procedure and where keys are stored, because an assessor will ask who holds the keys.
- Version, patch and vendor documentation: Stable releases ship roughly monthly, LTS releases twice a year, each supported for a year. The security policy lists 26.9, 26.8, 26.7 and 26.3 as supported, and LTS lines v26.8.29.10-lts and v26.3.53.4-lts were published October 16, 2026. Keep dated version records.
Before the assessment, ask ClickHouse for its QSA documentation, then confirm your edition, whether your deployment falls inside the audited service and who owns each log export.
DuckDB leaves most of the evidence with you. It publishes no PCI DSS attestation, so there is no vendor document to hand an assessor. It runs embedded in a host process with no separate server, so the records sit with your applications, jobs and operators.
- Data flow diagram and scope statement: Your team owns both. The diagram must show each application, job or notebook that opens a database file, where that file lives and which copies leave the host. Because DuckDB has no server boundary, the scope statement must name the host systems.
- Access listings and audit log samples: Confirm whether DuckDB records file access itself. If it does not, the evidence is the host application's logs: which process opened which file, when, and under which service account. Those logs must also show file access, beyond application events.
- Encryption setting and key records: DuckDB documents file encryption that may support encryption-at-rest requirements, but key management is the operator's responsibility. Record the setting used for each file, the key custodian, where keys are stored and the rotation procedure. Confirm that every job writing the file applies the same setting.
- Version, patch and vendor documentation: Record the DuckDB version per host build. v1.5.6 was published September 28, 2026, according to the DuckDB repository releases. Patch evidence is your upgrade record. Because no vendor attestation exists, ask the maintainers only for what they publish, such as release notes and any security contact.
Before the assessment, confirm which host applications open the files, that each applies the encryption setting, and that the key custodian has a written procedure.
Configuring the chosen side for a PCI DSS scope
This sequence takes the chosen platform from an undefined data scope to an evidence pack an assessor can test. ClickHouse and DuckDB differ most in where vendor assurance stops, whether the store runs as a persistent network service, and who patches the component. Each step names the output that closes it, so the team knows when to move on.
Confirm whether card data reaches the store
Begin with the data inventory. Map each source table or file and mark whether it holds primary account numbers, sensitive authentication data, or only tokenized or truncated values. Remove or replace fields that analytics do not need, and record each decision with your assessor. The step closes when every table has a written yes or no for card data and a named owner. Here the two sides differ: a ClickHouse server is a persistent network service that sits inside scope from the first load, while a DuckDB file copied to a laptop or job runner brings that machine into scope too, so list every location a file can reach.
Get written scope for the vendor assessment
Decide where the database runs, then ask the vendor in writing which service or build its assessment covers. ClickHouse documents an external audit with a Qualified Security Assessor for PCI DSS, offered as an Enterprise plan feature, so ask whether it covers ClickHouse Cloud or the open-source server you run yourself. DuckDB publishes no PCI DSS attestation, so your own assessment carries the full weight. The step closes when the scope statement sits in the evidence file, names the service or build, and matches the regions and hosts in your data flow.
Pin a supported version or patch cadence
For ClickHouse, choose a line that the ClickHouse security policy lists as supported: 26.9, 26.8, 26.7 or 26.3. Versions outside that list receive no security updates, so write the upgrade trigger into your change process before go-live. For DuckDB, there is no server to patch. Pin the embedded library version in each host, for example v1.5.6, published September 28, 2026, and set a patch cadence covering the host runtime and every application that embeds the engine. The step closes with a version inventory listing each running instance, its host, its version and its last patch date.
Set encryption at rest and name custodians
Turn on encryption for stored data and decide who holds the keys. For ClickHouse, confirm with ClickHouse and your platform team which at-rest mechanism covers the disks or volumes that hold table data and backups, then test that a restored backup can still be read. For DuckDB, DuckDB's file encryption documentation may support an encryption-at-rest control, but the operator owns key management, so your team must decide where keys live, how they rotate, and who can read them. The step closes with a key custody record naming one accountable role, the rotation procedure, and a successful test restore.
Configure access control and log sources
Restrict who can reach the store and send its logs to a place your monitoring team reviews. For ClickHouse, create named database users with the least privilege analysts need, retire shared accounts, and forward server logs and any audit output your build provides to your SIEM. ClickHouse Cloud's database audit log is one reference point, so check its fields and retention against your own requirements. DuckDB has no network listener or user accounts of its own, so access rests on the host process and file permissions, and the audit trail must come from the application that embeds it. The step closes with a test showing one denied access attempt and one logged event arriving in the SIEM.
Document the data flow and trust boundary
Draw every path card data takes, from source systems through loaders, the store, backups, dashboards, and exports, and mark the trust boundary around each component. For ClickHouse, the boundary includes the server, its listening ports, and any replicas or backup targets you add. For DuckDB, the boundary is each host process that embeds the engine, so every notebook, job, or service that opens the database file widens it. The step closes when an engineer outside the project can trace one card-data field from source to report using only the diagram and written flow, and a reviewer has signed both.
Assemble the evidence pack for review
Collect the outputs of the earlier steps into one index, mapped to the PCI DSS v4.0.1 requirements each item supports, since v4.0.1 is the only active version. Include the vendor scope statement, version inventory, key custody record, access test results, log samples, patch records, and the data flow diagram. For ClickHouse, the vendor's audit material is one input the assessor may review, and it does not replace your own evidence. For DuckDB, every item comes from your team. DeployOpen can prepare this evidence, but the QSA or internal assessor decides what it proves. The step closes when the assessor has walked through the index and logged any gaps for follow-up.
ClickHouse vs DuckDB for PCI DSS: questions buyers ask before hiring help
Does choosing ClickHouse or DuckDB make us PCI DSS compliant?
No. PCI DSS applies to an environment, so neither ClickHouse nor DuckDB makes you compliant by being installed. The assessor reviews how cardholder data enters, moves through and leaves the warehouse, along with access, logging, key management and patching around it. ClickHouse's compliance overview describes an external PCI DSS audit by a Qualified Security Assessor, offered as an Enterprise plan feature. Confirm whether that audit's scope includes a self-hosted deployment like yours. DuckDB publishes no PCI DSS attestation. Its file encryption may help with encryption-at-rest requirements, and you remain responsible for key management. Ask your assessor which evidence they will accept before you choose.
What drives PCI DSS warehouse project cost and what should a quote include?
Cost follows scope. The main drivers are how many systems store, process or transmit cardholder data or could affect that environment, how many data flows need mapping, how much logging, access control and key management is new work, and whether you run a single server or a replicated cluster. You pay DeployOpen for planning, build and documentation, your assessor for the assessment, and your own staff for internal work. DeployOpen does not publish a price list, and fixed-scope work is agreed in writing before it starts. Ask that the quote lists:
- the systems and data flows in scope, with the boundary stated
- each deliverable and the evidence it produces
- what your team must provide, and by when
- which items are one-time and which recur, such as retainers for upgrades or continuous testing
- how retesting and handover are handled
Ask for assumptions in writing too, because unstated assumptions are where change requests come from.
What will our team need to provide for a PCI DSS data project?
Five inputs decide how fast the work moves and how well the evidence holds up at assessment. Name an owner for each before the engagement starts:
- Data flows: where cardholder data enters, gets copied, changed and queried, including batch loads and BI exports.
- Access lists: who holds database accounts, admin roles and SSO groups, and who approves changes.
- Key custody: who generates, stores and rotates encryption keys. DuckDB's encryption write-up places key management with the operator.
- Log sources: which systems send audit and query logs, and how long you keep them.
- Patch owner: who tracks ClickHouse or DuckDB releases and applies updates within the support windows your version policy sets.
DeployOpen can document, configure and test these areas, but the decisions and day-to-day ownership stay with your team.
Can our own team do this without outside help?
Yes, if your team has PCI DSS assessment experience, runs ClickHouse or DuckDB in production, and has time for the evidence work. Many teams build the platform in-house and bring in help for the assessment-facing parts, such as mapping requirements to controls, writing the evidence pack or testing configuration. The hard part is seldom the install. It is the access reviews, key custody decisions, log retention and change records that an assessor samples across a period of operation. Check your bandwidth honestly, since this work runs alongside your normal release calendar. Whatever partner you pick, ask them to state in writing which tasks they perform and which stay with you.
How long does a PCI DSS data warehouse project take?
It depends on the written scope, and this page does not give a duration. The schedule follows the number of systems in scope, how many data flows need mapping, whether logging and key management already exist, and how many evidence samples your assessor requests. Some controls are checked over a period of operation, so evidence collection can run longer than the build itself. Ask for a plan with named milestones: scope sign-off, configuration build, evidence collection, retest and handover. Also ask which milestones depend on approvals from your side, because those usually set the pace.
Does DeployOpen certify our setup or issue a PCI DSS attestation?
No. DeployOpen is not an auditor, certification body or assessor, and it does not issue audit reports, attestations or certifications. It plans, implements, hardens and documents the self-hosted platform inside your infrastructure, and prepares the systems, controls and evidence that an independent assessor reviews. Its security testing can produce findings, fixes and retest results your assessor may consider, but a passing test is not a compliance decision. Your assessor makes the determination. Confirm their requirements before scoping, so the evidence pack matches what they will sample.
How DeployOpen prepares PCI DSS evidence for either option
DeployOpen works on ClickHouse vs DuckDB for PCI DSS as a self-hosted implementation and evidence project inside your own infrastructure. Most engagements are fixed-scope, so we agree the cardholder data path, deliverables and timeline in writing first, then build and document the chosen option for your QSA or internal assessor to review. We do not issue audit reports or attestations; independent assessors and certification bodies do that.
How we scope
- Scope is agreed in writing before work starts, including which systems and data stores sit in the cardholder data environment.
- The written scope lists the ClickHouse or DuckDB deployment, its ingestion paths, and the evidence deliverables for the assessor.
- Ongoing support, upgrades and continuous testing can be added as a retainer alongside the fixed-scope work.
How we build
- Deploy the chosen option in your own cloud, data center or air-gapped network with access control and audit logging.
- For ClickHouse, we review encryption and user permission settings against your PCI DSS requirements before go-live.
- For DuckDB, we document the file encryption setup and key custody, which stays with your team as the operator.
How we hand over
- Written documentation of data flows, storage locations, access model and key management for the cardholder data environment.
- An evidence index mapping each PCI DSS v4.0.1 requirement you own to the config, log or record that supports it.
- Written handover with runbooks for upgrades, backups and rollback, so your team can run the platform after the engagement.
How we support
- Retest after fixes so the evidence reflects the final configuration the assessor will sample.
- Confirm the ClickHouse version is in security support, since the project publishes its supported lines in its security policy.
- Retainers can cover continuous testing and upgrades, including retesting before each assessment.

