Trino vs DuckDB for PCI DSS: which side fits a cardholder data store
A team that must meet PCI DSS v4.0.1 for cardholder data in a warehouse or lakehouse should choose Trino when card data stays in its source systems and is queried in place across many sources, and DuckDB when a bounded extract is pulled into one embedded analysis store. This page covers only the PCI DSS angle; the general Trino vs DuckDB comparison sits on its own page. Neither product makes a deployment compliant by itself, because PCI DSS applies to the whole cardholder data environment, including the people, processes and evidence around the platform. The decision therefore turns on one question: is card data queried in place across many sources, or extracted into one embedded store where the copy must be scoped, protected and evidenced?
With Trino, the scope question concerns the query path. Its documented TLS, authentication, access control and query event listeners are features an operator can enable for access control and logging, but Trino's documentation does not map them to PCI DSS requirements, so the mapping is your job. Ask your assessor which configuration satisfies each in-scope requirement, and confirm where event listener output is sent, who can read it and how long it is kept. Treat every coordinator, worker and connector that can reach the card store as in scope until the assessor agrees otherwise, and test each catalog's access rules with a cardholder data role that is denied by default. See the Trino security overview for the features to map.
With DuckDB, the scope question concerns the copy. DuckDB publishes no PCI DSS attestation. Because it runs embedded inside a host process, there is no separate database server to document, but the host application, the database file and every machine or share where that file lives become components of the cardholder data environment. DuckDB's documented file encryption may support encryption-at-rest requirements, yet the operator owns key generation, storage, rotation and access, and an assessor will examine those controls first. Before any extract is loaded, confirm which fields are needed, where files are written, who can open them, and how deletion of old extracts is evidenced. The DuckDB encryption write-up explains what the feature covers.
Four conditions that decide between the two for cardholder data
Four conditions separate the two options for cardholder data. Each card names the side a condition favors and what changes if that condition flips, so you can test each one against your own environment before you commit to a design.
Where cardholder data lives
Sources queried in place point to Trino. Trino reads data where it already sits through its documented connectors, so cardholder data stays in systems that are already inside your cardholder data environment. An extracted dataset copied into one analysis store points to DuckDB, which keeps the copy in a database file your team controls. If the data is extracted, the scope moves to the store and every copy of it. Check whether an extract would bring account data into a new system that your assessor must scope.
Running a Java cluster
Trino needs a cluster of one coordinator plus workers on 64-bit Linux with a 64-bit Java 25 runtime, minimum 25.0.1. Someone must patch the JVM, the nodes and the catalog configuration, and each node may fall inside the cardholder data environment. DuckDB has no database server to install or patch because it is embedded in a host process. If your team cannot take on that patch cadence, the embedded model shrinks what you operate. Confirm who owns each host and its patch window before you choose.
Trino deployment docsVendor attestation in procurement
Some procurement policies require a vendor attestation for the software itself. DuckDB publishes no PCI DSS attestation, so that evidence line is missing if your policy asks for it. Its documented file encryption may support encryption-at-rest requirements, but your team holds the key management responsibility. Trino's docs do not map its features to PCI DSS, so confirm with the company that distributes your Trino build which assurance documents it holds. If your policy requires a vendor attestation, that condition alone can settle the choice.
DuckDB encryption articleScoping services or one process
Trino's coordinator, workers and source connections are separate services, and each may need its own scoping, logging and hardening. Its documented TLS, authentication, access control and query event listeners give you controls to configure, but you map them to PCI DSS yourself. DuckDB runs inside one host process, which gives an assessor a single component to bound. If many users must reach a shared service, that advantage shrinks, because your host application must then handle access and logging.
Trino security overviewWhat PCI DSS v4.0.1 asks of a warehouse or lakehouse
PCI DSS v4.0.1 is the only active version, so every control your query engine is assessed against should trace back to it. The older versions are gone: v4.0 retired on 31 December 2024 and v3.2.1 retired on 31 March 2024. The standard applies to any entity that stores, processes or transmits cardholder data or sensitive authentication data, and to any entity that could affect the security of that cardholder data environment. A query engine that reads card tables, or a catalog that points at them, falls into the second group even if it never stores a card number. Treat the coordinator, the workers, every catalog and each connected source, such as Iceberg tables or PostgreSQL databases, as in scope until a scoping exercise and your assessor agree on the boundary. The PCI SSC announcement of v4.0.1 sets out the version history.
The control themes a query engine touches fall into four groups. Encryption in transit covers client sessions, coordinator and worker traffic, and connections to each source, so confirm TLS on every hop. Encryption at rest covers lake storage, the metastore, spill files and any local DuckDB database file, where documented file encryption may help, but the operator owns the keys. Access control and logging and monitoring are where Trino's documented authentication, access control and query event listeners apply, although Trino's docs do not map them to PCI DSS, so the mapping is yours to prove. Finally, key and credential management is often the weakest point: catalog passwords, service accounts and internal shared secrets live in configuration and must be rotated, restricted and kept out of logs.
The standard also changed how new controls took effect. Of the 64 new requirements introduced in v4.0, 51 were future-dated and took effect on 31 March 2025. Before that date they were best practices that could be marked not applicable, so a design reviewed earlier may never have addressed them. Pull the v4.0.1 requirement list and tag each item to a named Trino or DuckDB component, the catalog or the host it runs on, plus an owner and the evidence an assessor will request, such as configuration exports and log samples. Escalate untagged items first, because they are the ones without an owner. Confirm the current list and wording on the PCI DSS standard page.
The trust boundary follows the query engine host in DuckDB and the cluster in Trino
The Trino path starts with a client that connects to the coordinator over TLS and authenticates before any query runs. Workers read data in place from sources such as Iceberg, Delta Lake, Snowflake or PostgreSQL, so every connected source sits inside the scope you draw. Query event listeners send logs to your log store. The DuckDB path embeds the engine in a host application process, with cardholder data in an encrypted database file whose key comes from your key management. Check who can reach each host, and where copies of the file and logs end up.
Trust boundary and control points for each setup, from client to key.
How each side meets the PCI DSS control themes as documented
This table sets each side's documented features against seven PCI DSS control themes, written in plain words. Read each cell as what the product provides and what your team must still build, because no row establishes compliance on its own. Trino documents TLS, authentication, access control and query event listeners, but its docs do not map them to PCI DSS. DuckDB documents file encryption with key management left to you and publishes no PCI attestation.
| Requirement theme | Trino as documented | DuckDB as documented |
|---|---|---|
| Encryption in transit | TLS is documented for Trino's server connections. You issue certificates, enforce TLS everywhere and check each connector link. | No network listener to secure, since DuckDB runs inside the host process. Protecting data moved in or out is yours to build. |
| Encryption at rest | Not described in Trino's documented security pages. At-rest protection sits with each connected store, so confirm encryption and key handling for every source. | Documented file encryption may support at-rest requirements. You manage the keys, their storage, rotation and access. |
| Access control | Authentication and access control are documented features. You configure identities and access rules, then test and review them. | No multi-user server. Access depends on who can run the host application and read the database file. |
| Audit logging | HTTP and MySQL query event listeners are documented. The docs do not map them to PCI DSS, so you design retention, review and evidence. | Query logging is not a documented feature. The host application must record queries, access and changes to the database file. |
| Vendor attestation | Apache-2.0 open-source project. Its docs do not map features to PCI DSS, so confirm what evidence your assessor will accept. | No PCI DSS attestation published. Your assessor will look at the host application and deployment around it. |
| Data location | Queries run in place across 37 documented connectors. Confirm where each source, its replicas and temporary files are held. | Data lives in the database file and host process you place. Confirm the file, temporary files and backups stay in approved locations. |
| Patching of runtime | Needs a 64-bit Java 25 runtime, minimum 25.0.1. Release 484 was published October 15, 2026. You own Java and Trino patching. | Embedded in your application, so its version moves with that application. Latest listed release v1.5.6 (September 28, 2026); you test upgrades. |
Where the cardholder data environment boundary sits and what your team still owns
Scope follows the data and the systems that can reach it, so the cardholder data environment (CDE) boundary for a Trino deployment is usually wider than the query engine itself. Under PCI DSS v4.0.1, a system that stores, processes or transmits cardholder data, or that could affect the security of systems that do, is generally in scope. For Trino, that can include the coordinator, every worker, each connector configuration that reaches a card-bearing source such as PostgreSQL, MySQL or Snowflake, any spooling or exchange storage you configure, and the log pipeline that receives query event listener output, because a query or log line can carry card data or identifiers. Confirm each of these with your assessor before you assume any of them is out of scope.
An embedded DuckDB file built from an extracted dataset only narrows scope if card data is removed or tokenized before it is written to that file. DuckDB runs inside a host process, so the boundary moves to that host application, the file system, and every place the file is copied, backed up or shared. DuckDB's documented file encryption may support encryption-at-rest expectations, but your team holds the key management responsibility, and DuckDB publishes no PCI DSS attestation. Ask your assessor whether upstream tokenization, with the token vault kept outside the CDE, is accepted as a scope reduction for the extracts you plan to load, and get that answer in writing before the extract pipeline is built.
Whichever engine you choose, your team owns four things. First, write the scope definition in a document that lists systems, data flows and the decision on whether card data may enter the analytics store at all. Second, keep segmentation evidence current, including network diagrams, firewall rules between the query tier and card data sources, and dated test results. Third, map Trino's documented TLS, authentication, access control and query event listeners to your own PCI DSS requirements, since Trino's docs do not map them to the standard. Fourth, have a qualified assessor confirm the boundary before you rely on it. DeployOpen can prepare the controls and evidence for that review, but the assessor makes the determination.
Trino vs DuckDB for PCI DSS evidence: what an assessor asks for
For Trino, most access and logging evidence comes from features the operator enables. The security overview covers authentication and access control, but the docs do not map these features to PCI DSS, so the requirement mapping is your work.
- Scope and data-flow diagrams: Trino produces none of these. You must draw the cardholder data environment, every catalog that reaches a card-bearing source, and the paths between clients, the coordinator and the workers.
- TLS configuration and certificate inventory: Trino documents its TLS settings, so export the coordinator and worker configuration as evidence. You maintain the certificate inventory (issuers, expiry dates, owners) outside Trino.
- Access control rules and change history: Trino enforces the rules you configure, but the approved rule files and their change history come from your version control and change approvals.
- Query event listener output and retention: The HTTP event listener and the MySQL event listener send query records to a destination you set up. Retention periods, review and protection of those records are your decisions and need a written policy.
- Patch and upgrade records: Release notes list each version, such as release 484, published on October 15, 2026. The deployment docs call for a 64-bit Java 25 runtime, minimum 25.0.1, so record the Trino and Java versions you ran and when each changed.
Confirm that every rule file version, listener destination and retention setting can be produced for the full review period, since assessors sample across it.
DuckDB runs embedded in a host process, so there is no database server to install, patch or log separately. Much of the evidence moves to the application that embeds it. Its documented file encryption can support encryption-at-rest requirements, but key management stays with the operator.
- Scope and data-flow diagrams: DuckDB produces none of these. Draw the host application, each database file it opens, where those files are stored, and every export that copies card-bearing data elsewhere.
- TLS configuration and certificate inventory: Because DuckDB runs inside your host process, TLS evidence mostly covers the host and any remote storage it connects to. Confirm which connections exist in your design, then inventory their certificates.
- Key management procedures for encrypted files: The data-at-rest encryption feature covers encrypted database files, but DuckDB leaves key generation, storage, rotation, custody and access to you. Write these procedures and keep records of who can unlock each file.
- Access and query logging: Document who can open each database file and what the host application logs about queries. Confirm whether DuckDB itself records queries in your version, and otherwise rely on the host's logs.
- Patch and upgrade records: DuckDB v1.5.6 was published on September 28, 2026. Record the DuckDB version each host application embeds, the upgrade dates and the host release that carried each change.
Before committing to a design, confirm who holds the keys, where host logs go and how long they are kept, because an assessor will expect to see these operating across the review period.
Vendor attestation is where the two sides differ most in what they publish. DuckDB publishes no PCI DSS attestation, and Trino's documentation does not map its security features to PCI DSS. Any attestation you rely on must come from a source you can name, date and verify.
- Trino license: The Apache-2.0 license governs use and redistribution of the code. It does not say that any deployment meets a PCI DSS requirement, so treat it as a license term only.
- Distributor or managed service attestation: If you buy Trino through a commercial distributor or managed service, request its current attestation document, the scope it covers and the period it covers, and confirm the scope includes the version you run.
- DuckDB license and ownership: DuckDB is MIT licensed, and the DuckDB Foundation holds its intellectual property. Neither fact is an attestation, so all DuckDB compliance evidence in your file comes from your own environment.
- Your own requirement mapping: The mapping from each PCI DSS requirement to a setting, an owner and an evidence location is produced by you for either tool. Assessors review that mapping first.
- Assessor judgment: Whether the combined setup meets the requirements is decided by your assessor. Neither project can make that call for you.
Request any distributor attestation in writing, with its scope and period, and file it with your own mapping before the assessment starts.
Configuring the chosen side so its PCI DSS evidence exists before assessment
This sequence fixes the card data scope first, then configures Trino or DuckDB so each control leaves a record an assessor can sample. Each step names an owner and the artifact that closes it. Run the steps in order, because the platform controls depend on the scope and data entry decisions made at the start.
Confirm card data scope with the acquirer
The compliance lead asks the acquirer or the assessor which systems, datasets, people and networks fall inside the cardholder data environment, including any copy of card data that a warehouse or lakehouse might hold. Record the answer in a dated scope statement that names each catalog, schema, storage location and log store in the design. The step is done when the acquirer or assessor has confirmed the statement in writing and the platform team has checked it against the architecture. Ask early whether query logs and backups count as in scope, because they often hold card data too.
Decide whether card data enters the store
The data architect and the product owner decide whether primary account numbers reach the analytics store at all. A common option is to tokenize or truncate the value in the source system, so analysts query a surrogate key and the store stays out of scope for those fields. Show each source feeding the store on a data flow diagram and mark every card field as excluded, tokenized or retained, with a reason for each retained field. The step is done when the diagram is approved and the retained fields appear in the scope statement.
Enable TLS and authentication on Trino
Skip this step if the team chose DuckDB. The platform engineer turns on TLS for the client-facing endpoint and for traffic between the coordinator and workers, following the Trino TLS and security documentation. Configure an authentication method the security team has approved, and remove any path that allows unauthenticated queries. Test with a plain HTTP connection and an unauthenticated client, then keep the failed attempts. The step is done when the configuration files and the failed-connection test output sit in the evidence folder.
Set Trino access rules and event listeners
Skip this step if the team chose DuckDB. The security engineer writes access control rules that limit each catalog, schema and table to the roles that need card data. The same engineer then configures query event listeners to send completed and failed query records to a log store with a retention period the security team sets. Trino's documentation describes these features but does not map them to PCI DSS, so the team must write that mapping itself. Run a query as an unauthorized user and confirm it is denied and logged. The step is done when the rule file, listener settings and a denied-query record are stored together.
Encrypt DuckDB files and assign key ownership
Skip this step if the team chose Trino. The platform engineer enables the file encryption described in DuckDB's data-at-rest encryption documentation. The key management team then takes ownership of the key, where it is stored and its rotation schedule, inside the existing key management process. DuckDB publishes no PCI DSS attestation and leaves key management to the operator, so this ownership must be written down. Confirm that the key is stored separately from the database file, and test that an encrypted copy cannot be opened without it. The step is done when the key owner, rotation procedure and test result are recorded.
Restrict host file access and log access
Skip this step if the team chose Trino. The server administrator limits read and write access to the database files to the service account that runs the embedded application, and removes interactive shell access for people who only need query results. DuckDB runs inside the host process, so the host application must write its own record of who ran which query and when. Check DuckDB's documentation for any native audit logging before relying on the host log alone. The step is done when the file permission listings and a sample host access log entry are stored with the evidence.
Test the Trino upgrade path before release
Skip this step if the team chose DuckDB. Before each Trino release goes to production, the platform engineer upgrades a non-production cluster that uses the same TLS, authentication, access rules and event listeners as production. After the upgrade, the team reruns the authentication test, the denied-query test and a check that log records still arrive. A security setting can change or fail to load during an upgrade, so each test matters. The step is done when the change record holds the passed control checks and a tested rollback plan for that release.
Run a dry-run review with the assessor
Before the formal assessment, the compliance lead walks the assessor through the evidence pack. The pack includes the scope statement, data flow diagram, configuration files and access tests, plus log samples, key ownership records or upgrade test results, depending on the side chosen. Ask the assessor which samples they would pull and which items they consider missing. Final sufficiency decisions rest with the assessor. The step is done when every gap has an owner or is closed, and the pack has an index that maps each item to the control it supports.
Trino vs DuckDB for PCI DSS: what buyers ask before hiring help
How much effort does a PCI-scoped Trino setup take?
The effort depends mainly on four drivers: the number of connectors in scope, the number of sources behind them, how keys are managed, and how long logs are kept. Trino's documentation lists 37 connectors, and each one that touches cardholder data needs its own access rules, credentials and logging review. Key management is a separate line item, because your team must decide where TLS certificates and any encryption keys live and who can rotate them. Log retention drives storage and review work, since query event listeners produce records that must be retained and protected. A cluster with two catalogs in scope is a very different job from a shared cluster that exposes many sources to many teams. Ask for the effort breakdown by these four drivers before comparing quotes.
How long does a PCI DSS data platform project take?
The timeline follows the scope agreed in writing, so no general duration applies. It moves with the number of catalogs and sources in scope, whether the setup is a single embedded DuckDB deployment or a multi-node Trino cluster, how many environments must be hardened, and how quickly your teams return approvals and change records. The independent assessor runs its own schedule, which can overlap with the build or follow it. Fixed-scope engagements set milestones before work starts, so ask for dated milestones tied to named deliverables such as the network diagram, configuration baseline and evidence pack.
What does the buyer's team need to provide for the work?
The buyer supplies the decisions and access that only its own staff can give. Name a data owner for each source, since that person decides who may read cardholder data. Ask the network team for segment diagrams, firewall rules and the list of hosts allowed to reach the cluster. Share the assessor's contact early so the evidence format is agreed before collection starts. Provide change records for the current platforms and the approval process, because the assessor will ask how changes to the cardholder data environment are controlled. These inputs are needed in the first phase, since the design depends on them.
Can an internal team configure Trino or DuckDB for PCI DSS alone?
Yes, an internal team can configure both engines, but the report and attestation must come from an independent assessor, and that assessor decides whether the evidence is sufficient. Trino documents TLS, authentication, access control and query event listeners as features an operator can use for access control and logging, yet its documentation does not map them to PCI DSS, so the mapping work falls to your team. DuckDB publishes no PCI DSS attestation. Its documented file encryption may support encryption-at-rest requirements, with the operator responsible for key management. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Check whether your team can run key management, patching and log review over time before deciding.
Which PCI DSS platform costs are one-time and which recur?
Design, configuration, hardening, documentation and the first evidence pack are mostly one-time costs. Patching, upgrades, log storage, key rotation and periodic assessment recur. Who gets paid matters: an implementation partner is paid for the written scope, the assessor is paid for the report, and your staff or cloud provider carry storage and compute. Costs rise with the number of connectors in scope, the volume of query logs retained, the number of environments kept in step, and how often upgrades must be applied. Trino's release cadence is steady, with release 484 published on October 15, 2026 according to the Trino release notes, so plan patch time as a standing cost. Ask for quotes that split one-time and recurring lines.
What should a written quote for this work include?
A written quote should tie every price line to a defined scope, so compare quotes built on the same inputs. Ask for:
- The list of catalogs and connectors in scope, with the number of sources behind each.
- The environments covered, such as development, test and production, and whether each is hardened.
- Deliverables for TLS, authentication, access control, query logging and log retention, with the evidence each one produces.
- The buyer inputs required, including data owner time, network team support and assessor contact.
- One-time costs separated from recurring costs such as patching, upgrades, retainers and retesting.
- Assumptions, exclusions, change control and how extra evidence requests from the assessor are handled.
What does a DeployOpen fixed-scope engagement cover for PCI work?
A fixed-scope engagement covers the work listed in the written scope. DeployOpen plans, implements, customizes, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so for this topic that can include configuring Trino or DuckDB, setting up access control and logging, and preparing the systems, controls and evidence an assessor will review. Security testing of the platform and retainers for upgrades and continuous testing are separate options that can be scoped alongside it. DeployOpen does not issue audit reports, attestations or certifications, and it does not publish a price list, so a quote follows from the written scope. Confirm deliverables, evidence formats and the assessor's requirements in the statement of work before work starts.
Which Trino settings will an assessor ask to see for PCI DSS?
Start with the Trino features an assessor is likely to sample: TLS settings, authentication, access control rules and query event listener output. Trino documents these as features an operator can use, so the evidence is the configuration as deployed plus proof that it works. Keep the TLS and authentication settings from the coordinator and workers, the access control rules, the event listener configuration, and samples of the logs they produce. Check the exact file names and keys against the Trino version you run, such as config.properties, access-control.properties and event-listener.properties, since configuration can change between releases. Map each setting to the PCI DSS requirement it supports in your own document, because Trino's documentation does not do that mapping for you.
How DeployOpen helps prepare, implement or migrate a PCI-scoped setup
DeployOpen plans, implements, hardens and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks. For a Trino or DuckDB setup in PCI DSS scope, that means agreeing the scope in writing, building the configuration and access controls, and preparing the evidence your team and your assessor will review. DeployOpen prepares systems and evidence for compliance assessments, but independent auditors and certification bodies issue the reports.
How we scope
- The written scope lists which Trino or DuckDB components, data stores and access paths sit inside the cardholder data environment.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
- Scoping also records which PCI DSS controls your own teams keep, such as key custody and access reviews.
How we build
- Trino work covers TLS, authentication, access control and query event listener configuration, set up to your written control design.
- DuckDB work covers file encryption settings, key handling agreed with your team, and where database files live.
- Integrations with your identity provider, logging pipeline and backup tooling are built and tested in your own infrastructure.
How we hand over
- Written deliverables can include configuration records, access and logging evidence, and documentation for your assessor.
- Security testing of the setup can run before handover, scoped in the same written agreement.
- Handover is documented so your own team can operate, upgrade and restore the platform after the engagement ends.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial scope.
- Retainer scope should name who patches Trino or DuckDB, who reviews access logs and who owns key rotation.
- Ask for a quote built from the written scope, since DeployOpen does not publish a price list.

