ClickHouse Cloud alternative for healthcare and HIPAA data

If your analytics team needs HIPAA controls that ClickHouse Cloud lists only on its Enterprise tier, you can run open-source ClickHouse in your own environment. This page covers the safeguards you then own and the cost comparison.

On this page

Running ClickHouse in your own HIPAA environment instead of the Enterprise tier

Self-hosted ClickHouse, which is open source under the Apache-2.0 license, can run inside your own HIPAA environment, but HIPAA is a set of obligations you carry, not a certificate you buy. HIPAA has no certification. HHS states that no Security Rule standard requires an entity to certify compliance, and a private certification does not stop HHS from later finding a violation. The HIPAA Security Rule (45 CFR Part 164 Subpart C) applies to covered entities and their business associates for all electronic protected health information they create, receive, maintain or transmit. If your analytics team holds ePHI, the question is whether your deployment, your contracts and your evidence meet those obligations, not whether a vendor tier is labeled HIPAA.

Start by confirming your role. If you are a covered entity, you own the safeguards directly. If you are a business associate, the business associate contract under 45 CFR 164.314(a)(2)(i) must require you to comply with the Security Rule, flow the same terms to any subcontractor that handles ePHI, and report security incidents to the covered entity. Ask your legal and compliance teams to confirm whether your hosting provider, your cloud account and any support vendor need their own agreements. Then map the 18 administrative, physical and technical standards in Appendix A to Subpart C onto the ClickHouse deployment, paying particular attention to the five technical safeguards in 164.312, where unique user identification and emergency access are required specifications.

The rest of this section covers how the deployment and its controls are built, using ClickHouse's documented features such as external authenticators, access control, replication with ClickHouse Keeper and tested backups. Your cost comparison depends on the same decisions: who operates the cluster, which cloud or data center hosts it, and how much evidence your assessors will expect. Ask any vendor or partner to confirm in writing which controls they provide, which remain yours and what documentation they will hand to your auditor.

What the HIPAA Security Rule requires of ePHI analytics

The HIPAA Security Rule applies to any analytics platform that creates, receives, maintains or transmits electronic protected health information, whether the platform is a managed service or a server you run. The cards below set out who is bound, which safeguards apply, what a business associate contract must contain and what is still in proposal.

Who the rule binds

The Security Rule covers covered entities (health plans, health care clearinghouses and covered health care providers) and their business associates, for all ePHI they create, receive, maintain or transmit under 45 CFR 164.302. An analytics team that loads patient-level data into a warehouse is in scope even if it never touches the source system. Confirm with your privacy office whether your ClickHouse cluster is a business associate or a covered entity function, because that decides which contracts you need.

Subpart C text

Eighteen standards, 36 specifications

Appendix A to Subpart C lists 18 standards across administrative (164.308), physical (164.310) and technical (164.312) safeguards, with 36 implementation specifications. Of those, 14 are required and 22 are addressable, which means you must assess whether each one is reasonable and appropriate for your environment and document the decision. For an analytics cluster, the administrative standards cover risk analysis and workforce access, while the physical standards cover the hosts and disks that hold ePHI.

Security matrix

Five technical standards and seven specifications

The technical safeguards in 164.312 carry seven implementation specifications. Unique user identification and emergency access procedure are required, while automatic logoff and both encryption specifications are addressable. In a self-hosted ClickHouse setup, unique user identification means no shared database accounts, and encryption decisions cover data at rest and in transit between nodes and clients. Document how each addressable specification is handled, including the reason if you decline one.

Business associate contract terms

A business associate contract under 45 CFR 164.314(a)(2)(i) must require the business associate to comply with the Security Rule, flow the same terms down to any subcontractor that handles ePHI, and report security incidents, including breaches of unsecured PHI, to the covered entity. If an outside firm runs or supports your ClickHouse environment and can reach ePHI, ask for the contract language covering these three points, and check how subcontractors such as hosting providers are bound.

164.314 text

Penalties for context

For penalties assessed on or after 28 January 2026, the inflation-adjusted civil money penalty ranges from $145 to $2,190,294 per violation, with a calendar-year cap of $2,190,294 (45 CFR 102.3). The range is set per violation, so gaps such as missing access reviews or untested backups can add up across findings. Treat the figure as context for how seriously HHS treats analytics systems, and review the current table in the regulation before quoting it internally.

Proposed revision not yet final

HHS proposed a major Security Rule revision on 6 January 2025 (90 FR 898). As of October 2026 no final rule has been published, and the Unified Agenda projects final action for July 2027. Build your controls against the current rule, and track the proposal for changes that would affect encryption, asset inventory or restore testing. Ask counsel whether any proposed requirement should be adopted early as a matter of good practice.

Proposed rule date
January 6, 2025
Proposed rule text

Which open-source options fit a HIPAA analytics workload

Self-hosted ClickHouse on your own servers or Kubernetes nodes keeps the database, its replicas and its backups inside the environment you already assess under the HIPAA Security Rule. The server is open source under the Apache-2.0 license, so no vendor tier decides which features you can use. Replication runs through ReplicatedMergeTree tables coordinated by ClickHouse Keeper, and BACKUP and RESTORE cover full and incremental backups to S3-compatible storage or Azure Blob Storage. Authentication can be delegated to LDAP, Kerberos, SSL X.509 certificates, an HTTP authenticator or JWT, as listed in the external authenticators documentation.

  • Access control: Map unique user identification to individual accounts. Confirm which external authenticator your version supports and how role grants are reviewed.
  • Availability: Plan at least three Keeper nodes on dedicated hosts, as the replication guide recommends for production.
  • Backups: Test restores on a spare cluster. The backup documentation warns that an untested backup will probably not restore when needed.
  • Gaps to confirm: Audit logging of queries and administrative actions, encryption at rest and in transit configuration, and automatic logoff for idle sessions are not covered by the facts supplied here. Verify each against your deployed version.
  • Version discipline: Check the security policy for supported versions before you pick a release line.

Before committing, ask a security engineer to map each safeguard to your own configuration files and logs.

How to deploy self-hosted ClickHouse inside your HIPAA boundary

This sequence takes healthcare analytics teams from an undefined ePHI scope to a self-hosted ClickHouse environment with documented access controls, protected backups, tested restores and a supported upgrade policy that a compliance team can review.

  1. Define the ePHI boundary and data flows

    Map every source that sends electronic protected health information to ClickHouse, every table and export that holds it, every team and service account that reads it, and every system that receives it downstream. Your privacy and security officers sign off on this map, and the boundary is written down as the scope for the HIPAA Security Rule controls that follow. Done when each data flow has an owner and a documented purpose, and nothing containing ePHI sits outside the boundary, including logs, staging buckets and developer laptops.

  2. Choose the hosting environment and sign agreements

    Select the cloud account, data center or on-premises network where the cluster will run, and confirm whether each hosting or infrastructure provider will create, receive, maintain or transmit ePHI. Any provider that does needs a business associate agreement under 45 CFR 164.314, which must require Security Rule compliance, flow the same terms to subcontractors and require incident reporting. Ask each provider whether it will sign one and what its published controls cover. Done when the signed agreements are filed with the scope document. Confirm the contract terms with your counsel, since DeployOpen does not issue attestations.

  3. Deploy replicated clusters with Keeper on dedicated hosts

    Build ReplicatedMergeTree tables across at least two replicas and run three or more ClickHouse Keeper nodes on dedicated hosts, following the replication guide's recommendation of about 4 GB of RAM per Keeper node. Keep Keeper off the data nodes so a data-node failure does not take out coordination. Document the topology, host hardening, network segmentation and encryption of inter-node traffic. Done when a test insert on one replica appears on the other and a deliberately stopped replica catches up automatically after it returns.

  4. Connect SSO through external authenticators

    Configure ClickHouse external authenticators for your identity provider, using the LDAP, Kerberos, JWT or HTTP options the external authenticators documentation describes, so that users sign in with the organization's identities and not local shared passwords. Remove or lock down default and shared accounts, and record which authenticator each user belongs to. Done when a test user with a revoked identity-provider account can no longer connect, and the authentication path is recorded in your access review evidence.

  5. Set least-privilege roles and encryption

    Create roles that reflect the care team and analytics need-to-know model, grant each role only the databases, tables and columns it requires, and deny direct access to raw ePHI tables where aggregates will do. Enable TLS for client and inter-node connections, and configure encryption at rest for disks or the object storage layer according to your platform's documented options. Document which encryption mechanisms apply to each data path, since the Security Rule treats encryption as an addressable specification that you must justify. Done when access tests confirm that a role without grants cannot read a sensitive table and that traffic is encrypted end to end.

  6. Configure protected backups and restore tests

    Schedule BACKUP jobs for tables, partitions or databases to a protected target such as a separate S3-compatible bucket or Azure Blob Storage container, with restricted write and delete rights, object versioning or retention locks where the platform supports them, and encryption. The backup documentation notes that replication does not guard against human error or corruption, so backups are a separate control. Then restore a backup to a spare cluster on a set schedule and compare row counts and checksums. Done when a restore has succeeded on the spare cluster and the result is recorded, since the documentation warns that an untested backup will probably not restore when needed.

  7. Fix the upgrade policy and pre-production process

    Choose between stable and LTS releases, then check the ClickHouse security policy for the versions that currently receive security updates before you pick a target. Keep a pre-production environment loaded with representative data and queries, read the changelog for backward-incompatible changes before each upgrade, and roll changes through pre-production first. Set a written process for applying security releases, and confirm the release cadence and support windows against the production FAQ and the release page at the time you adopt the policy. Done when the policy names the supported versions, the owner of each upgrade and the evidence kept for each change.

  8. Prepare the evidence pack for review

    Gather the scope document, data flow map, business associate agreements, Keeper topology, authentication and role configuration, encryption settings, backup and restore test records, upgrade policy and access review logs into one evidence pack. Map each item to the Security Rule standard it supports, using the Appendix A matrix and NIST SP 800-66 Rev. 2 as references. Your compliance lead then reviews the pack with your privacy officer and, where needed, an independent assessor. Done when the pack is complete and each control has a named owner, and you can explain the residual gaps. HIPAA has no certification, so the pack supports a review; it is not a certificate.

How the ePHI boundary, replicas, Keeper and backups fit together

The diagram starts with clients and the identity provider outside the boundary. Users reach the ClickHouse cluster only through an authenticated access path into the private network, where two ReplicatedMergeTree replicas hold the ePHI. Their coordination runs through three ClickHouse Keeper nodes on dedicated hosts, and BACKUP writes to a storage account the organization controls separately. Check that every component inside the boundary has an owner, that the backup target is restore-tested, and that replication is never treated as a backup.

Trust boundary, replicas, Keeper quorum and the separate backup target.

Evidence an auditor or HHS reviewer will ask for

HIPAA has no certificate, so the proof you can show is a set of records that follow your ClickHouse deployment over time. The cards below cover the Security Rule records reviewers request most often, from risk analysis to restore tests, and they show where each one comes from when you run ClickHouse yourself.

Risk analysis and risk management records

Reviewers start with the risk analysis that covers every system holding electronic protected health information, including the ClickHouse servers, Keeper nodes, backup targets and admin workstations. Record each asset, the threats you assessed, the controls you chose and the owner who accepted the residual risk. Re-run the analysis when the cluster topology, the data sources or the team changes, and keep dated versions so the history is visible.

Security Rule text

Access review logs

Keep a periodic record showing that each ClickHouse user and role still needs its privileges, and that departed staff and service accounts were removed. Export the user, role and grant definitions from system.users and system.grants on a schedule, then compare them with your identity provider. Reviewers look for evidence that access follows the minimum necessary standard, not only for the list of accounts.

ClickHouse access control docs

Business associate contracts

Any vendor or hosting provider that creates, receives, maintains or transmits ePHI for you needs a business associate contract that requires Security Rule compliance and incident reporting. Self-hosting shrinks the list, but your cloud provider, backup storage provider and any support firm with access to the data may still qualify. Keep signed copies and confirm the flow-down terms to subcontractors with your counsel.

Backup restore test logs

ClickHouse documentation warns that a backup never test-restored will probably not restore properly when you need it. Keep dated logs from restores to a spare cluster, covering which backup was used, the row counts and checksums compared, the time taken and any errors. Replication does not protect against human error or corruption, so these logs are the evidence that your backups are usable.

ClickHouse backup docs

Upgrade and patch record

Track which ClickHouse version runs in each environment and whether that version still receives security updates according to the project's security policy. The published support list currently covers 26.9, 26.8, 26.7 and 26.3, so a cluster on any other version needs a documented exception or an upgrade plan. Record the changelog review, the pre-production test and the rollout date for each upgrade.

ClickHouse security policy

Authentication configuration and incident procedures

Document how users authenticate, whether through LDAP, Kerberos, X.509 certificates, an HTTP authenticator or JWT, and keep the configuration files under change control. Pair that with an incident response procedure that states who decides whether a security incident is a reportable breach of unsecured PHI and how the covered entity is notified. Test the procedure in an exercise and file the results.

External authenticators docs

HITRUST as an optional assessment

HITRUST CSF is a voluntary assessment framework that some healthcare buyers request, not a requirement of the HIPAA Security Rule. Its e1 and i1 validity runs one year and r2 runs two years, and independent assessors issue any report, not DeployOpen or the vendor. Ask your assessor which CSF version and assessment type fit your contracts before you prepare evidence for it.

r2 validity
2 years
HITRUST assessment handbook

Questions healthcare teams ask before running ClickHouse themselves

Does running self-hosted ClickHouse make our workload HIPAA compliant?

No. Self-hosting does not make any workload HIPAA compliant. It makes compliance possible because you control where electronic protected health information (ePHI) is stored, who can reach it and how it is logged. The HIPAA Security Rule applies to covered entities and business associates for all ePHI they create, receive, maintain or transmit, so your organization still owns the administrative, physical and technical safeguards. Those include unique user identification, automatic logoff, encryption decisions, audit controls, backup testing and incident handling. HHS does not issue HIPAA certifications, so ask any vendor or consultant for evidence of the controls themselves, and ask your compliance counsel how the Security Rule maps to your environment.

What cost components should we compare against ClickHouse Cloud Enterprise?

Compare cost by component, not by a single headline number. On the self-hosted side, the recurring items are compute and memory for ClickHouse servers or Kubernetes nodes, disks or object storage for data and backups, ClickHouse Keeper nodes for replication (the replication guide recommends at least three, on dedicated hosts in production, with about 4 GB of RAM each), monitoring, and the engineering time for upgrades and on-call. One-time items include architecture, hardening, migration and the first restore test. On the managed side, you pay the vendor's compute unit-hour and storage rates for the tier that includes HIPAA support. Cost moves with data volume, query concurrency, retention, replica count, backup frequency and how often you can idle the cluster. Ask any provider for a quote that lists each component separately.

What skills does the team need to run ClickHouse in a HIPAA environment?

A team running ClickHouse in a regulated environment usually needs people who can operate Linux servers, networking and storage, manage ReplicatedMergeTree tables with ClickHouse Keeper, configure authentication, and run backup and restore drills. Security engineering is also needed to set access control, TLS, external authenticators and audit logging, and compliance staff must map each control to the Security Rule and document evidence. You do not need all of these skills in-house on day one, but someone must own each one after handover. Before committing, check whether your team can answer these questions: who patches ClickHouse within the supported release window, who runs restore tests, and who responds to an incident at 2 a.m.

How long does a self-hosted ClickHouse deployment for healthcare data take?

Timing depends on scope, and no fixed duration applies to every environment. The main drivers are the number of clusters and replicas, whether you run in your own cloud account, a data center or an air-gapped network, the state of existing identity and logging systems, how much of the HIPAA control set you need documented, and the migration volume from the current platform. Engagements from DeployOpen are fixed-scope, so deliverables and timelines are agreed in writing before work starts. Ask for a written plan that separates architecture and hardening, migration and parallel run, backup and restore testing, and handover to your team.

Do we need a business associate agreement with the company that hosts or supports us?

Yes, if that company creates, receives, maintains or transmits ePHI on your behalf, it is a business associate and HIPAA requires a written business associate contract. Under 45 CFR 164.314(a)(2)(i), that contract must require the business associate to comply with the Security Rule, flow the same terms down to any subcontractor that handles ePHI, and report security incidents, including breaches of unsecured PHI, to you. Self-hosting in your own cloud account does not remove the question entirely, because the cloud provider may also handle ePHI. Ask your cloud provider whether it signs a business associate agreement for the services you use, and ask any implementation partner whether it needs access to ePHI at all. Limiting partner access to administrative paths is a design choice you can document.

What should a quote for self-hosted ClickHouse include?

A useful quote lists scope, deliverables and assumptions in writing before any work starts. Ask for the environments covered, the ClickHouse release and support policy you will follow, the architecture (replicas, Keeper nodes, network zones), authentication and access design using LDAP, Kerberos, X.509 certificates or JWT where relevant, backup design with at least one restore test, logging and evidence handed over for your compliance review, migration steps, handover and training, and post-handover support options. Also ask which items are one-time and which recur, such as retainers for upgrades and continuous testing. DeployOpen issues fixed-scope quotes from a written scope and does not publish a price list. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.

Which ClickHouse versions should we run for a production healthcare workload?

Run a version that is inside the vendor's supported window and plan upgrades on a schedule. The ClickHouse security policy lists the versions that receive security updates, and all other versions are unsupported, so check that list before you pick a release line. The production FAQ recommends stable releases for most production use, a pre-production environment with representative data and queries, and reading the changelog before each upgrade, because minor backward-incompatible changes can occur. LTS releases ship twice a year and are supported for a year after release. Ask your team to document which line you run, who approves upgrades and how you test them.

How do we prove our ClickHouse backups will restore when we need them?

Test restores on a regular schedule, because a backup that has never been restored will probably not restore properly when you need it. ClickHouse BACKUP and RESTORE support full and incremental backups of tables, partitions or databases to local disk, S3-compatible storage or Azure Blob Storage. Replication does not protect against human error or corruption, so backups are still required. Record each restore test with the date, the backup used, the spare cluster involved, the time to restore and the data checks performed. Those records become part of the evidence you show auditors and your own risk committee.

How the cost of self-hosting compares with a managed tier

Self-hosting ClickHouse moves the bill from one line item to several, and the comparison only works if you price each component. The main recurring costs are compute nodes (servers or Kubernetes nodes), disks or object storage for data and backups, three ClickHouse Keeper nodes on dedicated hosts, monitoring, and the people who run it. Your cloud provider or data center bills the hardware and storage; your staff, or a partner you pay, carries the operations. Ask your finance and platform teams to build the model from your own replica count, retention period and backup frequency rather than from a generic estimate. The ClickHouse replication guide is the starting point for the Keeper sizing: at least three nodes, on dedicated hosts in production, with about 4 GB of RAM each.

Healthcare workloads add cost that a generic database comparison misses. Under the HIPAA Security Rule, you carry the safeguards yourself: unique user identification, access control, audit controls, encryption decisions and documented risk analysis. Each of these needs tooling, configuration time and evidence collection, and the work recurs every review cycle. Business associate agreements with any hosting or support vendor must also be negotiated and maintained. Ask each vendor for the scope of its contract, what it charges for incident reporting support, and whether a restore test is included. Backup storage deserves its own line, since ClickHouse documents that a backup never test-restored will probably not restore properly, so restore tests on a spare cluster consume compute and staff time every period.

One-time setup and recurring operations should be separated in the model. Setup covers the initial build, the HIPAA environment design, SSO and external authenticator integration, and the first compliance evidence pack. Recurring costs cover patching against the supported ClickHouse release lines, on-call time, monitoring retention, backup and restore testing, and periodic access reviews. Costs rise with data volume, replica count, cross-region backup copies, and the number of people who need privileged access. They fall when you standardize infrastructure as code, automate upgrades in a pre-production environment with representative data, and reduce the number of environments that hold protected health information. For the side-by-side figures, use the sibling cost page on ClickHouse Cloud against self-hosted ClickHouse and compare against the managed tier quote that includes the Enterprise compliance features you need.

Which safeguards you own when you self-host

Administrative safeguards under 45 CFR 164.308 cover how the organization manages people and processes around ePHI. ClickHouse, as open-source software, provides no compliance program of its own, so every administrative control sits with your team. Risk analysis, workforce access decisions, contingency planning and incident response all need written owners and records that an auditor or HHS Office for Civil Rights reviewer can read.

  • Risk analysis: Document the ePHI flows into and out of ClickHouse, including ingestion pipelines, BI tools and backups, and rate the threats to each.
  • Workforce access: Define who may administer the cluster, who may query tables holding ePHI, and how access is granted, reviewed and removed.
  • Contingency planning: Write backup, restore and disaster recovery procedures, and schedule restore tests, since ClickHouse documentation warns that an untested backup will probably not restore when needed.
  • Incident response: Set procedures for detecting, reporting and containing security incidents, including the business associate reporting duties if a vendor or hosting provider is involved.
  • Business associate agreements: If a hosting provider or managed services firm can reach ePHI, confirm a contract meets 45 CFR 164.314 before work begins.

Ask your compliance lead which of these documents already exist and who signs them, because the Security Rule expects evidence that the process runs, not only that it was drafted.

What to confirm before you migrate ePHI

Before any electronic protected health information moves into a self-hosted ClickHouse cluster, confirm the ClickHouse version you intend to run and its support status. The ClickHouse security policy lists versions 26.9, 26.8, 26.7 and 26.3 as currently supported with security updates, and everything else as unsupported, so a deployment pinned to an older line would carry unpatched exposure into a regulated environment. Check the ClickHouse security policy on the day you pick a version, and record the version in your system inventory so the security risk analysis can reference it. Decide whether you will run a stable line or an LTS line, and write down the upgrade cadence your team can actually sustain.

Next, list the controls you currently rely on from ClickHouse Cloud's Enterprise tier and confirm each one against the open-source server before assuming it is available. Ask your team to map the features you use, such as SSO, encryption, private networking, audit logging and access controls, to a specific ClickHouse setting or to a component you would build yourself. Authentication options in the open-source server include LDAP, Kerberos, SSL X.509 certificates, an HTTP authenticator and JWT, so confirm which of these your identity provider can support. Do not assume a managed-tier feature has an equivalent until someone has tested it in a pre-production environment with representative data.

Finally, confirm two external dependencies. First, check whether HIPAA controls and a business associate agreement apply to every cloud or hosting service that stores, processes or backs up the data, since the Security Rule covers business associates for all ePHI they handle, and ask each provider in writing for its current position. Second, track the status of the HHS proposed Security Rule revision published on 6 January 2025. As of October 2026 no final rule had been published, and the Unified Agenda projects final action for July 2027, so confirm the latest status on reginfo.gov with your compliance lead and plan for the controls it may add.

How DeployOpen deploys ClickHouse under HIPAA constraints

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including ClickHouse. For healthcare analytics teams, the work starts with the HIPAA controls your compliance and security teams need to see, then builds and evidences them in your environment.

How we scope

  • Scope starts with which ePHI flows into ClickHouse, where it is stored and who needs access.
  • The written scope lists environments, cluster topology, authentication integrations, backup targets and the evidence your reviewers expect.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
  • Ask us to confirm which HIPAA safeguards your own counsel and compliance team have assigned to the platform.

How we build

  • Deploy ReplicatedMergeTree clusters with ClickHouse Keeper inside your HIPAA-scoped cloud account or data center.
  • Configure access control, external authenticators such as LDAP, Kerberos or JWT, and audit-ready user roles.
  • Set encryption in transit and at rest, plus automatic logoff and emergency access procedures where your scope requires them.
  • Test replica failover and BACKUP and RESTORE jobs, then document the results for your review.

How we hand over

  • Deliver architecture, configuration and control mapping documents that your auditors can read directly.
  • Provide runbooks for upgrades, including checking the ClickHouse changelog and the supported version list before each change.
  • Run a scheduled restore test on a spare cluster with your team and record the outcome.
  • Walk your operations and security staff through access reviews, incident handling and business associate obligations.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Retainers can cover version tracking, patch windows, backup verification and periodic security testing of the cluster.
  • Testing of the surrounding application and API layer can be added to the retainer scope.
  • Ask for the retainer terms, response expectations and reporting cadence in writing before you sign.

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.