Trino vs DuckDB for HIPAA: which side fits your ePHI scope?
Trino fits when several sources or many users need one governed query layer, and DuckDB fits when one application or analyst works on a bounded extract the host already controls. This page covers only the HIPAA angle of that choice: what the Security Rule asks of systems holding electronic protected health information (ePHI), and what each side documents about meeting it. The general Trino vs DuckDB comparison sits on its own page and is not repeated here. The supplied facts include no business associate agreement (BAA) for either Trino or DuckDB, so any vendor agreement must be confirmed directly with the vendor before ePHI enters either system.
The Security Rule applies to covered entities and business associates handling ePHI, so the first question is which safeguards the query layer can evidence itself. Trino's documentation describes HTTPS client connections using TLS 1.2 and 1.3, with older TLS versions rejected, and you should verify that setting on your own coordinator and worker configuration. Trino's event listener documentation covers sending query events to an HTTP endpoint or a MySQL database, which can feed the audit records your team needs to show who read which patient data. Map each control to the place where it lives: Trino enforces access only at the query layer, so the controls on each connected catalog, such as storage encryption and source-level permissions, need their own owners and evidence. See 45 CFR Part 164 Subpart C for the standards your assessor will read against.
DuckDB runs embedded in a host process, so there is no database server to install, update or maintain, but there is also no vendor to sign a BAA. Your organization carries the HIPAA obligations for every file it creates, copies or deletes. DuckDB 1.4.0 added database encryption using AES-256, in GCM mode by default and CTR optionally. The DuckDB encryption post says the main header stays plaintext, the remaining headers and blocks, the write-ahead log and temporary files are encrypted, and the encryption does not yet meet the official NIST requirements, with key handling left to the user. Treat that as a documented gap: decide who manages keys, record the risk analysis, and confirm with your assessor whether any alternative measure under the addressable specifications in 45 CFR 164.306(d) is reasonable before loading an ePHI extract.
What the HIPAA Security Rule asks of a Trino or DuckDB deployment
The HIPAA Security Rule describes outcomes and documentation duties for electronic protected health information. It does not name a product, so the same Trino or DuckDB setup can pass or fail depending on how the organization runs it. The four cards below cover who is bound, how the safeguards are organized, how addressable controls must be justified and what written evidence the rule expects.
Who the rule binds
The rule applies to covered entities and business associates for electronic protected health information (45 CFR 164.302). Covered entities include health plans, health care clearinghouses and covered health care providers. For a Trino or DuckDB project, the first question is which party holds the data and runs the queries. An analytics team inside a covered entity is bound directly. A vendor or consultant that touches the data on its behalf is usually a business associate. DuckDB has no vendor to sign a business associate agreement, so the organization running it carries those obligations itself.
Subpart C textThree safeguard families
Appendix A to Subpart C groups its 18 standards into administrative, physical and technical safeguards (164.308, 164.310 and 164.312). For a query engine, the technical family covers access control, audit controls, integrity, authentication and transmission security. The administrative family covers risk analysis, workforce access and contingency planning. The physical family reaches the hosts, disks and backup media where Trino workers or DuckDB files sit. Map each safeguard to a named component, such as the coordinator, the catalog credentials or the file store, before you assess.
Appendix A matrixAddressable specifications need documented reasoning
The 36 implementation specifications split into 14 required and 22 addressable. A required specification must be implemented. For an addressable one, you must first assess whether it is reasonable and appropriate for your environment. If it is not, you document why and implement an equivalent alternative where that is reasonable. Addressable does not mean optional, so the assessment itself becomes evidence. For a DuckDB deployment, expect an assessor to test the encryption decision, since DuckDB's post says its encryption does not yet meet the official NIST requirements and leaves key handling to you.
Organizational and documentation standards
Sections 164.314 and 164.316 add organizational standards for business associate arrangements and documentation standards for policies, procedures and the records showing they are in use. Documentation must be written, reviewed and retained. For a Trino or DuckDB project, that means written configuration baselines, periodic access reviews, change records for every upgrade and retained audit logs. Confirm the retention period in the rule text with your compliance lead, and agree early which records an assessor will request.
How Trino and DuckDB HIPAA controls compare as documented
This table sets the documented HIPAA-relevant controls for Trino and DuckDB side by side, grouped by the Security Rule area each one supports. Read each row first as what the vendor documents, then as what your organization must still configure, test and evidence. The main takeaway is that Trino gives you a server with documented TLS and event logging to configure, while DuckDB places encryption key handling, access and logging in your host application.
| Requirement | Trino as documented | DuckDB as documented |
|---|---|---|
| Transmission security (45 CFR 164.312(e)) | Client connections can use HTTPS with TLS 1.2 and 1.3; older TLS versions are rejected. | No separate server process, so transport security sits with the host application. |
| Encryption at rest (45 CFR 164.312(a)(2)(iv)) | Confirm storage encryption on each connected source, since Trino's own at-rest encryption is not documented in the pages reviewed here. | Added in DuckDB 1.4.0: AES-256 (GCM default, CTR optional); main header stays plaintext, WAL and temp files encrypted. |
| Key handling | Key management depends on your deployment; confirm how keys for connected sources are stored and rotated. | DuckDB says key handling is the user's responsibility and its encryption does not yet meet official NIST requirements. |
| Access control (45 CFR 164.312(a)(1)) | Confirm the access control mechanisms in the Trino security overview for your chosen version. | Embedded in your host process, so access control falls to the host application and file permissions on the database file. |
| Audit controls (45 CFR 164.312(b)) | HTTP and MySQL event listeners send query events to a destination you choose; confirm the fields you need. | Confirm whether DuckDB emits audit events; otherwise query and access logs must come from the host application. |
| Business associate agreement | Apache-2.0 open-source project with no vendor to sign a BAA; confirm terms with any commercial distributor or managed service. | MIT-licensed embedded database with no vendor to sign a BAA; your organization carries the HIPAA obligations. |
| Version tracking | Releases 482 (June 25, 2026), 483 (July 17, 2026) and 484 (October 15, 2026); confirm which your platform runs. | v1.5.6 released September 28, 2026; pin and test the version your host application embeds. |
| Deployment footprint | Coordinator and workers on 64-bit Linux with Java 25 (minimum 25.0.1); more servers to harden, patch and evidence. | No separate server to install, update or maintain; it runs inside your host process, so fewer components to assess. |
Where ePHI flows and where the trust boundary sits for each option
The diagram starts with analysts inside the organization's network, who reach the Trino coordinator over TLS. The coordinator sends work to the workers, which read lakehouse or database sources through connectors. Query events go to an event listener and a log store the organization controls. The DuckDB path starts at the host application, which reads and writes an embedded database file in the same process. Each backup and exported copy of that file is an ePHI store with its own controls, and the organization holds the key for the file. Check where Trino's TLS certificate keys sit and where every copy lives.
Each path's data movements and every ePHI copy inside the organization's network.
Trino vs DuckDB for HIPAA: the evidence an assessor will ask for
Trino runs as a long-lived service with one coordinator and workers, so most of its evidence is configuration and operating records taken from the running cluster. Its Trino TLS documentation says client connections can use HTTPS with TLS 1.2 and 1.3 and that older TLS versions are rejected, so an assessor can ask for the exported setting and a dated test that proves it. The security overview is the starting point for the authentication and authorization records.
- TLS configuration export: the HTTPS settings on the coordinator, the TLS versions allowed and the certificate rotation log, exported from the live cluster with a dated test.
- Authentication and authorization settings: the configured authenticators and access rules, with a change record showing who may edit them.
- Event listener targets: where query events are sent, such as an HTTP endpoint or a MySQL database, with retention and the review schedule for those logs.
- Data flow and inventory map: each catalog, the source system behind it (for example Hive, Iceberg or PostgreSQL) and the tables that hold ePHI.
- Key and credential rotation records: rotation history for the TLS keys and for the credentials each connector uses to reach its source.
Before the assessment, confirm that every connector's credentials appear in the export, because a catalog configured outside the reviewed files is easy to miss.
DuckDB is embedded in a host process, so there is no database server to log, patch or export. The evidence sits with the application, the host and the database files. The project is MIT-licensed and there is no vendor to sign a business associate agreement, so the organization carries the HIPAA obligations wherever it runs DuckDB against ePHI. DuckDB 1.4.0 added AES-256 encryption, with GCM by default and CTR optionally, but the DuckDB encryption post says the encryption does not yet meet the official NIST requirements and that the user is responsible for key handling.
- Encryption configuration record: which database files are encrypted, the cipher mode chosen and the DuckDB version in use, recorded for each file.
- Key handling procedure: where keys are generated, who holds them, how they are supplied when a database opens and how they stay out of scripts, notebooks and logs.
- Plaintext exposure statement: the post says the main header stays plaintext while the other headers and blocks, the write-ahead log and temporary files are encrypted. State that in the risk analysis so no reviewer assumes full-file encryption.
- Host and file inventory: each laptop, container, server or pipeline job that opens a database holding ePHI, and each copy of the database file, with its location and access controls.
- Access records from the host: because no server records connections, evidence of who opened which file comes from the application, the operating system or the orchestrator that runs the job.
Ask the team to demonstrate encryption and key handling on the exact DuckDB version in production, and confirm the current NIST position with the project before you rely on it.
Some artifacts belong to the organization whichever engine it picks. The Security Rule sets 18 standards with 36 implementation specifications across administrative, physical and technical safeguards, and 22 of those specifications are addressable. For each addressable one, the entity must assess whether it is reasonable and appropriate, document the decision and, if it is not, implement an equivalent measure where that is reasonable and appropriate (45 CFR 164.306(d)). These are the items to hold for either engine.
- Documented risk analysis: an accurate assessment of threats and vulnerabilities to ePHI in each system, refreshed when a platform, connector or data flow changes.
- Addressable-specification decisions: for each addressable specification that applies, the written assessment, the decision and any equivalent measure, kept for both engines.
- Business associate agreements: one for each party that creates, receives, maintains or transmits ePHI, including any hosting provider or implementation partner. Confirm this before any data flows.
- Backup and restore test results: dated restore tests against the actual catalog configuration or database files, with who ran them and what was recovered.
- Access reviews and incident procedures: periodic reviews of who can query or open ePHI, plus written steps for detecting, responding to and reporting a security incident.
Read the HHS FAQ on certification before assuming an outside certificate is expected. DeployOpen prepares these controls and evidence but does not issue certifications or audit reports; independent auditors and certification bodies do.
Why DuckDB copies of ePHI widen the audit boundary
An embedded engine removes a server from the audit boundary, but it multiplies the places ePHI can sit. DuckDB runs inside the host process, so there is no database daemon to document. Every database file, every export, every temporary file and every developer laptop that opens a copy becomes an in-scope store. These copies are easy to create during analysis: a CSV pulled for a one-off check or a Parquet extract saved to a shared folder is still ePHI if it carries patient identifiers. Before approving DuckDB for healthcare work, list every location a copy can land, including the write-ahead log and temporary files, and confirm that your risk analysis covers each one.
Trino's boundary is more contained because its components are named and finite. The coordinator and workers form the query cluster, connectors reach each source system where the data already lives, and event listeners send query records to destinations you choose, such as the HTTP event listener or the MySQL event listener. Client connections can use HTTPS with TLS 1.2 or 1.3, and older TLS versions are rejected. Every one of those components, plus each connected source and each log destination, is still in scope. The review task is to confirm the event listener destinations, catalog credentials and TLS settings on each hop, and to confirm that each connected source is covered by its own controls.
DuckDB 1.4.0 added database encryption using AES-256, with GCM as the default mode and CTR available as an option. The DuckDB team's post on encryption says the main header stays in plaintext while the remaining headers and blocks, the write-ahead log and temporary files are encrypted. The same post says the encryption does not yet meet the official NIST requirements and that the user is responsible for key handling. Ask your assessor how they treat that statement before you rely on the feature for ePHI. If you use DuckDB encryption, or another measure in its place, record the decision under 164.306(d), which requires you to document why an addressable specification is not adopted and to implement an equivalent alternative where reasonable and appropriate.
Setting up Trino for HIPAA scope, step by step
This sequence turns a Trino deployment into a documented HIPAA scope, with each step leaving a record an assessor can read. Work through it before any electronic protected health information (ePHI) query reaches the cluster, because the logging and key steps depend on knowing which sources hold ePHI.
Inventory ePHI sources and connectors in use
The data team lists every catalog configured on the coordinator and every connector it loads, such as Hive, Iceberg, PostgreSQL or MySQL, then marks each table or source that holds ePHI. Trino's documentation lists 37 connectors, so the inventory should cover only the ones your deployment actually configures. Record each source's owner and location, and ask each hosting provider whether it will sign a business associate agreement. The output is a signed inventory that the security officer reviews and uses as the scope for the Security Rule risk analysis.
Enforce TLS 1.2 or 1.3 on clients
The platform engineer enables HTTPS on the coordinator and sets it to accept only TLS 1.2 and 1.3, following Trino's TLS guide. The documented setup rejects older TLS versions, but the team must still review the certificate chain and cipher configuration on every client path. Confirm whether traffic between coordinator and workers is also encrypted in your deployed version. The output is a test log showing a TLS 1.2 client connects, an older-protocol attempt fails, and the configuration sits in version control.
Choose and document authentication and authorization
The security architect reads Trino's security overview for the exact version in production, then selects the authentication method and access control approach that match your identity provider and role model. Record which users and service accounts can read each catalog and why each choice was made. Addressable implementation specifications in the Security Rule require a documented decision when an alternative measure is used, so keep this record with the risk analysis. The output is a written access design, reviewed by the security officer and mapped to the source inventory from the first step.
Send query events to your own log store
The platform team configures either the HTTP event listener or the MySQL event listener from Trino's documentation to send query events to a log store that the organization operates. Pick the listener that matches the store your audit team already monitors. The compliance owner sets and approves the retention period in writing, based on your policy and counsel. Run a test query as a known user and confirm the event contains the fields your audit team needs. The output is a sample event record and the approved retention setting, both filed with the audit evidence.
Document key handling for each source
For each source in the inventory, the data owner records where data is encrypted at rest, which key management service or tool holds the keys, who can rotate and revoke them, and how keys are backed up. Trino queries data in place, so this record covers the storage layer of each connected system, such as the object store behind a lakehouse table or the database itself. Ask each provider for its encryption and key documentation. The output is one key-handling record per source, signed by the owner and linked from the inventory.
Pin Java 25.0.1 runtime under written plan
The platform engineer installs a 64-bit Java 25 runtime at version 25.0.1 or later on every coordinator and worker, as Trino's deployment documentation requires, and records the exact build in configuration management. The team then writes an upgrade plan that names the target Trino release, the reviewers, a test run against staging copies of the ePHI sources, and a rollback path. The Trino release notes show several releases in 2026, including release 484 on October 15, 2026, so the plan should define how each release is assessed. The output is a version manifest for every node and an approved plan filed with the change records.
Check which steps change for DuckDB
If the team chooses DuckDB instead, the inventory and key-handling steps still apply, but the listener and TLS steps change. DuckDB runs embedded in a host process, so there is no network endpoint to secure with TLS and no event listener to configure, and the host application's authentication, access logs and TLS settings take their place. Key handling moves to the file level: DuckDB 1.4.0 added AES-256 database encryption, but the DuckDB team says the user is responsible for key handling and that the encryption does not yet meet the official NIST requirements. Document that gap in writing before choosing.
What buyers ask before hiring help for HIPAA on Trino or DuckDB
How much effort does HIPAA work on Trino or DuckDB take?
Effort depends mostly on how widely ePHI moves and how many people touch it. The main drivers are the number of ePHI sources connected to Trino or DuckDB, the number of users and roles that need access, whether logs already reach a SIEM, whether a current risk analysis exists, and how many DuckDB copies sit on laptops, build servers or in exports. Each source needs its own access mapping, audit trail and encryption decisions. Teams with a documented risk analysis and central logging start from a shorter list than teams that find ePHI in shared files during the project. Ask for the scope to show each driver as a separate line.
How long does this HIPAA work take, and what sets the timeline?
Timing depends on the scope agreed in writing, so no duration can be given here. The main drivers are the number of ePHI sources, the state of any existing risk analysis, the number of decisions your compliance, legal and data owners must make, and how much testing and evidence collection follows the build. Trino adds work on cluster layout, identity integration and TLS configuration. DuckDB adds work on locating and securing each copy. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for milestones tied to deliverables and a list of the dependencies on your side.
What does the HIPAA work need from our own staff?
The work needs named owners on your side before it starts. Security or compliance must decide what counts as ePHI in scope and which addressable specifications are reasonable. If one is not implemented, the organization must document why and put an equivalent measure in place where that is reasonable, as 45 CFR 164.306(d) requires. IT must provide access to data sources, the identity provider, logs and networks. Data owners must approve roles, retention and sharing rules. Legal or privacy staff must review the business associate position for each vendor. These decisions stay with your organization, while DeployOpen prepares the systems and evidence for review.
Can our own team do the HIPAA Security Rule work?
Possibly, if your team already maps regulations to systems, but most teams need skills in several areas. Appendix A to Subpart C of 45 CFR Part 164 lists 18 standards across administrative, physical and technical safeguards, with 36 implementation specifications: 14 required and 22 addressable. Sections 164.314 and 164.316 add organizational and documentation requirements. The work covers risk analysis, identity and access design, TLS and key management, audit logging, hardening of Linux hosts, backup, and written procedures an assessor can test. Map each person to each skill and to the hours they can commit before deciding to build in-house.
Will Trino or DuckDB vendors sign a business associate agreement?
No, self-hosted open-source software cannot sign a business associate agreement because there is no vendor party to sign it. Trino is Apache-2.0 licensed and DuckDB is MIT licensed, so your organization runs the software and carries the HIPAA obligations for its deployment. DuckDB is an embedded database with no vendor to sign a BAA. A commercial provider, such as a managed Trino service, a support contract or a hosted environment, must be confirmed in writing. Ask whether it will sign a BAA, which services it covers and how it handles subcontractors. Confirm the same for any DeployOpen services before work starts.
Does DeployOpen certify that we are HIPAA compliant?
No. DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, such as access design, logging, configuration records and documentation. Independent auditors and certification bodies issue any reports. HHS addresses the question of certifying compliance in its 2003 FAQ on certification, and your assessor or counsel should confirm what your organization must produce. Ask for the evidence list in the written scope so you know what the assessor will receive and who signs each document.
How do we get a quote for HIPAA help?
A quote follows from a written scope. DeployOpen does not publish a price list, so the agreed scope is the basis for pricing. Cost comes from people's time: planning, implementation, integration with your identity and logging systems, hardening, backup, documentation and testing. Most of this is one-time project work. Ongoing support, upgrades and continuous testing are available as retainers and recur. Trino is Apache-2.0 licensed and DuckDB is MIT licensed, so the budget is mainly services, infrastructure and staff time. The drivers listed in the effort answer move the cost up or down. Ask for itemized deliverables, the assumptions about sources and DuckDB copies, whether retesting is included and the retainer terms.
How DeployOpen helps prepare either option for HIPAA review
DeployOpen plans, implements and documents self-hosted Trino or DuckDB inside your own cloud accounts, data centers or air-gapped networks, so the controls and evidence sit where your compliance team can review them. We do not issue HIPAA attestations or certifications; independent auditors do. The work below follows the same arc for either option, and the written scope decides which evidence gets built first.
How we scope
- The written scope names the platform, deployment model and data sources in view, agreed before work starts.
- Scope maps the Security Rule standards in 45 CFR 164.308 to 164.316 to named controls, owners and evidence items.
- Fixed-scope engagements set deliverables and timelines in writing, and ongoing support is available as a retainer.
How we build
- Configure Trino client connections over HTTPS with TLS 1.2 or 1.3, since Trino's documentation says older versions are rejected.
- We configure DuckDB encryption and document the key handling process, which DuckDB's team says remains the user's responsibility.
- Enable query audit records with Trino's HTTP or MySQL event listeners, sent to your own log store.
How we hand over
- A written evidence index mapping each addressable Security Rule specification to what was assessed, decided and documented.
- Documented reasons for any addressable specification you decline, with an equivalent alternative measure where one is reasonable.
- A DuckDB limitation note recording that its own post says the encryption does not yet meet official NIST requirements.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for the platform you run.
- Re-check the platform after each upgrade, because a version change can alter settings you documented.
- Confirm with your assessor which artifacts they expect, since DeployOpen prepares evidence but does not issue attestations.
Sources and further reading
- Trino security overview ↗
- Trino TLS ↗
- Data-at-Rest Encryption in DuckDB ↗
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information, eCFR ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix, eCFR ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗

