Trino vs Apache Spark for HIPAA: which side fits which workload
A covered entity or business associate with both Trino and Apache Spark on its shortlist for ePHI analytics should start by matching each engine to the workload. Trino fits interactive SQL over data left in place, and its Trino TLS documentation says client connections can use HTTPS with TLS 1.2 and 1.3, with older TLS versions rejected. Spark fits batch, streaming and machine learning pipelines, but its security documentation says authentication is not enabled by default, so your team must switch it on before any ePHI reaches the cluster. The Security Rule in 45 CFR 164.302 applies to covered entities and business associates handling electronic protected health information, so the workload determines which controls you must build around each engine.
Two more questions decide the choice: who holds the BAA position for each path, and who owns the logs and configuration records an assessor reads. Spark is open source, so no vendor signs a BAA for it, and your organization carries the HIPAA obligations directly, including the evidence of how it is configured. Trino is Apache-2.0 licensed, but whether a commercial provider will sign a BAA for its distribution or a managed service is not something this page can state. Confirm that in writing with each provider before ePHI enters the environment. Then decide, for each engine, who owns the coordinator and worker configuration, the authentication settings and the access logs, since those records are what an assessor will ask to see.
Two configuration checks belong in the first review. For Spark, set spark.io.encryption.enabled deliberately: its default is false, and when enabled it encrypts temporary shuffle files, spills and cached blocks on local disk, but the Spark security documentation makes clear it does not cover output data written by applications, so that output needs its own protection plan. For Trino, confirm every client connection uses HTTPS with TLS 1.2 or 1.3, and send event listener output to a log store the security team controls. Record each result. Under 45 CFR 164.306(d), any addressable implementation specification you do not adopt needs a documented reason and an equivalent measure where reasonable. The general comparison of the two engines is covered on its own page, so this section stays with the compliance questions.
Four questions that decide the HIPAA side for your team
Four decisions set the HIPAA side of a Trino or Spark deployment: what the engine runs, which stores hold ePHI, who is accountable, and who keeps the evidence. Answer them in this order, because the workload usually decides where the stores and the evidence sit.
Start with the workload
Trino is built for interactive SQL over tables, so most of its exposure comes from people and BI tools that submit queries. Spark runs batch, streaming and machine learning jobs that may read ePHI, write intermediate files and run under service accounts. List every workload that touches ePHI and assign each one to an engine. Many teams run both over the same tables, so check each pipeline separately for whether it reads raw ePHI, writes copies, or only returns aggregates.
Map where ePHI sits
Trino reads data where it lives through connectors, so the ePHI stores are the source systems and lakehouse tables it reaches, plus any cache or copy you create. Spark can read the same sources, but it writes temporary shuffle files, spills and cached blocks to local disk. The documented spark.io.encryption.enabled setting, which defaults to false, encrypts those local files but does not cover output that applications write. Spark output paths are the gap to close, so document every store, its location and its encryption state for both engines.
Decide who signs the BAA
Spark is open-source software, so no vendor signs a business associate agreement for it, and the organization running it carries the HIPAA obligations. Trino is also an open-source Apache-2.0 project, so confirm in writing whether any commercial distributor, managed service or hosting provider you use will sign one and which parts of the stack it covers. Your organization still owns the Security Rule duties for ePHI in both paths, since covered entities and business associates must comply for electronic protected health information.
Subpart C textOwn the logs and configuration
An assessor will read authentication settings, TLS configuration, query audit records and admin changes, so name one owner for each. Trino documents TLS 1.2 and 1.3 for client connections and rejects older versions, and it can send query events to an HTTP endpoint through an event listener. Spark's security features, including authentication, are not enabled by default, so the configuration file becomes evidence. Export and retain these records outside the cluster and confirm retention periods with your compliance team.
Event listener docsWhat the HIPAA Security Rule asks of a query engine or Spark cluster
The HIPAA Security Rule applies to covered entities and business associates for electronic protected health information (ePHI), so any Trino or Spark deployment that stores, transmits or computes on that data falls within the scope of the organization that runs it. The rule is codified at 45 CFR Part 164 Subpart C, sections 164.302 to 164.318. Its Appendix A lists 18 standards across administrative (164.308), physical (164.310) and technical (164.312) safeguards, and those standards carry 36 implementation specifications: 14 required and 22 addressable. Sections 164.314 and 164.316 add organizational requirements and documentation standards, which is where engine runbooks, data-flow records and retention rules get judged. Start by confirming which of your platforms touch ePHI, because that decides which controls apply to each engine.
Under 164.306(d), an addressable specification still requires a decision you can show. You first assess whether the specification is reasonable and appropriate for your environment. If it is not, you document why, and then you implement an equivalent alternative measure if that alternative is reasonable and appropriate. The decision is made per platform. For example, an illustrative case: a control that suits a Trino cluster serving interactive dashboards may not suit a Spark batch job that runs for hours on ephemeral nodes, so each engine needs its own record. Write down the platform, the specification, the reasoning, the compensating control and the date. Revisit the record when the engine version, cluster manager or connected data source changes, because a decision that was sound on one architecture may not hold on another.
The rule does not name products, so the assessor tests the configuration, access records and documentation of each engine and its data stores. For Trino, that means the TLS settings on client connections, the authentication and catalog access rules, and the query event records you export to a log store. For Spark, the documentation states that security features such as authentication are not enabled by default and that no deployment type is secure by default. Its spark.io.encryption.enabled setting, which defaults to false, covers temporary shuffle files, spills and cached blocks on local disk but not output written by applications, so confirm where job output lands and how it is protected. Ask your assessor which evidence they expect for each engine before you start collecting it.
How Trino and Apache Spark each meet the Security Rule as documented
This table sets each engine's documented position against the technical and contractual requirements in the HIPAA Security Rule. Read each row first for what the documentation says, then for what your team still has to configure, verify and evidence. The main takeaway is that Trino documents TLS for client connections and HTTP and MySQL event listeners, while Spark's security features are off by default and the organization running it carries the HIPAA obligations.
| Requirement | Trino as documented | Apache Spark as documented |
|---|---|---|
| BAA position | No BAA is documented for the open-source project. Ask any commercial provider you use whether it will sign a BAA covering its scope. | No vendor signs a BAA for the open-source project, so your organization carries the HIPAA obligations. |
| Transmission security | HTTPS for client connections with TLS 1.2 and 1.3. Older TLS versions are rejected. Confirm internal traffic settings in your environment. | Security features, including authentication, are off by default. Confirm the transport encryption settings you enable and verify them in your environment. |
| Encryption at rest | Trino queries data where it sits, so at-rest encryption is set by each connected store. Confirm it per connector and storage layer. | spark.io.encryption.enabled defaults to false. When enabled, it covers local shuffle, spill and cached blocks but does not cover application output. |
| Authentication and access control | Confirm the authentication method and access control rules you configure against the Trino security overview before relying on them. | Authentication is not enabled by default, and no deployment type is secure by default. Confirm the authentication and access settings you enable. |
| Audit logging | HTTP and MySQL event listeners can record query events. Confirm which fields they capture and where your team retains them. | Confirm with the Spark project and in your environment which application and event logs you can produce and retain for an assessor. |
| Data location | Queries run in place across 37 connectors, including Iceberg, Delta Lake, Hive and PostgreSQL. Map which connectors touch PHI. | Data location follows the storage and cluster you run Spark on. Confirm where shuffle, spill and job output land. |
| Version currency | Release 484 was published October 15, 2026, and requires Java 25 at a minimum of 25.0.1. Confirm your upgrade path for each release. | Spark 4.2.0 was released July 14, 2026. The 3.5.x extended LTS ends in November 2027 and receives security fixes only. |
Why Spark's defaults leave authentication and local encryption to your team
Spark's security documentation says authentication is not enabled by default and that no deployment type is secure by default. For a HIPAA workload, every safeguard becomes configuration work your team must complete, test and record. Start with the authentication settings for your cluster manager and Spark's web interfaces, including whether spark.authenticate is on and how shared secrets reach each node, and confirm each setting against the security page for the exact Spark version you run. Then map every result to the Security Rule control it supports, such as access control under 164.312(a) and audit controls under 164.312(b). Keep the configuration files, test output and change approvals together, since an assessor will ask how each setting was chosen.
The setting spark.io.encryption.enabled defaults to false. When enabled, it encrypts temporary shuffle files, spills and cached blocks on local disk, but it does not cover output data written by applications. Document it as a control for scratch space only. Output protection then comes from storage and access design you record yourself: which storage holds results, whether that storage encrypts data at rest, who holds read and write permissions on each path, and how intermediate files are removed. Encryption at rest and transmission security are addressable implementation specifications under the Security Rule, so if you rely on an alternative, record why the specification does not fit your environment and which equivalent measure you chose. Ask your storage team for the encryption configuration of each output location, in writing.
Spark still fits when your batch or ML pipelines already run on it and your team can own the hardening and the evidence that comes with it. In that case the work is known: choose a release line you can keep patched, enable authentication and encryption where they apply, lock down the output paths, and keep a dated record of each decision. Spark's versioning policy says the 3.5.x extended LTS receives security fixes only until November 2027, so plan the next upgrade before that window closes. If no one will keep that record after go-live, the same gaps reopen with each upgrade and each new job.
Where ePHI crosses the trust boundary in each setup
Read the diagram from left to right. Analysts and BI clients reach the Trino coordinator over HTTPS with TLS 1.2 or 1.3, and older TLS versions are rejected. The coordinator dispatches work to workers, and the workers read Iceberg, Hive or PostgreSQL data inside your boundary. Query events leave through an HTTP or MySQL event listener to a log store you control, so confirm where that store sits and who can read it. The Spark lane reads the same stores. The spark.io.encryption.enabled setting (default false) covers local shuffle and spill, but application output written to storage is outside that flag's coverage. Each hop is labeled with the party that configures it.
ePHI paths across the trust boundary for Trino and Spark, labeled by configuring party.
Evidence an assessor will request for Trino vs Apache Spark for HIPAA setups
For Trino, the assessor's file usually starts at the coordinator and the client path. You need evidence that client connections use HTTPS with TLS 1.2 or 1.3 and that older TLS versions are refused, as described in the Trino TLS documentation. You also need the authentication method in use and the access rules that decide who can read which catalogs, schemas and tables. Most of this comes from Trino's own configuration, so the work is exporting it, dating it and keeping it under change control.
- Exported TLS and authentication settings: the coordinator and client configuration showing HTTPS, the accepted protocol versions and the authentication method, exported from the running cluster with a date.
- Access rules: the access control configuration for catalogs, schemas and tables, with a change history that shows who approved each rule and when.
- Event listener configuration and sample records: the query event listener settings (Trino documents HTTP and MySQL listeners) plus sample emitted records showing which user ran which query, with the retention period of the destination.
- Version and Java record: the Trino release in use, for example release 484 published on October 15, 2026, and the Java runtime, which must be 64-bit Java 25 with a minimum of 25.0.1.
Check that the exported settings match what the live coordinator reports on the assessment date, because a configuration file in version control does not prove the running cluster loaded it.
Spark evidence carries more weight on your side because the Spark security documentation states that authentication is not enabled by default and that no deployment type is secure by default. The assessor will look for the settings you changed from the defaults, and for proof of what the encryption flag does and does not cover. Apache Spark is open source software, so no vendor signs a BAA for it, and the evidence set is produced entirely by the organization running it.
- Spark configuration showing authentication: the deployed configuration showing authentication enabled and how applications and users authenticate, exported from the environment rather than copied from a template.
- Encryption flag and its scope: the value of
spark.io.encryption.enabledon every cluster, with a note that it covers temporary shuffle files, spills and cached blocks on local disk, but does not cover output data written by applications. - Output storage policy: the policy and storage settings for where application output lands, including encryption at rest, access permissions and retention, documented as a separate control from the Spark flag.
- Cluster access list: who can submit jobs, read logs and reach the cluster manager, with an approval record for each entry and the date of the last access review.
- Version record: the Spark release in use, for example 4.2.0 released on July 14, 2026, or the 3.5.x line, whose extended LTS receives security fixes only until November 2027.
Confirm the encryption flag on every cluster, including ad hoc and notebook clusters, because one unconfigured cluster falls outside the record.
Some evidence applies to both engines and usually comes first in an assessment: where ePHI lives and what you decided for each specification. The Security Rule sets standards with required and addressable implementation specifications. For an addressable one, you must document whether it is reasonable and appropriate and, if you do not adopt it, what equivalent measure you put in place. The eCFR text of Subpart C of Part 164 sets out these obligations, and the engine exports above only support them when they are tied to these records.
- Data-location map: a diagram and table of every store, catalog and cluster that holds ePHI, including temporary and output locations, with the region and the owner of each.
- Addressable specification decisions: a written decision for each addressable implementation specification under 164.306(d) that applies to the setup, recording whether it was adopted, why, and any equivalent alternative measure.
- Policies and procedures: the policies, procedures and documentation required under 164.316, covering the query and processing engines, access reviews and change control, each with a review date.
- Vendor BAA or attestation: any BAA or independent attestation you hold from a vendor in the stack. Trino and Spark are open-source projects, so ask any commercial support provider whether it signs a BAA and do not assume one exists.
Confirm with your assessor which format they expect for the decision records, and note that DeployOpen prepares this evidence while independent assessors issue any report or attestation.
How to configure Trino for a HIPAA workload, in order
This sequence takes an organization from confirming its HIPAA role to a filed evidence set for a Trino deployment, with Spark addressed only if it stays in the pipeline. Each step names who acts and the check that closes it, so the decisions an assessor will ask about are written down before the first production query. Confirm vendor positions and environment details in your own infrastructure as you go.
Confirm your role and BAA positions
Compliance and legal leads decide whether your organization is a covered entity or a business associate under the Security Rule (45 CFR 164.302), then list which datasets contain electronic protected health information and which Trino catalogs or Spark jobs touch them. Ask each commercial provider in the stack for a written position on a business associate agreement for each product in scope. Apache Spark is open source, so no vendor signs a BAA for it, and the organization running it carries the HIPAA obligations. Done when a signed scope document and a BAA position for each product are on file.
Pin a supported Trino release
The platform team selects one Trino release, records it in the change register, and does not pull floating latest images. Release 484 was published on October 15, 2026, after releases 483 (July 17, 2026) and 482 (June 25, 2026), so check the release notes for the support window of the line you choose. Trino's deployment documentation requires a 64-bit Linux system and a 64-bit Java 25 runtime, minimum 25.0.1, so the Java build is pinned alongside the server. Done when the Trino version, Java build and operating system image are written into the system record and the deployment pulls only that tagged release.
Enable HTTPS with TLS 1.2 and 1.3
The platform engineer configures client connections to use HTTPS, following the Trino TLS guide, so that clients negotiate TLS 1.2 or 1.3 and older versions are rejected. Named owners manage the certificates, including renewal, and the team confirms in the same guide how internal node-to-node traffic is protected. Test with a client that negotiates each permitted version, then with one that requests an older version, which should fail. Done when the test output and the certificate inventory are filed in the evidence folder.
Configure authentication and access rules
The security engineer sets the authentication method and access rules by following the Trino security overview, mapping each role to only the catalogs, schemas and tables that role needs. This supports the access control standard in 45 CFR 164.312. Admin access and the identity provider integration are documented as separate items with named approvers. Test that a user outside a role is denied access to a protected table, and keep the rule file under version control. Done when the policy file, the test queries and the approvals are filed together and referenced in the access review.
Send query events to a store you control
The platform team enables an event listener so that query activity is recorded for audit review. Trino provides an HTTP event listener and a MySQL event listener, and either can send events to a store your organization runs and protects. Confirm in each listener's documentation which fields it records, such as the user, the statement and the outcome, before relying on it for audit. Set retention and access controls on the store to match your audit log policy. Done when a test query appears in the store with the user and timestamp visible.
Map connector data at rest and spill paths
The data owner lists each connector in use, such as Hive, Iceberg, PostgreSQL or Snowflake, and records where that source stores its data, who operates it and which agreement covers it. The platform engineer also records where caches, temporary files and spill data land on coordinator and worker disks, and whether those locations are encrypted. Do not assume that encryption at the source extends to these local paths, and verify each location on the hosts. Done when the data map lists each connector, its storage owner, and each local path with its encryption status.
Encrypt Spark local disk if Spark runs
If Spark stays in the pipeline, the data platform team sets spark.io.encryption.enabled to true, because its default is false. This setting encrypts shuffle files, spills and cached blocks on local disk, but it does not cover output data that applications write, so that output needs its own encryption and access controls. Spark 4.3.0's security documentation says authentication is not enabled by default and that no deployment type is secure by default, so enable and document authentication explicitly. Done when the Spark configuration is in version control and a test job's local disk and output locations are both recorded in the data map.
Document decisions and collect the evidence set
The compliance lead writes down each addressable implementation specification decision, including why a measure was not adopted and which equivalent measure was used, as 45 CFR 164.306(d) requires. Map each item to its standard in the Security Rule's technical, administrative and documentation sections (164.312, 164.308 and 164.316). Collect what an assessor will ask for: the scope document, BAA positions, version records, TLS test output, access policy and tests, event listener records, the data map and the Spark configuration. Done when an assessor can trace each decision to a document and a test result.
Questions buyers ask before hiring help for Trino vs Apache Spark for HIPAA work
How much effort does a HIPAA Trino or Spark project take?
The effort depends mostly on how many systems hold electronic protected health information (ePHI) and how many of them the query layer touches. A setup with one lakehouse and a few connectors is a much smaller job than an estate with a dozen ePHI stores, each with its own catalog, credentials and logging. The main drivers are:
- Connector count: Trino's documentation lists 37 connectors, and each one you enable needs its own access, TLS and logging review.
- ePHI stores: every warehouse, object bucket and cache that holds ePHI falls inside the evidence scope.
- Whether Spark stays: if Spark keeps running over the same tables, its authentication, encryption and output paths need the same review.
- Log sinks: query logs, event listeners and SIEM forwarding each need retention and access decisions.
- Evidence scope: how many controls you must prove, and how far back the logs must go, sets the volume of documentation.
What roles does a HIPAA platform project need from my team?
At minimum, the work needs three named people from your side: a security owner, a platform administrator and a data owner who signs off. The security owner sets the control scope, approves risk decisions and owns the policy documents. The platform administrator provides access to clusters, identity provider settings, network paths and logging infrastructure, and approves changes during the build. The data owner confirms which datasets contain ePHI, who may query them and what retention applies, and signs off that the access model matches the business need. Legal or privacy staff may also need to review contract terms. Plan for these people to stay available through review cycles, not only at kickoff, because addressable implementation specifications under 45 CFR 164.306(d) require a documented decision from your organization.
Can our own team set up HIPAA controls for Trino without a partner?
Yes, if your team already has the skills and review capacity to build the controls and to check them independently. Your engineers need working knowledge of Trino's TLS settings, authentication, access control and event listeners, plus Spark's security settings if it stays in service. Check these before you decide: whether someone outside the build team can review the configuration; whether you have a control matrix mapped to the Security Rule's technical safeguards; whether someone owns patching, since Trino ships new releases often (release 484 came out on October 15, 2026); and whether you can produce evidence on demand, such as access reviews and log samples. Trino's documentation says client connections can use HTTPS with TLS 1.2 and 1.3 and that older versions are rejected, but you should confirm that setting on your own cluster. If any check fails, a scoped review by a second party is a reasonable middle option.
Does DeployOpen sign a BAA or certify HIPAA compliance?
No, DeployOpen does not certify HIPAA compliance and does not issue audit reports or attestations, because independent auditors and certification bodies perform that work. What DeployOpen does is prepare the controls, configurations and evidence that your compliance team and assessors review. Whether DeployOpen signs a business associate agreement is a contract term, so confirm it in writing before work starts. Open-source Apache Spark has no vendor who signs a BAA for it, so the organization running Spark carries the HIPAA obligations for that layer. Check whether each commercial product in your stack offers a BAA. The HHS FAQ on certifying compliance is a useful read for your legal team.
How long does a HIPAA readiness engagement take?
Timing is set in the written fixed scope, which states the deliverables, systems and milestones before work starts. This page does not give a duration, because the schedule depends on the drivers covered above: how many connectors and ePHI stores are in scope, whether Spark stays in service, how many log sinks need configuring and how quickly your owners can review decisions. Ask for milestones in the scope document, each tied to a deliverable, and ask which of your reviews the calendar depends on. If you have a change freeze or an audit date, put it in the scope so the work is sequenced against it. Ongoing support, upgrades and continuous testing are available as retainers, so the build and the ongoing work can be scheduled separately.
What should a quote for Trino HIPAA work include?
A usable quote ties the price to a written fixed scope and lists the scope, systems, deliverables, evidence list, and retest and retainer options. Ask for each part:
- Scope: the Trino clusters, catalogs, Spark jobs and ePHI stores included or excluded, with the control set the scope maps to.
- Systems: each connector, identity provider, log sink and network path to be configured, with a named owner.
- Deliverables: configurations, documentation and a control-to-evidence mapping, each stated as a named artifact.
- Evidence list: the logs, access reviews and exports that will be handed over, and their format.
- Retest and retainers: whether a retest after fixes is included, and the terms for ongoing support, upgrades and continuous testing.
DeployOpen does not publish a price list, so the quote follows from the written scope. Ask which costs are one-time and which recur, and confirm that infrastructure costs for the Trino and Spark environments, which run in your own cloud accounts or data centers, appear separately from the services fee.
How DeployOpen prepares, implements and documents either option for HIPAA
DeployOpen plans, implements, hardens and documents self-hosted Trino or Apache Spark inside your own cloud accounts, data centers or air-gapped networks. The work starts with a written scope that names the HIPAA safeguards each option must support, then moves through build, testing and handover. DeployOpen prepares systems, controls and evidence for your assessment, but independent auditors issue any audit report or attestation.
How we scope
- Written scope that names the Trino or Spark components, data stores and environments in use
- Fixed-scope engagement: deliverables, timelines and responsibilities agreed in writing before work starts
- Scope maps each Security Rule safeguard to an owner, so open gaps show up early
How we build
- Configures Trino client connections over HTTPS with TLS 1.2 or 1.3, rejecting older versions
- For Spark, enables authentication and encryption explicitly, since neither is on by default
- Adds application-level controls for output data, since Spark's local-disk encryption does not cover it
How we hand over
- Written configuration baseline, runbooks and a control-by-control evidence map for your assessor
- Because Spark is open source with no vendor BAA, handover records who carries each HIPAA obligation
- Handover walkthrough for engineers, security and compliance staff, using your own environment as the example
How we support
- Ongoing support, upgrades and continuous testing are available as retainers
- Security testing of the deployed platform, with findings tracked to fixes
- Upgrade planning follows the vendor's release and support windows, which you should confirm before you commit

