ClickHouse vs Apache Spark for PCI DSS: which fits your cardholder data
Your team must meet PCI DSS and has both products on its shortlist. ClickHouse fits when you want an analytical store with a documented external audit by a Qualified Security Assessor (QSA) to point to during your assessment. Apache Spark fits when cardholder data stays in a lakehouse your team already assesses and the job is batch, streaming or machine learning compute. The decision turns on whether primary account numbers (PANs) reach the store at all, and on who operates each layer, from the database or cluster up through storage, network and access controls. Your QSA will draw the cardholder data environment (CDE) boundary around whichever system holds PANs, so answer both questions before you compare features. Assess against PCI DSS v4.0.1, the only active version.
The ClickHouse compliance documentation says ClickHouse has undergone an external audit with a QSA for PCI DSS since 2025, and lists this as an Enterprise plan feature. Confirm that against your exact deployment: whether you run open-source ClickHouse on your own servers, ClickHouse Cloud, or another hosting model, which version the audit covers, and whether its scope names the components you will actually operate. A vendor audit narrows your work but does not close it. Your assessor still tests how you configure access, logging, key handling and retention around the store, and that evidence is yours to produce.
On the Spark side, the Spark security documentation calls TLS the preferred method for network encryption, lists a legacy AES-based method, and says RPC SSL must be enabled explicitly. Those settings are yours to configure, record and show an assessor, alongside cluster authentication, encryption at rest and log retention for the lakehouse. If PANs land in Spark jobs or tables, every job, table and cluster that touches them is likely in scope, so decide first whether PANs can be removed or tokenized upstream. Ask who patches the cluster, who holds the keys and who reviews access logs. This page covers the PCI DSS angle only; the general product comparison sits on its own page.
What PCI DSS asks of a warehouse or lakehouse holding card data
PCI DSS v4.0.1 is the only active version, because v4.0 was retired on 31 December 2024 and v3.2.1 on 31 March 2024. The standard applies to any entity that stores, processes or transmits cardholder data or could affect that environment, so an analytics store holding primary account numbers is in scope, along with the pipelines and dashboards that read it.
Protecting stored account data
Requirement 3 covers stored account data, and it reaches the analytics store as soon as primary account numbers land in a table, a Parquet file, a backup or a replica. Decide first whether the warehouse needs full card numbers at all, or whether truncated or tokenized values answer the reporting questions. Where full numbers stay, ask how the platform renders them unreadable, how encryption keys are managed and rotated, and whether query results, caches and exported files carry the same protection. Confirm each control in your own deployment with the vendor and your assessor, since the platforms document different parts of this.
Encrypting transmission over open networks
Requirement 4 asks for strong cryptography whenever cardholder data crosses an open or public network. Spark's security documentation names TLS as the preferred method for network encryption, lists a legacy AES-based method, and says that RPC SSL must be enabled explicitly, so the setting has to be switched on and verified rather than assumed. For ClickHouse, check client connections, inter-node replication and backup traffic, and confirm the TLS configuration with your own engineers before the assessor reviews the network diagram.
Spark security docsRestricting access by need to know
Requirement 7 expects access to cardholder data to follow a documented access control model based on business need. In a warehouse, that means table, column and row permissions for analysts, service accounts for pipelines, and separate roles for the few people who can see full numbers. In a Spark estate, the same question extends to notebooks, job submission, cluster managers and the storage buckets behind lakehouse tables, where access is often granted outside the database. Ask each platform team to show its role matrix, and confirm which permission granularity your chosen setup enforces.
Identifying users and credentials
Requirement 8 requires each user to have a unique ID and strong authentication before access to the data. Shared service accounts, database users created for dashboards, and Spark jobs running under one cluster identity are common gaps, so inventory every non-human identity and assign it an owner. Check how each platform integrates with your identity provider, whether multi-factor authentication applies to administrative access, and how pipeline credentials are stored and rotated. Document the answers before the assessor asks for them.
Logging and monitoring activity
Requirement 10 asks for audit logs covering access to cardholder data and administrative actions, kept long enough to review and protected from change. A card-data store needs logs for queries that touch account number columns, permission changes and failed logins, plus a path to forward them to your SIEM. ClickHouse documents a database audit log for ClickHouse Cloud, so self-hosted teams must confirm what their server records, where it is written and who can alter it. For Spark, log coverage depends on the driver, executor and history server settings you choose, which you should test before go-live.
Database audit logThird-party providers and documented scope
Requirement 12 covers the policies behind the technical controls, including a maintained list of third-party service providers and a written PCI DSS scope that is confirmed on a regular basis. Managed ClickHouse, cloud object storage and any support partner that can reach the environment all belong on that list. ClickHouse's compliance documentation describes an external audit with a Qualified Security Assessor since 2025, offered as an Enterprise plan feature, so ask the vendor which evidence your plan includes and whether it covers the version you run. Confirm whether that evidence applies to your deployment model, since it is tied to the plan.
Compliance overviewHow ClickHouse and Apache Spark each meet the PCI DSS controls, as documented
This table sets what ClickHouse and Apache Spark document against core PCI DSS control areas, so read the ClickHouse column for vendor evidence and the Spark column for features you configure yourself. Where the documentation gives no answer, each cell tells you what to confirm with the vendor and in your own storage and catalog layer. The main takeaway is that ClickHouse brings a vendor audit to request, while most Spark controls depend on your own configuration and evidence.
| Control area | ClickHouse, as documented | Apache Spark, as documented |
|---|---|---|
| Scope and data location | Cloud regions are listed on the supported regions page; confirm which region holds cardholder data and whether the QSA audit covers it. | Runs on your own cluster, so the cardholder data environment can include every node, shuffle and temp location and the storage it reads; map each one. |
| Encryption in transit | Confirm TLS settings for client, replication and inter-node traffic in the documentation for your deployment type. | TLS is the preferred network encryption method and RPC SSL must be enabled explicitly; a legacy AES-based method is also listed. |
| Encryption at rest | Confirm encryption at rest on the ClickHouse security pages and at the disk or volume layer you run. | The security documentation gives no answer here; confirm encryption at rest on the Spark page and in your storage layer. |
| Access control | Confirm user, role and authentication options for your deployment on the vendor page and in your own access review. | Confirm access control on the Spark page and in your catalog layer, such as metastore or table permissions that govern who reads cardholder tables. |
| Audit logging | ClickHouse Cloud has a documented database audit log; for self-hosted ClickHouse, confirm audit logging on the vendor page and in your logging pipeline. | The security documentation gives no answer here; confirm audit logging on the Spark page and in your storage and catalog layer. |
| Vendor attestation | External audit with a Qualified Security Assessor for PCI DSS since 2025, documented as an Enterprise plan feature; request the evidence and its scope. | The security documentation lists features and no attestation; your assessor evaluates your deployed configuration. |
| Version support | Security updates cover 26.9, 26.8, 26.7 and 26.3 per the security policy; other versions are unsupported, so plan upgrades early. | 4.2.0 was released July 14, 2026; the 3.5.x extended LTS ends November 2027 with security fixes only, so plan your 4.x path. |
Where card data travels in an analytics stack and where the trust boundary sits
The diagram starts at the payment application inside the cardholder data environment, where primary account numbers (PANs) exist. The organization's own tokenization or minimization step is the main control point: only tokens or minimized fields should cross into the ingestion job, lakehouse storage, the Spark batch or ML job and the ClickHouse server or cluster. Every hand-off that carries data is marked as TLS, and Spark's security documentation says RPC SSL must be enabled explicitly. If any PAN reaches the analytics stack, that stack is in scope, so check each hand-off, what each store holds and who can read it.
Illustrative flow: the boundary moves to wherever primary account numbers stop.
Evidence a QSA asks for under PCI DSS, and how each side produces it
ClickHouse's compliance documentation states that ClickHouse underwent an external audit with a Qualified Security Assessor for PCI DSS, and that this is an Enterprise plan feature. Ask for the audit documentation and confirm whether its scope covers the self-hosted open-source server or only the managed service, because a vendor report on one deployment model does not establish the other. The items below come from ClickHouse Inc. or from your own servers.
- QSA audit documentation and scope: Produced by ClickHouse Inc. Request the report or summary, its date, the version it covers and the scope statement. Read the compliance overview to see which plan and deployment it describes.
- TLS and network settings: Produced by your platform team from the server configuration. Export the secure TCP port settings, the OpenSSL section and the listener and firewall rules, and show that plaintext client connections are disabled where encryption is required.
- Role and access exports: Produced by your team from the user, role and grant definitions on the server. Export every account and privilege that can reach tables holding card data, with the review date and the reviewer's name.
- Audit log output and retention: Produced by your team. Confirm what the self-hosted server writes to its logs and query logging tables, where those records go and how long they are kept. The database audit log page describes Cloud output, which may differ from self-hosted output.
- Version support status: Published by ClickHouse in its security policy, which lists 26.9, 26.8, 26.7 and 26.3 as receiving security updates. Record the running version against that list on a dated check.
If you choose Cloud, also export the region list from the supported regions page and check it against your data residency rules, then confirm each item with the assessor before work starts.
Confirm with your distribution or vendor whether any assessment applies to your Spark build. If none does, the evidence is your own configuration and version record, which your team produces and the assessor reviews. Spark is licensed under Apache-2.0 by the Apache Software Foundation, and its security documentation describes TLS as the preferred network encryption method, with RPC SSL that must be enabled explicitly. Your deployment has to show both settings in practice, not only in the documentation.
- Security configuration for TLS and RPC SSL: Produced by your team from the Spark configuration files or submit options. Show that TLS is configured for network encryption and that RPC SSL is enabled, following the Spark security guide. Document the legacy AES-based method only if you use it, and say why.
- Cluster and storage access settings: Produced by your platform team from the cluster manager, storage policies and authentication settings. Export who can submit applications, read event logs and reach the storage that holds card data.
- Spark version record: Produced by your team. Record the version in use and its release date, for example 4.2.0 on July 14, 2026, or 3.5.9 on July 16, 2026, and compare it with the support window for that line. The versioning policy maintains feature branches for 6 months and the last release in a major line as an LTS for 18 months, and the 3.5.x extended LTS ends in November 2027 with security fixes only.
- Patch currency check: Produced by your team as a dated comparison of the running maintenance release with the latest one in its line, such as 4.1.3 or 4.0.4 released on July 15, 2026, if those lines are in use.
Ask your assessor which Spark release line and which configuration files they will sample, and keep the change history that shows when each security setting was last modified.
Some evidence does not depend on which engine you choose. The assessor will want to see where card data enters, where it is stored and which systems are in scope, and proof that people who touch it are logged and reviewed. Your organisation produces these records, and they must match what each engine is actually configured to do.
- Access logs for card data: Produced by your security or operations team from the logs of the engine, the storage and the systems around them. Show who read or changed card data, when, and how the logs are kept and reviewed. Confirm which layer writes each record, since the engine, the storage and your log pipeline may log different events.
- Data flow and scope diagram: Produced by your architecture team. Show each path where cardholder data enters, moves through or leaves the analytics platform, and mark which systems sit inside the cardholder data environment.
- Change and upgrade records: Produced by your platform team from change tickets and upgrade records for each engine version. Link every upgrade to the support check recorded in the engine's tab.
- Assessor decision: The qualified security assessor decides whether the evidence is sufficient for each requirement and may sample items differently from this list. Ask early which records they will request and in what format.
Before the assessment, walk the scope diagram with the assessor and confirm that each engine's exported configuration matches it.
Configuring the chosen side for PCI DSS, in order
This sequence takes the platform you chose from a card data decision through to a configured, patched and logged environment that an assessor can test. Each step names who owns it and the check that closes it, so the evidence file builds as you go. The order matters because scope and retention decisions shape every later control.
Confirm whether card data enters the store
Owner: the data owner with the compliance lead. Trace every source system and pipeline that would load the store, and mark each field that holds a primary account number or sensitive authentication data. Where analytics does not need the number, drop the field at ingestion. Where reconciliation needs a link, replace the number with a token and keep the mapping in a separate system with its own access controls. Done when a signed data flow diagram lists every card field with its disposition.
Choose the deployment and confirm scope
Owner: the platform architect, with the compliance lead and the assessor. For ClickHouse, choose between self-hosted open source and the managed service, then ask the vendor in writing which deployment and plan its PCI DSS audit by a Qualified Security Assessor covers, since ClickHouse's compliance documentation lists that audit as an Enterprise plan feature. For Spark, you document the clusters, storage and network segments that touch card data yourself. Done when the assessor has confirmed the cardholder data environment boundary in writing.
Select a version line the policy supports
Owner: platform engineering, approved by the security policy owner. For ClickHouse, pick a line that the ClickHouse security policy lists as supported with security updates, which currently includes 26.9, 26.8, 26.7 and 26.3. Stable lines ship roughly monthly, while LTS lines ship twice a year and are supported for a year, so an LTS line means fewer forced moves. For Spark, choose from the lines on its downloads page, and note that the 3.5.x extended LTS receives security fixes only until November 2027. Done when the chosen version and its support end date are recorded and signed off.
Enable TLS on client and internal traffic
Owner: the platform engineer, with network security. For ClickHouse, turn on TLS for client connections and for traffic between nodes, using the configuration in the documentation for your chosen version and checking each setting against that version's page. For Spark, the security documentation calls TLS the preferred network encryption method and lists a legacy AES-based option, so use TLS and enable RPC SSL explicitly, since the documentation says it must be enabled explicitly. Done when every client connects over TLS and a packet capture between nodes shows no plaintext query or data.
Set role-based access and separate analysts
Owner: security engineering, with the data owner. Create roles so that only named service accounts and approved pipelines can read tables holding card data, and give analysts views that expose tokenized or masked values. Remove shared logins and tie access to your identity provider where the chosen version supports it, which you confirm in its documentation. Done when an access review lists each role, its members and the tables it reads, and a test analyst account cannot select the card columns.
Turn on audit logging and agree retention
Owner: security operations, with the assessor. For ClickHouse, turn on audit logging for logins and queries and check the settings in the ClickHouse Cloud database audit log guide if you use the managed service, or the version documentation if you run it yourself. For Spark, enable its event logs and send driver and executor logs to the same store. Ship logs to a store the analytics team cannot edit, and agree the retention period with the assessor in writing before go-live. Done when a test analyst query appears in the central log with user and time, and the retention setting is in the evidence file.
Schedule upgrades to stay supported
Owner: the platform team lead, with change management. Set a recurring review that checks the ClickHouse security policy or the Spark downloads page, and moves any cluster off a line that drops from the supported list. Run each upgrade in a test environment first and record the result in the evidence file. Done when the upgrade calendar names an owner, the next review date is recorded, and the latest change has a test record and a documented rollback plan.
Why version support windows become a PCI DSS evidence item
For this requirement, the version support window is itself an evidence item. An assessor will ask which software versions run in the cardholder data environment and whether each one still receives security fixes from its vendor. ClickHouse's security policy lists versions 26.9, 26.8, 26.7 and 26.3 as supported with security updates and treats every other version as unsupported. Stable releases ship roughly monthly, and the three latest stable releases receive diagnostics and bug fix backports. LTS releases ship twice a year and are supported for a year after release. Your team has to choose a track: a stable line you can move off within the monthly cadence, or an LTS line whose end date is fixed and known in advance. Either way, record the supported list with the date you checked it.
Spark's windows have a different shape, so the same control needs a different calendar. Feature releases occur quarterly starting with 4.3.0, and each major and feature release branch is maintained for six months. The last release in each major line is an LTS release maintained for 18 months. The 3.5.x extended LTS ends in November 2027 and receives security fixes only, so a cluster still on 3.5 has a published end point that your upgrade plan must land before. Spark's versioning policy describes the Spark releases themselves. Confirm with your platform team which Java, Scala, Python and cloud image components, along with the connectors and libraries your jobs add, have their own support dates, and add those dates to the same register as Spark.
A dated upgrade plan is what turns these windows into evidence. For each production version, record the supported-until date from the vendor page, the owner, the staging test on a copy of the warehouse or lakehouse, the change ticket, the rollback steps and the approval. Set the review date so that a version moves before its support status changes. An assessor may sample a few systems and ask for the plan, the test record and the vendor page as it stood on that date, so keep dated copies of each page. Treat the windows as inputs to your own patch management process. Neither vendor's support policy shows, on its own, that your environment meets PCI DSS v4.0.1, the only active version of the standard, and the assessor's review of your process decides that question.
What buyers ask before hiring help for PCI DSS work
How much effort does PCI DSS work on ClickHouse or Spark take?
Effort depends on how much of your environment falls inside PCI DSS scope and how much evidence already exists. The main drivers are the size of the cardholder data environment, the number of data flows that bring cardholder data into the ClickHouse or Spark store, the number of environments such as production, staging and analytics sandboxes, and the evidence gaps an assessor will find. A store fed by many payment systems, with shared accounts and no reviewed access logs, takes far more work than a narrow feed with documented controls. Ask any provider to list each driver in the written scope, with the controls and evidence it will produce for each one. Setup work is one-time. Access reviews, log checks and assessor requests recur.
How long does PCI DSS work for a data warehouse take?
No duration is given here because the timeline depends on scope, and scope and timelines are agreed in writing before any work starts. The same factors that drive effort also set the schedule: the number of data flows into the store, the number of environments, and how much evidence must be rebuilt from scratch. Your organization also controls pace through owner sign-off, access grants for network and identity, and the availability of your assessor. In a fixed-scope engagement, the written plan should name milestones, the deliverable at each one, and what your team must provide before each. Ask for those dependencies in writing, since a slow access approval often moves the end date more than the technical work does.
What does our team need to provide for PCI DSS help?
Expect to provide named owners, network and identity access, and a QSA contact before work begins. Named owners should include a sponsor for the cardholder data environment, a data owner for each feed into the store, and a platform owner who can approve changes. Network access means firewall change approvals and paths to the ClickHouse or Spark hosts in test and production. Identity access means SSO configuration, admin roles and log access for the people who review them. The QSA contact should be able to confirm scope and review evidence early, so findings do not arrive at the end. Missing any of these owners usually stalls the work, so confirm names before scoping. Ask for a written list of every access grant, its approver and its review date.
Can our own team handle PCI DSS configuration for ClickHouse itself?
Often yes for configuration, but the independent assessment stays separate from the team that builds the system. Many platform teams can set up ClickHouse or Spark with TLS, access roles, audit logging, backups and network segmentation by working from the project documentation. What in-house teams find harder is the scope definition, the evidence trail across every environment, and repeating both after each upgrade or new data feed. Decide which parts your team owns and which need outside help before you request a quote. The assessor will still need to examine the environment and issue the report, whoever did the configuration.
Does DeployOpen certify that our data platform is PCI DSS compliant?
No. DeployOpen does not issue audit reports, attestations or certifications. It plans, implements and prepares systems, controls and evidence for compliance assessments, including the work needed before a PCI DSS assessment. The formal assessment is performed by an independent assessor, typically a Qualified Security Assessor, who decides the findings and issues the report. Ask any implementation partner to state in the written scope which deliverables are configuration, documentation and evidence, and which depend on the assessor's own testing. A partner that offers a certificate for your platform is offering something it cannot issue.
Does the ClickHouse QSA audit cover a self-hosted ClickHouse cluster?
Confirm in writing whether ClickHouse's QSA audit covers your self-hosted cluster before you rely on it. ClickHouse's compliance documentation says it underwent an external audit with a Qualified Security Assessor for PCI DSS, since 2025, and lists this as an Enterprise plan feature. The page that describes it is the ClickHouse Cloud compliance overview, so do not assume the audit extends to open source ClickHouse on your own servers. Ask ClickHouse which deployments the attestation covers, which version and period it applies to, how you can obtain it, and what your organization must still document. Your assessor will weigh that answer, so get it before scoping.
Which Spark encryption settings matter most for PCI DSS data in transit?
Start with TLS for network encryption, and enable RPC SSL explicitly. The Spark security documentation calls TLS the preferred method for network encryption and also lists a legacy AES-based method, so choose TLS unless you have a documented reason not to. RPC SSL must be enabled explicitly in configuration. These are features an operator can use toward PCI DSS encryption requirements, but turning them on does not by itself meet a requirement. Your assessor will expect the configuration, the certificate and key handling around it, and evidence that the settings stay in place after upgrades.
How DeployOpen prepares a PCI DSS environment for review
DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own infrastructure. For ClickHouse vs Apache Spark for PCI DSS, we prepare the systems, controls and evidence an assessor will review, but independent assessors issue any report. Work starts with a written scope agreed in advance, so both platforms are reviewed against the same boundary.
How we scope
- We map which systems store, process or transmit cardholder data, and which ones could affect that environment.
- The written scope names the ClickHouse and Spark components, clusters, storage locations and Spark deployment modes in use.
- Fixed-scope engagements mean deliverables and timelines are agreed in writing before any build work begins.
How we build
- We set Spark network encryption to TLS, the method Spark's security documentation prefers, and enable RPC SSL explicitly.
- We configure access control and backups in your infrastructure, enable audit logging where supported, and document each setting.
- We confirm the ClickHouse release line against the security policy's supported versions before deployment, so patching stays inside support.
How we hand over
- Handover covers the architecture diagram, data flow map, configuration baseline and the evidence list an assessor is likely to request.
- Runbooks cover backup restores, Spark and ClickHouse upgrades, and the steps your team follows when a control fails.
- Security test findings and the fixes applied are documented in the handover when testing is in scope.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, quoted from the written scope.
- Upgrade work on ClickHouse follows its stable and LTS cadence, so the retainer plan tracks each release line in use.
- Ask for the support boundary in writing, including who patches, who reviews alerts and who answers the assessor's follow-up questions.

