ClickHouse vs Apache Druid for HIPAA and healthcare

ClickHouse documents a BAA path for designated Cloud services on its Enterprise plan, while Apache Druid has no vendor to sign one, so self-hosted Druid leaves the HIPAA obligations with the organization that runs it. This page covers the compliance angle only; the general comparison is on its own page.

On this page

ClickHouse vs Apache Druid for HIPAA and healthcare: which side fits which scope

For a covered entity or business associate that must put ePHI into an analytics store, the choice between ClickHouse and Apache Druid turns on two questions: whether a vendor must sign a Business Associate Agreement (BAA), and whether your organization will run the cluster itself. This page covers only the HIPAA angle. The general ClickHouse vs Apache Druid comparison of architecture and operations is on its own page. A signed BAA is available only for ClickHouse Cloud designated services on the Enterprise plan, and ClickHouse's compliance documentation points to its HIPAA onboarding for the steps. Self-hosted open-source software cannot sign a BAA, so Apache Druid and self-hosted ClickHouse leave the HIPAA obligations with your organization. DeployOpen prepares systems and evidence for your assessment, but it does not certify, and no product, including a signed BAA, makes a deployment HIPAA compliant by itself.

If you run Druid yourself, the security posture is your configuration. Druid's security overview says its security features are disabled by default and that production deployments must configure TLS, authentication and authorization, so the evidence an assessor asks for lives in your cluster settings and access records. Deep storage is the second gap: Druid does not encrypt files written to deep storage, so at-rest protection depends on the native encryption of the object store or volume you choose. Confirm that encryption is enabled on that bucket or volume, that keys sit under a key policy you control, and that request logging is configured and sent to a retained log store. The same split applies to self-hosted ClickHouse. The technical safeguards in 45 CFR 164.312 are yours to implement, and each addressable implementation specification needs a written decision on whether it is reasonable and appropriate, with an equivalent measure documented if it is not (45 CFR 164.306(d)).

The decision comes down to what you can get in writing. For ClickHouse Cloud, ask for the BAA scope before design starts: confirm the Enterprise plan, that the exact service and region you plan to use are designated services, and which onboarding steps must finish before ePHI enters. Check the ClickHouse Cloud compliance overview for the current list, and do not assume a feature you use is covered until it appears there. For self-hosted ClickHouse or Druid, no vendor will sign a BAA, so the work moves to your risk analysis, your documented decisions on addressable specifications, and the records an auditor will sample. Before you commit, run a small test: pick one ePHI dataset, trace where copies land, who can query it, what is logged, and whether backups and keys sit under the same controls. Confirm with your compliance lead which evidence your assessor accepts, because no vendor paper replaces your own documented risk analysis.

Which HIPAA scope points to which option

ClickHouse Cloud on the Enterprise plan fits when the organization wants a vendor agreement and is willing to let ClickHouse Inc. operate the service. ClickHouse's compliance documentation says the HIPAA safeguards for ePHI apply to designated Cloud services on the Enterprise plan, and it points to HIPAA onboarding for completing a Business Associate Agreement (ClickHouse Cloud compliance overview).

  • Designated services only: The BAA covers only the services ClickHouse designates, so check each product and region on your account against that written list.
  • Onboarding before data: Complete HIPAA onboarding and hold a signed BAA before ePHI enters any Cloud service. Ask ClickHouse who owns that process on its side.
  • Data handling stays with you: The vendor safeguards the service, but your organization still decides what ePHI is loaded, how long it is kept, who can query it and how it is deleted. Record those decisions as your own controls.
  • Access and audit: Set roles and users for each team, and review the database audit log for query activity. Confirm which authentication methods the Enterprise service supports with your identity provider.
  • Shared responsibility evidence: Ask for the vendor's compliance artifacts and map each control to either ClickHouse or your team, so an assessor can see who owns what.

Before you choose this tab, confirm the designated service list, the signed BAA and your own data handling controls, since the agreement covers the vendor's service and not your data decisions.

What the HIPAA Security Rule asks of a warehouse or lakehouse holding ePHI

The HIPAA Security Rule governs electronic protected health information (ePHI) held by covered entities and business associates, as set out in 45 CFR 164.302. The moment a warehouse or lakehouse stores, processes or transmits ePHI, it is in scope, whether it runs in your data center or in a cloud account you control. The rule sorts its requirements into three safeguard groups: administrative safeguards in 164.308, physical safeguards in 164.310 and technical safeguards in 164.312. Those groups hold 18 standards and 36 implementation specifications, of which 14 are required and 22 are addressable. Sections 164.314 and 164.316 add organizational requirements, such as the terms a business associate must accept, and documentation duties for policies, procedures and their upkeep.

Most of the judgment in this rule sits in the 22 addressable specifications. Under 164.306(d), an addressable specification still needs an answer. You assess whether it is reasonable and appropriate for your environment. If it is not, you document why, and where it is reasonable and appropriate you implement an equivalent alternative measure. Encryption of ePHI and automatic logoff are examples in the technical safeguards. A Druid cluster whose deep storage holds ePHI segments is one case: Druid does not encrypt those files itself, so you must record whether the storage system's native encryption covers that need, and if you rely on a different measure, what it is. Record each decision with an owner, the date and the review trigger, because an assessor will ask for the reasoning behind each answer.

Start by mapping the analytics stack to these three safeguard groups before you choose a product. List every component that touches ePHI, including ingestion, the query layer, coordination services, backups, and the logs that record who queried what. For each one, name an administrative owner, the physical location and the technical controls that apply. Apache Druid ships with its security features disabled, and production clusters must configure TLS, authentication and authorization, so verify those settings in the running configuration and in your change records. Druid's request logging documentation is a useful starting point for the access trail. Where a managed service sits in the path, confirm in writing whether it will sign a business associate agreement and on which plan. Finally, read what HHS says about certification before anyone promises an assessor a certificate.

How ClickHouse and Apache Druid meet the safeguards as documented

This table sets out what each platform's documentation says about the HIPAA-relevant safeguards and where your organization must do its own work. Read each row as a starting point: ClickHouse's documented HIPAA scope is tied to designated Cloud services on the Enterprise plan, while Druid's safeguards depend on how your team configures and hosts it. Items marked to confirm need a written answer from the vendor or a check in your own environment before you rely on them.

Requirement areaClickHouse as documentedApache Druid as documented
Business associate agreementHIPAA safeguards apply to designated Cloud services on the Enterprise plan. HIPAA onboarding points to the BAA steps. Confirm whether any BAA covers self-hosted servers.No vendor signs a BAA for Apache Druid, which is open source. The organization running it carries the HIPAA obligations.
Vendor compliance documentationThe Cloud compliance overview describes HIPAA scope for designated services. Request current compliance evidence from ClickHouse for the exact services you plan to use.Apache Druid's security overview covers settings. HIPAA evidence for your deployment is yours to produce. Confirm what your assessor expects.
Default security postureConfirm default users, network exposure and authentication settings for your version before go-live. Cloud scope depends on the Enterprise plan.Security features are disabled by default. Production deployments must configure TLS, authentication and authorization.
Transport and at-rest encryptionConfirm encryption in transit and at rest for your chosen deployment and plan with ClickHouse before you rely on it.Druid does not encrypt deep storage files, so at-rest protection depends on the storage system's native encryption. Confirm TLS for in-transit traffic.
Access controlConfirm roles, users and authentication for your version and plan. Check whether HIPAA-scoped controls cover self-hosted servers or only designated Cloud services.Authentication and authorization are required in production and must be configured by your team. Tie roles to your access review process.
Audit loggingDatabase audit log documentation covers Cloud logging. Confirm what self-hosted servers record and how long logs are retained.Request logging documentation describes request logs. Confirm they capture the access events your audit and incident process needs.
Data location and regionsCloud services run in regions listed on the supported regions page. Self-hosted data sits wherever your infrastructure runs.Location follows your deployment and deep storage choice. Confirm the storage system's region, replication and encryption settings for regulated data.
Supported versionsThe security policy lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates. Other versions are unsupported.Druid 38.0.0 was published October 1, 2026. Confirm which release lines receive security fixes before you choose a version.

Who signs, configures and evidences each control

Each control family below has three answers: what ClickHouse Inc. covers for ClickHouse Cloud on Enterprise, what you configure for self-hosted ClickHouse, and what you configure for self-hosted Apache Druid. A self-hosted deployment means your organization holds the controls, the logs and the evidence. Confirm any vendor scope in writing with ClickHouse Inc. before you rely on it in an assessment.

Agreements and vendor responsibility

A Business Associate Agreement is the contract that makes a vendor accountable for ePHI it handles for you. ClickHouse Cloud on Enterprise has a documented path: HIPAA safeguards apply to designated services, and HIPAA onboarding explains how to complete a BAA. Self-hosted ClickHouse is Apache-2.0 open source, so your organization carries the HIPAA obligations for its own servers. Apache Druid works the same way, since no vendor signs a BAA for it. Ask ClickHouse Inc. which services the BAA names and whether any support contract extends to self-hosted use.

ClickHouse compliance overview

Encryption in transit and at rest

Encryption needs three checks: traffic between clients and servers, protection of stored data, and the evidence that both are configured. Druid does not encrypt its deep storage files, so at-rest protection depends on the native encryption of the storage system you attach, such as an object store or volume. The Druid security overview also says security features are disabled by default and production deployments must configure TLS. For self-hosted ClickHouse, you set TLS and storage protection yourself and document them for the assessor. For ClickHouse Cloud on Enterprise, confirm in writing which encryption controls the HIPAA safeguards cover.

Druid security overview

Access control and logging

Access control and logging decide who can query ePHI and whether you can prove it later. Druid ships with security features disabled, so TLS, authentication and authorization must be configured before any production use. Druid request logging is documented separately, so you enable it and set its retention. For self-hosted ClickHouse, you define users and roles in the server configuration and keep the logs under your own retention policy. ClickHouse Cloud documents a database audit log, so ask which events it records, how long it keeps them, and who can export them.

Druid request logging

Version currency and patching

Assessors will ask whether a supported version runs in production and who applies the patches. ClickHouse's security policy lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates, and all other versions are unsupported. Stable releases ship roughly monthly and LTS releases twice a year, with each LTS line supported for a year. Apache Druid 38.0.0 was published on October 1, 2026, and for self-hosted Druid you schedule its upgrades, patches and retirement of older lines yourself. For ClickHouse Cloud, confirm the upgrade and patch schedule with ClickHouse Inc. in writing.

ClickHouse security policy

Where ClickHouse's BAA path stops and what Druid leaves to the operator

The first thing to settle is which ClickHouse you are running, because the documented BAA path covers a managed service, not the open-source server. ClickHouse's compliance documentation says HIPAA safeguards for electronic protected health information apply to designated ClickHouse Cloud services on the Enterprise plan, and it points to HIPAA onboarding for the steps to complete a Business Associate Agreement. A self-hosted ClickHouse server, which is Apache-2.0 licensed, is outside that documented path. If a residency requirement keeps your data in your own data center or cloud account, self-hosting may still be the right choice, but only after you ask ClickHouse Inc. in writing what, if anything, it covers for that deployment. File the answer with your compliance evidence before you load any patient data.

Druid starts from the opposite position. Apache Druid is open source under the Apache License 2.0, so no vendor signs a BAA for it, and the organization that runs it carries the HIPAA obligations directly. The Druid security overview states that security features are disabled by default and that production deployments must configure TLS, authentication and authorization. Those settings are the operator's work from the first cluster build. Deep storage is a second boundary: Druid does not encrypt the files it writes there, so at-rest protection depends on the native encryption of the storage system holding the segments. Confirm that setting with the storage team and record which key manages it. Self-hosting Druid is defensible when your platform team can own these controls end to end, or when a residency rule leaves no managed option to weigh.

Neither position removes the organization's own risk analysis. The Security Rule applies to covered entities and business associates that handle electronic protected health information, and for each addressable implementation specification it requires a documented assessment of whether the control is reasonable and appropriate, with an equivalent measure where it is not. A signed Cloud BAA covers the vendor's side of the service. It does not show which encryption keys, access roles or audit settings you configured, or whether each addressable control was assessed. Treat the BAA as one input to your analysis and list every Druid control and ClickHouse setting you own in it. Illustrative example: a team that signs a ClickHouse Cloud BAA but also exports query results to an unmanaged bucket still owns that exported copy and must assess it.

Where does ePHI move, and where does the trust boundary sit?

This illustrative diagram follows ePHI from EHR and claims extracts through an ingestion step into the analytics store, then out to query and dashboard users. The organization trust boundary covers the self-hosted components, where the organization carries the HIPAA obligations. For Druid, the Master, Query and Data servers sit inside that boundary, with deep storage and the request log as separate nodes. Check that TLS, authentication and authorization are configured on each hand-off, since Druid ships with these features disabled, and that deep storage is encrypted by the storage system. The ClickHouse Cloud boundary applies only to designated services on the Enterprise plan with a signed BAA.

Illustrative trust boundaries for self-hosted analytics and designated ClickHouse Cloud services.

The evidence an assessor asks for and how each side produces it

ClickHouse Cloud on the Enterprise plan is the option where the vendor takes part in the HIPAA evidence chain. ClickHouse's compliance documentation says HIPAA safeguards for ePHI apply to designated Cloud services on that plan, and the BAA is completed through its HIPAA onboarding steps. The vendor agreement does not configure your users, roles or retention, so your assessor will still ask for configuration evidence from your side.

  • Signed BAA and scope: Complete the BAA through HIPAA onboarding and confirm exactly which services it covers. A service outside the designated Enterprise services needs its own decision before any ePHI is loaded.
  • Audit logs and retention: ClickHouse documents a database audit log for Cloud. Ask the vendor for the retention period in writing, and confirm who can export and review the log.
  • Access control and encryption settings: Export your role grants, SSO configuration and network access rules as evidence. Get the transport and storage encryption behavior for your service confirmed in writing.
  • Risk analysis and 164.306(d) decisions: The risk analysis and the documented decision for each addressable specification remain your records. No vendor agreement writes them for you.

Check the BAA scope against the services you plan to use, and get the audit log retention period in writing before the assessment window opens.

Configuring the chosen side for HIPAA scope

This sequence takes the side your team chose and configures it so an assessor can trace where ePHI lives, who is responsible for each safeguard and what evidence proves it. Work runs in order, because the vendor position and the data map decide which controls apply. Each step ends with an output you can file.

  1. Map ePHI datasets and landing zones

    The privacy officer and the data owner for each source list every dataset that may hold ePHI, including raw event feeds, staging tables and derived tables, and record where each one lands in the cluster and its storage. Include backups, logs and exports, because those copies fall under the same safeguards. Platform engineering checks the map against the live configuration. Done when the map names each dataset, its owner, its storage location and whether it is loaded into the chosen platform, and the data owner signs off on it.

  2. Confirm the BAA position in writing

    The compliance lead decides whether a Business Associate Agreement is needed. If the chosen side is ClickHouse Cloud, HIPAA safeguards apply only to designated services on the Enterprise plan, so ask the vendor to confirm in writing which services, regions and plan are in scope and follow its HIPAA onboarding steps. If the chosen side is self-hosted Druid or self-hosted ClickHouse, no vendor signs a BAA for the open-source software, so the organization carries the obligations itself. Confirm with counsel whether any support contract adds vendor obligations. Done when the written scope or the internal decision is filed with legal.

  3. Enable TLS, authentication and authorization first

    For a self-hosted Druid cluster, the platform engineer enables TLS, authentication and authorization before any ePHI is loaded, because Druid's security features are disabled by default and production deployments must configure them. Apply TLS to client and inter-service traffic, restrict which users can query or ingest each datasource, and remove default or shared accounts. Test with non-ePHI sample data first. If ClickHouse is the chosen side, run the same transport and access tests against your own configuration. Done when a connection without a valid certificate or credentials is refused and a user without rights to a datasource cannot read it. Keep the test output as evidence.

  4. Configure encryption at rest in deep storage

    The infrastructure team configures encryption at rest on the storage system that holds Druid deep storage, because Druid does not encrypt its deep storage files itself. Use the storage system's native encryption, manage keys under the organization's key policy, and restrict bucket or volume access to the Druid service accounts. For ClickHouse, confirm the equivalent storage-layer encryption for the disks or object storage that hold its data in your environment. Done when the storage configuration shows encryption enabled, the key owner is named and a test access attempt from an unauthorized account fails.

  5. Turn on and route request logging

    Security operations enables request logging on the query and ingest paths and routes the logs to a central store the security team can search. For Druid, enable request logging through its documented mechanism and confirm which fields are captured, including the user identity. Set log retention to the period in the organization's written policy, and restrict who can read logs, because query text can contain ePHI. ClickHouse teams should confirm their audit log configuration in their own deployment. Done when a test query appears in the central store with the user identity attached and the retention setting matches the written policy.

  6. Record addressable decisions and the risk analysis

    The compliance lead records how each addressable implementation specification in Appendix A to Subpart C of 45 CFR Part 164 applies to the chosen platform, covering the administrative, physical and technical safeguards and the documentation standards. For each addressable specification, document whether it is reasonable and appropriate and, if it is not, the reason and the equivalent alternative measure. Link each decision to a risk analysis that covers the datasets mapped in the first step, and date every entry. Done when each addressable specification has an assessed decision, the risk analysis names the platform and the named owner approves the document.

  7. Retest after every configuration change

    The security team retests the configured platform after initial setup and after every change to TLS, authentication, authorization, storage encryption, logging or the installed version. Repeat the access, transport and log checks from the earlier steps, and add a check of the upgraded configuration when a new release is installed. Keep the test results, change records and fixes together so an assessor can follow each change from request to verification. Done when the retest passes, each finding is closed or accepted by a named owner, and the results are filed with the risk analysis.

What buyers ask before hiring help for HIPAA work

What drives the effort of HIPAA work on a self-hosted analytics database?

The effort depends mostly on how many datasets hold ePHI, how many sources feed them, and whether the platform runs in your own infrastructure or as a managed service. Each dataset and ePHI source adds mapping, access review and evidence work, so a cluster with a handful of sources takes far less than one fed from many systems. Self-hosting moves more controls into your scope: you configure TLS, authentication, authorization, encryption at rest and logging yourself, and some platforms ship with security features off by default. Existing documentation is the other large driver. If you already have a risk analysis, policies and a data map, the work is mostly updating them; if not, expect to build them from scratch. Ask any provider for an effort estimate tied to these four inputs in writing.

How long does a HIPAA security engagement take, and what sets the pace?

The pace is set by the written scope, your own change control and the assessor's calendar, so no duration can be stated before those are agreed. DeployOpen works on fixed-scope engagements, meaning scope, deliverables and timelines are agreed in writing before work starts. Your change control matters because changes made mid-engagement need review, approval and a record before evidence is collected. Assessor scheduling sits outside both parties, so book it early and confirm which evidence window the assessor will review. Ask for the timeline as milestones tied to named deliverables, with the dependencies on your side listed separately, so you can see which delays are yours. Retesting after fixes adds time, so confirm when it is scheduled in the plan.

What must our team provide before a HIPAA security engagement starts?

Expect to provide named owners, environment access, the ePHI data map and decision-makers for addressable specifications before work begins. Named owners should cover the platform, the data sources, identity and access, and the compliance contact who answers the assessor. Access to the environment means accounts, network paths and read access to configuration, logs and infrastructure-as-code, agreed in advance and recorded. The ePHI data map shows which systems create, store, transmit or display electronic protected health information, so keep it current. Addressable specifications need a documented decision: you assess whether each one is reasonable and appropriate, and if it is not, you record why and adopt an equivalent alternative measure if one is reasonable and appropriate. That decision needs someone with authority over the risk, so name that person early.

Can our own engineers handle the HIPAA controls for a self-hosted database?

Yes, a team with the right skills can build the technical controls itself, and the documentation burden is the same whichever way you go. The technical side covers access control, audit logging, encryption, transport security and platform configuration, which falls under the technical safeguards in 45 CFR 164.312. The documentation side covers policies, risk analysis, procedures, the data map and evidence that the controls operate, which the administrative, physical and organizational standards require of whoever runs the system. Hiring help changes who builds and tests the controls, while your organization still owns the records. Be honest about skills: confirm that your engineers have configured the platform's security settings before, and that someone can own evidence collection after go-live.

What should a quote for HIPAA security work include?

A quote should state the scope, deliverables, retest, exclusions and handover in writing. Scope names the platforms, datasets, ePHI sources, environments and control areas covered, so you can check what is in and out. Deliverables list each document, configuration change, test report and evidence set, with the format and the owner on your side. The retest entry states which findings are retested, when, and whether the retest covers changes your own team makes. Exclusions matter as much as inclusions: name what the work does not cover, such as legal review of agreements, assessor fees and your own policy approvals. Handover covers who receives the documentation, runbooks and credentials, and how the work continues after the engagement closes. DeployOpen does not publish a price list, so the quote follows from the written scope.

Does DeployOpen certify HIPAA compliance for our analytics platform?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent assessors and certification bodies issue any report, and your organization confirms which evidence its customers or regulators expect. In practice, DeployOpen can harden the platform, document how the controls are configured, and prepare the logs and configuration records an assessor will ask for. The Security Rule sets requirements that covered entities and business associates must meet for electronic protected health information, so ask counsel and your assessor how they expect those obligations to be evidenced. The HHS FAQ on whether certification is required is a useful place to start before you write the requirement into a statement of work.

How DeployOpen prepares the system and evidence for assessment

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so the HIPAA evidence sits with your team. We prepare the systems, controls and records that a compliance assessment will review, but we do not issue audit reports or attestations. Assessors and your own compliance function judge the result.

How we scope

  • The written scope names which clusters, ePHI data stores and access paths the HIPAA review covers.
  • We confirm that self-hosted ClickHouse and Druid have no vendor BAA, so your organization carries the obligations.
  • Fixed-scope engagements agree deliverables and timelines in writing before work starts, and ongoing support is available as a retainer.

How we build

  • We configure TLS, authentication and authorization on Druid, which ships with security features disabled by default.
  • We verify at-rest encryption for Druid deep storage on the storage system, since Druid does not encrypt those files.
  • On ClickHouse, we pin a release line still receiving security updates and configure access control and audit logging.

How we hand over

  • Deliverables include a safeguard-by-safeguard map from the Security Rule to each configuration and its named owner.
  • The documentation covers each addressable implementation specification, with the assessment, the decision and any equivalent alternative measure.
  • Evidence packs include configuration exports, access reviews and audit log samples, and we state what your auditor must still verify.

How we support

  • After a fixed-scope build, a retainer can cover upgrades, backups, patch review and continuous testing as the release lines move.
  • Druid releases such as 38.0.0 and ClickHouse's supported lines need a written upgrade plan and a retest before cutover.
  • Where testing is in scope, findings arrive with fixes and a retest, so each closed item has a record.

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.