ClickHouse vs Trino for HIPAA and healthcare

Teams under HIPAA need to know which side documents a BAA and which leaves every safeguard to them. This page covers only the HIPAA angle; the general comparison is on its own page.

On this page

ClickHouse vs Trino for HIPAA: which side fits which data setup

If ePHI has to reach an analytics layer, the documented BAA path for ClickHouse applies to designated ClickHouse Cloud services on the Enterprise plan. Self-hosted ClickHouse or Trino leaves the whole HIPAA program with your organization, including the risk analysis, access control, audit logging and the business associate agreements in your own chain. The decision turns on two questions: whether ePHI is stored in ClickHouse or queried in place by Trino, and who signs the BAA. This page covers only the HIPAA angle. The general ClickHouse vs Trino comparison, covering architecture and workloads, sits on its own page and is not repeated here. Start with the ClickHouse Cloud compliance overview, which points to the onboarding steps for a BAA.

If ePHI lands in ClickHouse tables, the ClickHouse side carries storage, backup, retention and deletion controls, and the BAA must cover the exact Cloud services that hold that data. Ask the vendor in writing which services are designated and confirm that your region and deployment type are among them. If Trino queries ePHI in place from object storage or a source database, the data stays in systems your team already controls, but Trino becomes an access point that must meet the Security Rule. Enforce TLS on client connections, since Trino's TLS settings support TLS 1.2 and 1.3 and reject older versions. Trino's connector list includes ClickHouse, so a mixed setup puts both products in scope and every source needs a documented owner and access path.

Whoever signs the BAA determines which safeguards you can point to in the assessment. Covered entities and business associates both must comply with the Security Rule for electronic protected health information, and the technical safeguards in 164.312 and administrative safeguards in 164.308 cover access control, audit controls and transmission security. Of the 36 implementation specifications, 22 are addressable, so for each one you must assess whether it is reasonable and appropriate, document why if it is not, and implement an equivalent measure. Ask each vendor for the designated services list, the BAA scope and log retention, then build the evidence file: data flow diagrams, access reviews, TLS configuration and log samples. DeployOpen prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications, and those decisions stay with independent assessors and regulators. Review the text of 45 CFR Part 164 Subpart C with your counsel before you map controls to it.

Which side fits which HIPAA situation

Choose this side when the organization wants ClickHouse Inc. to operate the database and is ready to store ePHI in a service covered by a Business Associate Agreement. ClickHouse's compliance documentation says HIPAA safeguards for ePHI apply to designated ClickHouse Cloud services on the Enterprise plan, and it points to HIPAA onboarding for the steps to complete a BAA. This side is ruled out when the workload needs ePHI in a service or plan outside that designation, or when ePHI would reach the service before the BAA is signed.

  • Designated services only: Confirm which ClickHouse Cloud services and regions are in scope before any ePHI is loaded, and keep test data without ePHI in other services.
  • Enterprise plan: The documented HIPAA safeguards are tied to the Enterprise plan, so ask for the plan that the BAA covers to be named in writing.
  • BAA before ePHI: Finish the BAA through HIPAA onboarding first, since it defines what ClickHouse Inc. handles as a business associate.
  • Shared responsibility: The BAA covers the vendor side. Your team still owns user access, query permissions, data classification and any exports that leave the service.
  • Recurring cost: Compute and storage are metered and recur with use. Ask the quote to separate Enterprise plan charges from usage charges.

Before signing, check the designated service list and your data flows against the ClickHouse Cloud compliance overview.

What the HIPAA Security Rule asks of a warehouse or query engine

The HIPAA Security Rule applies to covered entities, which are health plans, health care clearinghouses and covered health care providers, and to business associates, for electronic protected health information (ePHI) (45 CFR 164.302). If your warehouse or query engine stores, processes or transmits ePHI for any of those parties, the platform falls in scope even when it is one of several systems. The rule groups 18 standards into administrative, physical and technical safeguards in Appendix A to Subpart C. Those standards carry 36 implementation specifications, 14 required and 22 addressable, and sections 164.314 and 164.316 add organizational and documentation requirements. Start by mapping every table, replica, backup, cache and query log that holds ePHI, because the standards reach the whole data path, including the database server and the query engine.

An addressable specification still requires a documented decision. The entity must assess whether the specification is reasonable and appropriate in its own environment. If it is not, the entity must document why and adopt an equivalent alternative measure where that is reasonable and appropriate (45 CFR 164.306(d)). Transport encryption shows what evidence looks like. Trino's TLS documentation says client connections can use HTTPS with TLS 1.2 and 1.3 and that older TLS versions are rejected, so confirm the protocol settings on your coordinator and check them in your own configuration exports. Illustrative case: if a ClickHouse server in your estate cannot enforce the same control in the same way, the decision file should record the assessment, the alternative you chose and who approved it, so an assessor can follow the reasoning without asking your team to reconstruct it.

Read the HHS FAQ on certification before you assume any certificate is needed. That 2003 answer addresses whether an organization must certify its compliance with the standards, and the answer shapes what you prepare for an assessor. In practice the evidence is usually written policy, configuration exports, access reviews and log samples, so confirm with your assessor which of those they accept. Ask the ClickHouse side for specifics. Its compliance documentation says HIPAA safeguards for ePHI apply to designated ClickHouse Cloud services on the Enterprise plan and points to HIPAA onboarding for the steps to complete a Business Associate Agreement. Confirm which services and plans are designated, and whether any of that applies to a ClickHouse server you run yourself. Ask every hosting or support provider for the same written scope before ePHI enters the platform.

How ClickHouse and Trino each meet the HIPAA requirement as documented

This table sets the documented position of each platform against the HIPAA Security Rule areas that most often decide a data warehouse review. Read each row as a starting point for your assessment: where a cell says to confirm, the vendor documentation does not settle the question for your layout. The main takeaway is that ClickHouse documents a BAA route for designated Cloud services on the Enterprise plan, while Trino is open-source software whose BAA and assurance position depends on any commercial provider you use.

RequirementClickHouse as documentedTrino as documented
Business associate agreementBAA steps via HIPAA onboarding, for designated Cloud services on the Enterprise plan. None for self-hosted ClickHouse.No BAA is documented for the open-source project. Apache-2.0 licensed, so confirm terms with any commercial provider.
Transport encryptionConfirm the TLS settings for your chosen layout and enforce them in configuration.HTTPS client connections with TLS 1.2 and 1.3. Older TLS versions are rejected.
Audit loggingClickHouse Cloud documents a database audit log. Confirm what self-hosted deployments log and retain.HTTP and MySQL event listeners are documented. Confirm the fields an assessor needs from each.
Access controlDocumented per version. Confirm the user, role and authentication controls for the release you run.The security overview covers authentication and access control. Confirm the options and defaults for your release.
Data locationCloud regions are documented. For self-hosted ClickHouse, location is your organization's choice.Queries run where each connected source stores its data, so data location follows each source.
Vendor assuranceCompliance overview and security policy are published. Ask which attestation reports, if any, cover your service.Confirm any published assurance material directly with the Trino project before relying on it.

Who configures, evidences and signs for each side

Each option moves a different set of tasks to the vendor and leaves the rest with your team. The cards below separate what a vendor agreement covers from what your staff configure, patch and document, and they flag where a source system's own covered status still applies.

ClickHouse Cloud on the Enterprise plan

ClickHouse's compliance documentation says HIPAA safeguards for ePHI apply to designated ClickHouse Cloud services on the Enterprise plan, and its HIPAA onboarding lists the steps to complete a Business Associate Agreement. Coverage follows the designated services, so confirm which services are in scope before loading any PHI. Your team still decides which users get access, classifies the data that goes in, sets retention and completes onboarding for each service. Keep the signed agreement and the scope list with your compliance records.

Compliance overview

Self-hosted ClickHouse safeguards

With open-source ClickHouse on your own servers, your organization is the operator for every safeguard, from access control and backups to audit logging and the evidence behind each control. Version support sets your upgrade cadence: the ClickHouse security policy lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates, and every other version is unsupported. Assign an owner for patching, log review and restore testing, and record how each control is checked so an assessor can follow it.

ClickHouse security policy

Self-hosted Trino hosts and credentials

Trino runs as a coordinator plus worker hosts, and every host that handles query traffic or ePHI falls within your HIPAA scope. You configure TLS for client connections, where Trino's documentation says HTTPS uses TLS 1.2 or 1.3 and older versions are rejected. You also own authentication, the connector credentials each catalog uses to reach its source, the endpoints of any event listener that sends query logs elsewhere, and the Java 25 runtime (minimum 25.0.1) on every node. Confirm where those logs land and who can read them.

Trino TLS docs

Source systems and BI clients

Every source that Trino or ClickHouse reads from stays in scope for its own covered status, so the EHR, billing system or data lake behind a connector needs its own agreement and controls if it is covered. BI clients and dashboards that display query results are part of the same flow. Document each source, the tables and fields that pass through the query layer, which users and tools can read them, and where results are cached or exported. That data flow record is usually the first evidence an assessor asks for.

Security Rule text

Where ePHI crosses the trust boundary in each layout

The diagram starts with client tools connecting to the Trino coordinator over HTTPS, where Trino's documentation says TLS 1.2 and 1.3 are accepted and older TLS versions are rejected. The coordinator plans work for the workers, which read Iceberg tables on object storage and ClickHouse through connectors. Two ClickHouse paths sit side by side. A ClickHouse Cloud service falls under HIPAA safeguards only when it is a designated service on the Enterprise plan and covered by a Business Associate Agreement. Self-hosted ClickHouse stays inside your own boundary. Check each connector hop for TLS, and confirm which services are designated before any ePHI reaches them.

Client traffic, Trino workers and the two ClickHouse paths, with the BAA boundary marked.

Keeping ePHI inside the audited boundary

Storing ePHI in ClickHouse puts the ClickHouse servers in scope for every safeguard in the Security Rule. That includes disks, replicas, backups, system and query logs, and any account that can read the tables. The Security Rule (45 CFR Part 164 Subpart C) applies to electronic protected health information held by covered entities and business associates, so the team running the cluster must be able to show access control, audit controls and integrity protection for the whole system. Trino works differently. It queries PostgreSQL, MySQL, Iceberg tables or other sources where they already sit, so each connected source stays in scope as it was before. The boundary then grows to include the Trino coordinator and workers, their logs, and any event listeners you enable. Your first deliverable is a list of every source and every node that touches ePHI, with a named owner for each.

Every copy is a new system holding ePHI. A staging table, a CREATE TABLE AS statement, an export to Parquet or a materialized result is a location you must inventory, encrypt, restrict, back up and dispose of under the same safeguards. The exposure sits in the pipeline around the engine, and copies tend to outlive the job that made them. Minimizing copies is the control with the best return: decide per dataset which identifiers analytics actually needs, drop or transform the rest before data reaches either engine, and keep one governed copy wherever possible. For any implementation specification you treat as addressable under 45 CFR 164.306(d), document why a measure is not reasonable and appropriate and what equivalent measure you put in place. Record that reasoning for each copy you decide to keep.

The supplied Trino TLS documentation covers client connections: clients can use HTTPS with TLS 1.2 or 1.3, and older TLS versions are rejected. That answers only one hop. Confirm for your Trino version, in the Trino security documentation, how traffic is encrypted between the coordinator and workers and between Trino and each connector's source. Check the same for ClickHouse inter-node and client settings in its own documentation, since a replicated cluster carries ePHI between nodes. Also confirm what each event listener and query log records, including query text, because filter values can carry patient identifiers. Ask your assessor to walk the data flow diagram with you, hop by hop, before the design is approved.

Evidence an assessor asks for and how each side produces it

An assessor will ask for the written risk analysis and the policies that govern electronic protected health information (ePHI). The Security Rule applies to covered entities and business associates, and the organization produces these documents for either platform because they describe your data flows, people and controls. No vendor can write this file for you, so start it before the platform choice is final.

  • Systems in scope: List every store, service and query path that touches ePHI, including each ClickHouse cluster, each Trino coordinator and worker, and the BI tools that read from them. Trino's documented connector list has 37 entries, so each federated source needs its own line.
  • Addressable specifications: For each addressable implementation specification in Appendix A to Subpart C, record whether it is reasonable and appropriate. If it is not, document why and the equivalent measure you chose (45 CFR 164.306(d)).
  • Standards mapping: Map the 18 standards and 36 implementation specifications to a control owner, a configuration setting and an evidence item. Include the organizational and documentation standards in 45 CFR 164.314 and 164.316.
  • Review record: Date each review, name who approved it, and log the changes triggered by a new connector, a version upgrade or a new data source.

Check that the analysis names the actual clusters, catalogs and connectors in each environment, because generic policy text invites follow-up questions.

Configuring the chosen side for HIPAA review, step by step

These seven steps take the side you chose from a shortlist to a configuration a HIPAA security review can test. Each step ends with a setting or record you can show an assessor, and the official documentation is where you confirm each one.

  1. Classify ePHI and every system that touches it

    Your privacy or compliance lead and the data owners list each dataset that holds electronic protected health information, then record every pipeline, query engine, dashboard, service account and backup that reads or writes it. The step is done when a reviewed inventory exists and every later control can be traced to a named system. Without that map, the logging and retention decisions in later steps have nothing firm to attach to.

  2. Choose hosting layout and confirm BAA path

    The engineering lead chooses between ClickHouse Cloud on the Enterprise plan, where HIPAA safeguards apply to designated services and HIPAA onboarding covers the Business Associate Agreement, and a self-hosted boundary in a cloud account or data center that your organization owns and operates. Done means a signed agreement on file for Cloud, or a written network and access boundary for self-hosting, plus counsel's written view on whether any outside party in the chain, such as a support or implementation firm, needs a BAA. Confirm the Cloud steps in ClickHouse's compliance overview.

  3. Enforce TLS 1.2 or newer on client connections

    For a Trino layout, the platform team configures HTTPS for client connections, and the Trino documentation confirms that TLS 1.2 and 1.3 are accepted while older TLS versions are rejected. For a ClickHouse layout, the team enables TLS on client ports and sets the minimum protocol version, confirming the setting name and default in the server documentation for the release it runs. Done means a test client that negotiates TLS 1.2 or newer succeeds, a client forced to an older version is refused, and both test outputs are saved as evidence. Follow the Trino TLS guide for the Trino side.

  4. Configure event listeners and confirm retained fields

    If Trino is the chosen side, the platform team enables an HTTP or MySQL event listener and sends query-completed events to a log sink that the security team controls. The team then confirms, against the listener documentation, exactly which fields are emitted and which of them are retained, and asks the privacy lead whether any field carrying identifiers needs masking or a shorter retention period. Done means a test query appears in the sink with only the approved fields, and that field list is stored alongside the data inventory from step one. Confirm the HTTP listener settings in the Trino HTTP event listener documentation.

  5. Enable ClickHouse audit logging for the chosen layout

    If ClickHouse is the chosen side, the database administrator turns on audit logging for the layout selected in step two, using the database audit log for Cloud or the logging configuration your release documents for a self-hosted server. The administrator then confirms the logged fields and retention in the documentation and runs a test login and a test query to check that both produce entries in the log store the security team reads. Done means the entries are retained and reviewed in one place, so the assessor sees a single audit trail for the chosen side. Start with the ClickHouse database audit log documentation.

  6. Pin to a supported ClickHouse or Trino release

    For ClickHouse, the platform owner pins the server to a version the security policy lists as supported, which currently includes 26.9, 26.8, 26.7 and 26.3, and for production the owner checks the production FAQ for how long each LTS line receives support after release. For Trino, the owner pins a release line the team can keep current, such as the 484 line, and confirms a 64-bit Java 25 runtime at version 25.0.1 or later is in place. Done means the version, its support end date and the owner of the next upgrade are recorded in the change register.

  7. Document addressable decisions under 164.306(d)

    The compliance lead records each addressable implementation specification that applies to this deployment, and for each one writes whether it is reasonable and appropriate, why it was not adopted if it was not, and which equivalent measure was put in place instead. The lead retains configuration exports, test outputs, the BAA or boundary records and the change register in line with the documentation standards in section 164.316, so an assessor can trace each decision to evidence. Done means a signed decision record exists for every addressable item touched by steps two through six. Check the specification list in the Appendix A matrix on eCFR.

What buyers ask before hiring help for HIPAA analytics

Can our team run HIPAA analytics without outside help?

Many teams can run parts of this in-house, but the answer depends on whether they already have the skills and the evidence trail an assessment needs. The Security Rule applies to covered entities and business associates that handle electronic protected health information (45 CFR 164.302), so the work spans administrative, physical and technical safeguards, plus the organizational and documentation standards in 164.314 and 164.316. Your team needs people who can operate the platform, configure access and audit logging, and write policies that map to those safeguards. Before deciding, check three things: whether someone owns each addressable implementation specification and documents why any is handled by an alternative measure, whether you have a named compliance owner who can review evidence, and whether staff can keep the platform patched and upgraded. Outside help usually covers the gap between what the team can build and what the assessor will ask to see. A written scope makes that gap visible before work starts.

What drives the effort of a HIPAA analytics engagement?

The main drivers are the number of data sources, the hosting layout, the state of your existing policies and the size of your evidence gap. Each source adds connectors, credentials, data flow mapping and access rules to review. One cluster in one account is simpler than several regions, a lakehouse on object storage, or a hybrid layout that spans a data center and a cloud account. Existing policies shorten the work when they already cover access reviews, incident response and retention. When they do not, drafting them adds time. Evidence gaps usually matter most. Missing audit logs, undocumented data flows and unclear ownership each turn into remediation tasks. Under 45 CFR 164.306(d), every addressable specification must be assessed and, if it is not adopted, documented with an equivalent measure where that is reasonable, which adds review work. Figures come only from the written scope, which lists sources, environments, deliverables and retests. DeployOpen does not publish a price list, so ask for a quote tied to that scope.

What does a HIPAA analytics engagement need from our staff?

The work needs named people, time with your systems and access you grant under your own controls. Expect requests for data owners who can confirm what each source holds and who should see it, security and compliance contacts who approve controls and review evidence, and platform engineers who can provide cloud or data center access. Ask for a named assessor contact on your side who speaks for the compliance program and accepts documentation. Access works best when scoped to test or staging environments first, with a record of which accounts, networks and credentials are used. Ask the provider to state in writing which environments and network paths it will reach, who holds the credentials, and how access ends at handover. Confirm early whether any step will touch ePHI, because that changes the agreements and controls needed. Put the dates for these inputs in the written timeline, so slow approvals appear as schedule risk before they become delays.

Do we need a business associate agreement if we self-host?

Self-hosting does not by itself remove the question, so confirm it with privacy counsel for every party in the chain. A business associate agreement follows who creates, receives, maintains or transmits electronic protected health information on your behalf, and where the software runs matters less. If your team runs open-source ClickHouse or Trino in your own accounts, the software project is generally not handling your data. Your cloud provider or data center operator may be, so check whether its terms cover that role. If you choose a managed service instead, the documented route for ClickHouse Cloud is HIPAA onboarding, and HIPAA safeguards apply to designated services on the Enterprise plan. Business associates must also meet the Security Rule for ePHI (45 CFR 164.302), so any contractor with access to that data needs written terms covering it. Ask DeployOpen to state in writing whether its scope gives its staff access to ePHI.

Does DeployOpen certify our organization or sign a BAA?

DeployOpen does not certify your organization. It plans, implements, hardens, documents and supports self-hosted platforms, and it prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications, because independent auditors and certification bodies do that work. Whether DeployOpen signs a business associate agreement is a contract question. The answer depends on the written scope and on whether its staff will access ePHI, so raise it before work starts and confirm the outcome in the signed statement of work. HHS addresses whether a certification is required in its FAQ on the Security Rule, and that is the right starting point for your compliance lead. Your legal and compliance teams should review any agreement before signature, and the scope should name the owner of each control and each piece of evidence.

How do fixed-scope engagements set timelines and deliverables?

Fixed-scope engagements set timelines and deliverables in writing before work starts. The written scope names the systems in scope, the sources and environments, the controls and evidence to prepare, the deliverables and the milestones that mark progress. The timeline follows from that scope and from the input dates your team commits to, so the calendar depends on how quickly data owners and approvers respond. Ask the provider to list each deliverable with its format, such as configuration baselines, access matrices, audit log samples, data flow diagrams and, where testing is included, a findings report with a retest. Ask how scope changes are priced and approved, and which sign-offs your team must give at each milestone. Ongoing support, upgrades and continuous testing are separate retainers, so ask whether they appear in the initial quote or start after handover. DeployOpen does not publish a price list, so the quote, timeline and deliverables should trace back to the same written scope.

How DeployOpen prepares HIPAA evidence for either side

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For ClickHouse vs Trino, that means preparing the systems, controls and evidence that an assessor or your compliance team will review, whichever engine you choose. DeployOpen does not issue audit reports, attestations or certifications; those come from independent assessors and certification bodies.

How we scope

  • Scope names each ClickHouse or Trino deployment handling ePHI and records which vendor BAA terms apply.
  • Scope maps each Security Rule standard in 45 CFR 164.308 to 164.316 to a named system and owner.
  • Addressable specifications get a documented reasonableness decision under 45 CFR 164.306(d), with any equivalent measure named.

How we build

  • Set Trino client connections to HTTPS with TLS 1.2 or 1.3, and test that older TLS versions fail.
  • Wire SSO, access control and audit logging into ClickHouse and Trino using each product's documented audit options.
  • Test ePHI paths end to end, including ingestion, query results, exports and any connected data sources.

How we hand over

  • Evidence packs list the configuration, access and audit log records that your compliance team and assessor can review.
  • Runbooks cover backup, restore, upgrades and the vendor support windows for each ClickHouse or Trino version in use.
  • Documentation maps each control to its system, owner, configuration and the evidence an assessor requests.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, quoted from the written scope.
  • Retesting of any gaps found, and a documentation refresh after each ClickHouse or Trino upgrade you adopt.
  • Your HIPAA determinations stay with your privacy and security officers, and DeployOpen supports them with evidence.

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.