Trino vs Apache Spark for PCI DSS

Trino fits interactive SQL over data kept in place. Spark fits batch and streaming jobs that copy cardholder data. Either way, your organization carries the PCI DSS obligations.

On this page

Trino or Apache Spark for PCI DSS: which one fits the cardholder data path

If you must meet PCI DSS and both Trino and Apache Spark are on your shortlist, the decision turns on two questions: where cardholder data is stored, and which queries and jobs touch it. Trino fits interactive SQL over data that stays in its existing stores, where you want TLS, authentication, access control and query event logs in front of that data. Spark fits batch and streaming jobs that copy or change cardholder data, so every copy and transformation becomes part of the environment your assessor reviews. Both projects are licensed under Apache-2.0, but an open-source license produces no PCI DSS attestation. Any compliance evidence has to come from your own controls and an independent assessment.

Trino's security documentation covers TLS, authentication, access control and event listeners that an operator can use to support access control and logging requirements. The Trino docs do not map these features to PCI DSS, so the mapping is yours to write and your assessor's to accept. Spark's security documentation calls TLS the preferred method for network encryption and also lists a legacy AES-based method. RPC SSL must be enabled explicitly, so check that setting on every cluster that handles cardholder data and confirm which encryption method your Spark version uses. Encryption of data in transit does not settle storage or job-output handling, which you need to review separately.

This page covers only the compliance angle, so read the general Trino vs Apache Spark comparison for performance, operating model and feature detail. Before you choose, run three checks. List every store that holds primary account numbers, map which queries and jobs read or write those stores, and flag any Spark job that writes a copy outside the existing store, because that copy usually enters scope. Confirm the list with your qualified security assessor, using PCI DSS v4.0.1 as the baseline, since it is the only active version. Then set retention for query event logs and Spark job logs in one plan, so the evidence your assessor asks for can be produced.

Four checks that decide whether PCI DSS reaches your query engine

PCI DSS applies to any entity that stores, processes or transmits cardholder data, or could affect the security of the cardholder data environment, including merchants, processors, acquirers, issuers and service providers. Answer these four questions for each query engine before comparing Trino and Apache Spark, because each yes pulls the engine, its catalogs and its jobs closer to assessed scope.

Is account data stored?

Start with the tables themselves. If any Iceberg, Delta Lake, Hive or warehouse table holds primary account numbers or sensitive authentication data, including in staging tables and backups, the storage layer and every system that can read it fall inside PCI DSS scope. A yes brings the table store and its catalog into the assessed environment. Ask the team to scan object storage paths and warehouse schemas for card number patterns and to record where each copy lives. Trino and Spark read the same stores, so this answer does not depend on the engine. Stored account data is what the Requirement 3 controls act on, so classify it before you choose a query engine.

PCI DSS standard

Do queries read card data?

Next, list everything that reads those tables. Interactive Trino users, scheduled Spark jobs, notebooks and BI connections that query a cardholder table all access sensitive data, and each needs its own access decision. A yes means every account, service identity and query path that can read the table is in scope. Review the authentication and access control settings you intend to use, confirm whether query logs can show who read which table, and check whether card columns can be masked or hidden. Trino's docs do not map their access control and logging features to PCI DSS, so your assessor will expect evidence of how you configured them.

Trino security overview

Do jobs write copies?

Check whether any job writes card data somewhere new. Spark ETL jobs that save cleaned tables, Trino CREATE TABLE AS statements, file exports and BI extracts all create copies that need the same retention, encryption and access rules as the source. A yes means each output location joins scope with the same controls. Inventory every write path, including scheduled jobs, ad hoc statements and temporary or spill storage, which teams often leave out. Decide whether card fields should be dropped or tokenized before they land, and record each path in the data flow diagram your assessor will review.

Does the engine reach the CDE?

Last, map the network path. A Trino coordinator and workers, a Spark driver and executors, a shared metastore, or a Kubernetes cluster that can reach a card database or payment gateway can place the engine inside the cardholder data environment or connected to it. A yes makes network segmentation the first control to prove. Confirm the design with your QSA, then check encryption on every hop. Spark recommends TLS for network encryption, documents a legacy AES-based method, and requires RPC SSL to be enabled explicitly, so verify each setting on the cluster.

Spark security docs

What PCI DSS v4.0.1 asks of a query engine

Assessors will test against PCI DSS v4.0.1, which is the only active version. The PCI SSC announcement of v4.0.1 describes it as a limited revision of v4.0 with no requirements added or deleted, published on 11 June 2024. v4.0 retired on 31 December 2024, and v3.2.1 retired earlier, on 31 March 2024, so any design document that still maps controls to v3.2.1 is out of date. Of the 64 new requirements introduced in v4.0, 51 were future-dated and became effective on 31 March 2025. Before that date they were best practices that could be marked not applicable, so assessors now apply them in full. Your query engine design should cite v4.0.1 and treat those 51 requirements as in force. Confirm each requirement number in your own copy of the standard before you cite it in a design document or evidence file.

Start with encryption in transit. Cardholder data moving between clients, the Trino coordinator and workers, and the source systems needs TLS, and the Trino TLS documentation is where your team should begin for the cluster's own traffic. On the Spark side, the security documentation calls TLS the preferred network encryption method, lists a legacy AES-based method, and requires RPC SSL to be enabled explicitly. A default install should not be assumed to encrypt internal traffic, so check each setting on the running cluster and keep the output as evidence. Encryption at rest belongs mostly to the storage and warehouse systems that hold the data, so decide early which system stores the cardholder data and who manages its keys.

Where cardholder data crosses the query path

This illustrative diagram traces cardholder data through two query paths. On the Trino side, an analyst or BI client connects over TLS to the coordinator, which applies authentication and access control before workers read each source through its connector, such as Iceberg, Hive or PostgreSQL. Query event listeners send events to a log store. On the Spark side, the driver and executors talk over RPC SSL, which must be enabled explicitly, and job output lands in storage. Treat every connector, event destination and output location as a separate system the assessor will ask about, and confirm which ones sit inside the dashed boundary.

Illustrative query path showing where cardholder data moves in Trino and Spark.

How Trino and Apache Spark meet PCI DSS areas as documented

This table sets out how Trino and Apache Spark address the PCI DSS areas a cardholder data platform usually touches, based on their documented features. Read each row as a configurable feature that supports a control, with the gaps flagged for you to confirm. The main takeaway is that both projects offer building blocks for encryption, access control and logging, but mapping them to PCI DSS requirements and producing the evidence stays with your team.

PCI DSS areaTrinoApache Spark
Encryption in transitCovered by the Trino TLS documentation. The docs do not map TLS to PCI DSS.TLS is the preferred network encryption method. A legacy AES-based method is also documented. RPC SSL must be enabled explicitly.
Encryption at restTrino queries data where it sits in connected systems. Confirm at-rest options for each connector before relying on it.Confirm the at-rest option in the project documentation or your distribution before relying on it.
AuthenticationCovered by the Trino authentication documentation. The docs do not map it to PCI DSS.Confirm the authentication option in the Spark documentation or your distribution before relying on it.
Access controlCovered by the Trino access control documentation. Mapping it to PCI DSS access requirements is your job.Confirm the access control option in the Spark documentation or your distribution before relying on it.
Audit loggingEvent listeners such as the HTTP and MySQL options send query events elsewhere. The docs do not map them to PCI DSS.Confirm audit logging options in the Spark documentation or your distribution before relying on it.
Data locationQueries data in place across many connectors, so data stays in its source systems. Confirm residency for each one.Processes data from the storage you configure. Confirm where intermediate and cached data lands in your cluster.
Patching and version supportRelease 484 came out October 15, 2026. Deployment requires a 64-bit Java 25 runtime, minimum 25.0.1.Release 4.2.0 came out July 14, 2026. The 3.5.x extended LTS receives security fixes only until November 2027.
Vendor PCI attestationYour PCI DSS assessment covers your environment, not the project. Confirm any vendor attestation with the project or distribution.Spark is Apache-2.0 licensed, so confirm any vendor attestation with your distribution before relying on it.

Who configures, evidences and answers for each control

Trino and Apache Spark both give operators security features, but the organization that runs the software carries the PCI DSS obligations. The four cards separate what each project documents, what it leaves open, what your team must configure and record, and what the assessor decides.

Features the docs document

Trino's security documentation covers TLS, authentication, access control and query event listeners, which an operator enables and configures. Spark's security documentation calls TLS the preferred method for network encryption, lists a legacy AES-based method, and requires RPC SSL to be enabled explicitly. These features support PCI DSS access control, logging and encryption requirements, but Trino's docs do not map them to PCI DSS, so confirm whether Spark's documentation does. Check each feature against the version you deploy, since a feature being available does not mean it is switched on in your configuration.

Trino security overview

What the docs leave open

Project documentation stops at features. The PCI DSS mapping stays with your team, along with the proposed cardholder data environment scope and the evidence that each control works in your environment. PCI DSS applies to entities that store, process or transmit cardholder data, or that could affect the security of that data, so a query engine that reaches card data tables is in scope for the organization running it. Ask your assessor whether a vendor feature list is acceptable as supporting evidence, or whether they expect your own control matrix that maps each requirement to a configured setting.

PCI SSC standard page

What your team configures and records

For either engine, your team sets and keeps records for TLS certificates, role mappings for the people and services allowed to query card data, log retention, locations where job output is written, and patch records for each release in use. Trino's HTTP and MySQL event listeners send query logs to systems you operate, so the retention period and access to that store are your decisions. Spark job output on shared storage needs the same access and retention controls as the source data. Ask the assessor which of these records they will sample and how far back they expect them to go.

Trino HTTP event listener

What the assessor decides

The assessor decides whether the proposed scope is correct, whether the evidence shows each requirement is met as your team implemented it, and whether any control marked not applicable has a justified reason. The software project does not make that call, and neither does DeployOpen, which prepares systems and evidence but does not issue audit reports or attestations. Because PCI DSS v4.0.1 is the only active version, confirm with your assessor which version and reporting approach they use before you collect evidence.

Turning release dates into a patch trail for PCI DSS

The patch trail starts with a record your team owns: each component in the cardholder data environment, the version it runs, its release date and the date your team applied that version. For Trino, the release notes list 482 on June 25, 2026, 483 on July 17, 2026 and 484 on October 15, 2026. The deployment docs call for a 64-bit Java 25 runtime, minimum 25.0.1, so the Java build belongs in the same record as the engine. For Spark, 4.2.0 followed on July 14, 2026, with 4.1.3 and 4.0.4 on July 15, 2026 and 3.5.9 on July 16, 2026. Treat each release date as the start of your clock and record the date you actually applied the version, because an assessor compares those two dates.

Spark gives you a published clock to plan around. Its versioning policy keeps major and feature release branches for 6 months and the last release in each major line as an LTS for 18 months. The 3.5.x extended LTS receives security fixes only until November 2027, so a 3.5 deployment needs a dated decision on upgrade or continued fix intake before that month. Use those windows to set a branch-end date in the record for each Spark line you run, and flag any line whose end date falls inside your assessment period. Trino's support window is the gap in this record: confirm it with the Trino project before you set a patch timeline for that engine, because a timeline built on an assumed window is hard to defend in front of an assessor.

The release dates and windows are inputs. The team sets the patch timeline, writes it into its own change records and ties each entry to the release or advisory it responds to. Decide the timeline before the next release arrives: name an owner for each component, a review cadence, and a documented exception path for a fix that cannot be applied within the window your team chose. An assessor will test whether the dates in the record match what ran in production at each point in time, so keep deployment logs alongside each version change. Check that your Spark, Trino and Java versions all appear in the same record. A gap in one component breaks the trail for the whole environment.

Evidence an assessor asks for and how each side produces it

Trino's security documentation covers TLS, authentication, access control and query event listeners. These features give you the controls, but Trino's docs do not map them to PCI DSS, so you assemble the evidence yourself. Assessors usually want the configuration as it runs in production, not the sample files from the documentation.

  • TLS and authentication configuration: exported coordinator and worker settings showing TLS on client and internal connections and the authenticator in use, taken from version-controlled deployment files and checked against a dated capture from the running cluster. See the Trino TLS documentation for the settings involved.
  • Access control rules and role mappings: the access control rules and the group-to-role mapping, reviewed to confirm each user has a unique identity and only the access their job needs to cardholder schemas.
  • Query event listener output: events from an HTTP or MySQL event listener, sent to a log store with a retention period set by your policy, showing who queried which tables and when.
  • Version and release records: the Trino version in each environment, matched to the release notes and to the date you approved the upgrade, so the assessor can see the cluster runs a release you still patch.

Confirm with the assessor whether they accept exported files, screenshots or a live walkthrough, and whether they want log samples with retention settings or full log extracts.

Configure the chosen engine for PCI DSS scope, in order

This sequence takes the engine you have chosen and configures it so an assessor can trace every path that carries cardholder data. Each step ends with a check you can show, and the final output is an evidence pack tied to the cardholder data environment. The client's security, data and platform teams own the decisions, and the assessor decides whether the evidence meets the requirement.

  1. Define the cardholder data scope first

    The data team lists every table, file path, connector and scheduled job that reads, writes or moves cardholder data or sensitive authentication data. The security lead marks which of these sit inside the cardholder data environment and which only touch it. Every later control is judged against this list, so it comes before any configuration change. Done means a scope register exists that names each connector or job, its owner and the data it touches, and a second reviewer has checked it against the network diagram. Ask your QSA or assessor to confirm the boundary before you rely on it.

  2. Pick the version line and document the upgrade plan

    The platform owner selects the release line that will run in scope and records its support status from the vendor's published release information. For Trino, confirm the current release and the Java runtime it requires, which the deployment documentation sets as a 64-bit Java 25 runtime, minimum 25.0.1. For Spark, confirm which line is the LTS branch and when its security fixes end. Write down who approves an upgrade, how it is tested against the scope register and how a rollback works. Done means a dated, approved upgrade plan sits beside the scope register and every in-scope component version is pinned in configuration management.

  3. Enable TLS on every client and cluster path

    The platform engineer turns on TLS for client connections to the Trino coordinator. For Spark, the engineer enables RPC SSL explicitly, following the security documentation, and confirms which legacy AES-based method, if any, is still in use anywhere. Trino's TLS documentation covers the coordinator HTTPS endpoint and internal communication between coordinator and workers, so check each of those paths. Test each path with a plaintext attempt that should be refused. Done means a connection test from an in-scope host shows encrypted sessions on every path in the scope register, and the test output is saved as evidence.

  4. Set authentication and access control by named account

    The identity team connects the engine to the client's directory or single sign-on and maps each engineer, analyst and service to a named account. Shared or generic logins used by scheduled jobs are replaced with individual service identities whose credentials sit in a secrets store. Access control rules limit who can read each catalog and table in scope, and the owners of the cardholder data sign off on a written access matrix. Done means an export of accounts matches the access matrix, and a test login from each role shows access only to the permitted catalogs.

  5. Send query events to a retained log store

    The security engineer configures an event listener that sends Trino query events to a log store the security team controls, using one of the event listeners Trino documents, such as the HTTP or MySQL listeners. For Spark, set up the logging your distribution supports. Set retention in the log store to match the client's audit record policy. Query text can contain sensitive values, so confirm who can read these logs. Run a test query from a named account and confirm that it appears in the store with the correct identity and time. Done means the test event is found in the retained store and an alert fires when the feed stops.

  6. Restrict and document job output locations

    The data team lists every location where a job writes results, including object storage buckets, staging schemas, temporary directories, exported files and Spark spill paths. Write access is limited to the owners named in the scope register. Output paths that hold cardholder data must be encrypted at rest under the key management your storage provides and removed on the retention schedule the client sets. Done means the output location register matches the actual permissions in the storage layer, and a test write to a restricted path is denied and recorded in the log.

  7. Retest and assemble the evidence pack

    An independent tester, such as DeployOpen's security testing team or the client's internal assessor, retests each control in the scope register against the configured engine and records the result. Failures return to the owner with a fix and a retest agreed in writing. The evidence pack holds the scope register, upgrade plan, TLS test output, access matrix, account export, log retention records, output location register and retest results, indexed to the PCI DSS requirements your assessor uses. Done means the assessor can trace each claim to a dated artifact, and any control the platform does not cover is flagged for the client to confirm with its QSA.

What buyers ask before they bring in outside help for PCI DSS

What drives the effort of PCI DSS work on Trino or Spark?

Effort is driven mostly by how many connectors and jobs touch cardholder data. Each connector to a payment or customer database, and each Spark job that reads or writes card data, needs its own check of encryption in transit, credentials, access rules and logging.

Effort rises when existing identity and logging systems are not yet connected to the cluster, because those integrations must be built and tested before evidence can be collected.

The evidence the assessor expects is the other major driver. A team that already keeps configuration records, access reviews and log retention settings will spend much less time than one building them from scratch. Ask any outside party to size the work by data flow and to state which assumptions would change the estimate.

How long does outside PCI DSS help take on Trino or Spark?

The timeline comes from the written scope, so ask for it in writing before any work starts. Scope sets the timeline through the number of clusters, connectors and jobs in view, the systems that must integrate with identity and logging, and the amount of evidence to be produced.

In an illustrative case, a scope covering one Trino cluster and two connectors is planned very differently from one covering several Spark environments and a retest cycle.

Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for each milestone, the client tasks that gate it, and what happens if the assessor requests more evidence part way through. Confirm when the retest falls in the schedule, because a retest left out of the plan can move the completion date.

What do we need to provide before outside help starts?

Outside help needs three things from your side: current architecture diagrams, access to the clusters and connectors in scope, and a named owner for each data source.

  • Diagrams: where cardholder data enters, is stored, is processed and leaves, including each connector to a source
  • Access: read access to configuration, identity and logging settings, plus a test environment or change window for hardening work
  • Owners: one named person per data source who approves access, confirms data classification and accepts evidence

Without named owners, decisions wait on people who were never asked to make them. Ask the partner to list every input in writing so gaps surface before the timeline starts.

Can our in-house team handle PCI DSS work on Trino or Spark?

Yes, if the team can configure TLS, authentication and logging on the engine and produce the evidence an assessor will ask for. Trino documents TLS, authentication, access control and query event listeners, and Spark documents TLS as its preferred network encryption method, with RPC SSL enabled explicitly. Trino's security overview does not map these features to PCI DSS, so the team must match each setting to the requirement it supports and record the result.

The main question is capacity and independent review. Someone must own the work, keep it moving alongside normal operations, and test it without reviewing their own settings alone. Many teams keep the platform in-house and bring in an outside reviewer for the retest and evidence check. Confirm with your assessor which evidence they accept before you decide.

Does Trino or Apache Spark have a PCI DSS attestation?

Neither Trino nor Apache Spark comes with a PCI DSS attestation through its open-source license. Both are licensed under Apache-2.0, which governs use and redistribution of the code, not compliance status.

An attestation applies to a specific entity and its environment after assessment, so it covers your deployment and the controls you run around the software. If you buy commercial support or a managed distribution, ask the distributor in writing for its attestation scope: the services, versions and environments it covers and the date of its report.

Also confirm the PCI DSS version your assessor will use. The PCI SSC's standard page lists v4.0.1 as the only active version. Treat any claim without a written scope as unverified.

What should a PCI DSS quote include before we sign?

A quote should follow from a written scope and state what is included, what is excluded and when the work ends. DeployOpen does not publish a price list, so ask for a quote built from the agreed scope. It should list:

  • Scope: the clusters, connectors, identity and logging systems and data sources covered
  • Deliverables: configuration changes, evidence records and the findings report
  • Timeline: milestones, the client tasks that gate them and the retest date
  • Retest: what is retested, who verifies fixes and what is handed over

Separate one-time implementation from recurring retainers for upgrades, support and continuous testing. Confirm whether assessor fees are in or out of the quote.

How DeployOpen helps prepare the platform and its evidence

DeployOpen plans, implements, hardens and documents self-hosted Trino or Apache Spark inside your own cloud accounts, data centers or air-gapped networks. For PCI DSS, the work is preparing the platform, its controls and the evidence an assessor will ask for, while the independent assessor decides the outcome. DeployOpen does not issue audit reports or certifications.

How we scope

  • The written scope names which Trino or Spark clusters, catalogs and data sources are in the PCI DSS environment.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
  • Scope also records which cardholder data flows the platform touches, so the assessor's questions have a defined boundary.

How we build

  • Configure TLS, authentication and access control on Trino, and wire its query event listeners into your logging.
  • Enable TLS for Spark network encryption and enable RPC SSL explicitly, as the Spark security documentation requires.
  • Harden both platforms' hosts, secrets and data stores, then document each setting so the configuration can be reviewed.

How we hand over

  • Deliver written configuration documentation, access and logging runbooks, and an evidence map for your assessor.
  • Where the scope includes security testing, test access controls and the logging path, and record findings and fixes.
  • Your team keeps ownership of the PCI DSS scope decision and the assessor's conclusions; DeployOpen does not issue attestations.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainer work can cover Trino and Spark version upgrades, with the PCI DSS evidence refreshed after each change.
  • Ask how support windows for each Trino and Spark release line are tracked against your change process.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.