ClickHouse vs DuckDB for HIPAA and healthcare

ClickHouse Cloud on the Enterprise plan documents a BAA path for designated services, while self-hosted ClickHouse and embedded DuckDB leave hosting, keys, logs and the HIPAA obligations with your organization. This page covers only the HIPAA angle.

On this page

ClickHouse vs DuckDB for HIPAA: which side fits which ePHI workload

ClickHouse Cloud on the Enterprise plan fits when ePHI will sit in a designated ClickHouse Cloud service and the organization needs the vendor to sign a Business Associate Agreement. Self-hosted ClickHouse or embedded DuckDB fits when ePHI stays in infrastructure the organization runs, which leaves the HIPAA obligations for that infrastructure with the organization. The decision turns on where the ePHI will sit and who signs for the service, so map each ePHI workload to one of three paths: ClickHouse Cloud for designated services, self-hosted ClickHouse in infrastructure you run, or DuckDB embedded in an application or job on a host you control. This page covers only the HIPAA angle. The general ClickHouse vs DuckDB comparison is on its own page.

Two facts frame every option. First, no product is called HIPAA compliant, so vendor documentation supports your program but does not establish compliance on its own. Second, DuckDB has no vendor able to sign a BAA, so the organization using it carries the HIPAA obligations for the application, host and files involved. For ClickHouse Cloud, the ClickHouse compliance documentation says HIPAA safeguards for ePHI apply to designated services on the Enterprise plan and points to HIPAA onboarding for the steps to complete a BAA. Before any ePHI reaches the service, confirm in writing which services are designated, that your account is on the Enterprise plan, and that the BAA is executed. Then keep ePHI out of every service that is not on that list.

For self-hosted ClickHouse or DuckDB, your organization is the party that must meet the Security Rule in 45 CFR Part 164 Subpart C for the ePHI it handles. The rule covers covered entities and business associates, and its administrative, physical and technical safeguards contain 14 required and 22 addressable implementation specifications. An addressable specification still needs a decision: assess whether it is reasonable and appropriate and, if you do not implement it, document why and adopt an equivalent measure where that is reasonable. For DuckDB, the encryption added in version 1.4.0 uses AES-256, but the DuckDB team states that it does not yet meet NIST requirements and that the user handles key management. Settle key custody and file placement before the first ePHI file is written, and list every host and job that will open ePHI.

What the HIPAA Security Rule asks of any system holding ePHI

The HIPAA Security Rule applies to every system that holds electronic protected health information, whatever software stores or queries it. The four points below set the baseline that a ClickHouse or DuckDB deployment is measured against, and they connect because each one changes what the organization must decide, document and show an assessor.

Who the rule applies to

The Security Rule in 45 CFR 164.302 binds covered entities, meaning health plans, health care clearinghouses and covered health care providers, and the business associates that handle electronic protected health information. For this comparison, start with your role: an organization that runs ClickHouse or DuckDB on its own patient data is usually the covered entity, while a vendor that hosts the database for you may be a business associate. Confirm your role first, because it decides which obligations and which agreements apply to the platform.

Subpart C text

Three safeguard groups

Appendix A to Subpart C sets 36 implementation specifications across 18 standards: administrative (164.308), physical (164.310) and technical (164.312) safeguards. Of the 36, 14 are required and 22 are addressable. Sections 164.314 and 164.316 add organizational and documentation standards, so the written policies and vendor terms behind your database controls count too. For a warehouse, the technical group carries the access control, audit control, integrity and transmission security questions, so assign each one a named owner before you test a product.

Appendix A matrix

Addressable specifications need documentation

A required specification must be implemented. An addressable one still needs a decision: the organization must assess whether it is reasonable and appropriate for its environment, and if it is not, document why and implement an equivalent alternative measure where that is reasonable and appropriate (45 CFR 164.306(d)). For a ClickHouse or DuckDB deployment, the encryption, audit logging and access settings you rely on each need a written rationale, and an assessor will read those records.

Warehouses and lakehouses are in scope

Any warehouse or lakehouse that stores or processes ePHI is in scope, whichever engine runs the queries, so a DuckDB deployment and a ClickHouse cluster each need a risk analysis and the same safeguard controls. ClickHouse documents HIPAA safeguards for designated Cloud services on its Enterprise plan, while DuckDB has no vendor to sign a Business Associate Agreement, so the organization carries those obligations itself. Check the HHS FAQ before any certificate claim reaches a page or sales deck, and confirm the exact service and plan you would buy.

HHS certification FAQ

How ClickHouse vs DuckDB for HIPAA differ on BAAs, encryption and logs

This table compares what each platform documents for the requirements HIPAA places on systems holding ePHI: the business associate agreement, who operates the software, encryption, key handling, logs, access, data location and version support. Read the ClickHouse column by deployment, since the documented HIPAA scope covers designated ClickHouse Cloud services on the Enterprise plan only. The main takeaway is that DuckDB has no vendor to sign a BAA, so your organization carries the HIPAA obligations in its column.

RequirementClickHouse as documentedDuckDB as documented
Business associate agreementCloud: designated services on the Enterprise plan; BAA steps in HIPAA onboarding. Self-hosted: no documented BAA, confirm with ClickHouse Inc.No vendor to sign a BAA. MIT-licensed, so your organization carries the HIPAA obligations.
Who operates the softwareCloud: ClickHouse Inc. operates the managed service. Self-hosted: your team runs the ClickHouse server.Your application or job. DuckDB is embedded in a host process, with no server to install or maintain.
Encryption at restCloud: confirm encryption at rest for your designated service in the compliance documentation. Self-hosted: confirm your own volume or disk encryption.AES-256, GCM by default, CTR optional (1.4.0). Main header is plaintext; remaining headers, blocks, WAL and temp files are encrypted.
Key handlingConfirm with ClickHouse Inc. who generates, stores and rotates keys for designated Cloud services. Self-hosted keys are yours.You are responsible for key handling, according to the DuckDB team. Its encryption does not yet meet official NIST requirements.
Audit loggingCloud: ClickHouse documents a database audit log; confirm the events captured for your service. Self-hosted: configure and retain your own logs.Confirm whether DuckDB records access events; if not, your host application must log queries and reads.
Access controlCloud: confirm roles, SSO and authentication for your designated service. Self-hosted: configure users and roles on your own server.No server login layer; access depends on the host process and file permissions on the database file.
Data locationCloud: check the supported regions list for your designated service. Self-hosted: your own cloud account, data center or air-gapped network.Wherever the host process writes the database file, such as a laptop, job runner or server you control.
Version supportSecurity updates for 26.9, 26.8, 26.7 and 26.3. Stable releases monthly; LTS twice a year, supported one year.1.4.0 introduced encryption; v1.5.6 was published September 28, 2026. Confirm the support window with the DuckDB project.

Does a ClickHouse Cloud Enterprise BAA change the answer?

The BAA changes the answer only for the ClickHouse workload that ClickHouse Inc. operates. If ePHI goes into a designated ClickHouse Cloud service on the Enterprise plan, the vendor documents HIPAA safeguards for that service and points to HIPAA onboarding for the steps to complete a Business Associate Agreement. Your work then shifts to confirming which services are designated, which region holds the data, which users can reach it and which ePHI fields you send. If ePHI stays in self-hosted ClickHouse, no vendor shares the obligations. Your organization is the operator and carries the duties for hosting, access, logs and encryption keys. DuckDB has no vendor to sign a BAA at all. It is MIT licensed and runs inside your own application or job process, so your organization carries every obligation for it.

Before you rely on the BAA path, confirm three things in writing. First, which ClickHouse Cloud services are designated for ePHI, because a service outside that designation may fall outside the documented safeguards. Second, which plan your contract covers, since the documented safeguards apply to the Enterprise plan. Third, that the BAA is signed before the first ePHI load reaches the service. Ask the vendor for the onboarding steps and for a named owner on each side. Read the compliance overview to see the scope of the documented safeguards, and assign an owner to any control it leaves to you.

Split architectures need their own scope check. Illustrative example: a claims team keeps patient-level ePHI in self-hosted ClickHouse and sends a daily export to a designated Cloud service for dashboards. That export is an ePHI flow the BAA must cover, and the self-hosted source stays fully your obligation. Confirm that the supported regions list includes the region your data residency policy requires before any load. For DuckDB, a copy of ePHI on an analyst laptop becomes data your organization must protect. DuckDB 1.4.0 added AES-256 encryption, GCM by default and CTR optionally, but the DuckDB team's post says its encryption does not yet meet the official NIST requirements and that the user is responsible for key handling. Treat that as a control you must justify to an assessor and document key custody for yourself.

Where ePHI sits and where the trust boundary falls for each option

This illustrative diagram starts at the source systems that hold ePHI and passes through an ingestion job the organization owns. From there, the data follows one of three paths. The ClickHouse Cloud path crosses a vendor boundary only for a designated service on the Enterprise plan, where HIPAA safeguards apply under a Business Associate Agreement with ClickHouse Inc. The self-hosted ClickHouse path and the embedded DuckDB path have no vendor node that signs a BAA, so key custody, access control, audit logging and backups stay with the organization. For DuckDB, the database file, write-ahead log and temporary files all sit on the host. Check each control against the vendor's documentation or your own environment before you treat it as covered.

Illustrative: ePHI paths and who holds the controls in each option.

What DuckDB encryption covers and what the team still has to handle

DuckDB 1.4.0 encrypts most of the database, but not all of it. Its database encryption uses AES-256, with GCM as the default mode and CTR available as an option. According to DuckDB's encryption post, the main header stays plaintext, while the remaining headers and blocks, the write-ahead log and temporary files are encrypted. Any plaintext header content is in scope for your review, so confirm with the DuckDB documentation for your exact version what the header exposes. The same post says the encryption does not yet meet the official NIST requirements and that the user is responsible for key handling. Treat that statement as the starting point for your risk analysis, and make the key lifecycle an owned process with named roles before any ePHI is loaded.

Under 45 CFR 164.312, encryption and decryption of ePHI is an addressable implementation specification in the access control standard, and encryption for transmission security is addressable too. Addressable does not mean optional. The organization must assess whether each specification is reasonable and appropriate for its environment. If it decides not to implement one, it must document why and adopt an equivalent alternative measure where that is reasonable and appropriate (45 CFR 164.306(d)). For a DuckDB deployment, the written decision should list each database file and temporary location in scope, the cipher mode chosen, how keys are generated and stored, and the compensating controls for anything outside the encrypted scope. Keep that record with the risk analysis and the policies the organization maintains under 164.316.

For ClickHouse, this section cannot state an encryption position yet. Whether data is encrypted at rest and in transit, and who holds the keys, depends on the deployment path and the server version. Before writing any claim, confirm the at-rest and in-transit options and key custody in the ClickHouse documentation for the path you choose, whether that is self-hosted open-source ClickHouse or a ClickHouse Cloud service. Also confirm that your version is still covered by the ClickHouse security policy. Expect an assessor to ask who generates and rotates each key, where keys are stored and whether they ever leave your environment, who can read or export them, how a lost key is recovered, whether key use is logged, and how the same answers apply to temporary files and backups on both platforms.

Who covers what for each deployment, and what the organization still configures

Each deployment divides the HIPAA work differently, and that split determines who signs the agreement, who patches the software and who produces the evidence. The cards below separate what a vendor documents from what your organization must configure, operate and show an assessor. Scope that work before you choose an engine, because it does not disappear when the engine changes.

ClickHouse Cloud on Enterprise

The vendor covers designated ClickHouse Cloud services on the Enterprise plan, and only once a Business Associate Agreement is completed through the HIPAA onboarding steps. Your organization still decides which users reach those services, which data it sends, which region hosts it, and how evidence such as the database audit log is collected and retained. Confirm that each workload falls inside a designated service, because the safeguards attach only to those services. Ask which regions and features the agreement covers before any ePHI is loaded.

Compliance overview

Self-hosted ClickHouse

The Apache-2.0 software and its release cadence sit with the project, which ships stable releases roughly monthly and LTS releases twice a year. No software project signs a BAA, so your organization owns the hosting layer: servers, patching to a supported version, user access, backups, logs and encryption keys. The security policy lists 26.9, 26.8, 26.7 and 26.3 as receiving security updates, so plan upgrades before a running version leaves that list. Document the upgrade path and the owner of each control before go-live.

ClickHouse security policy

DuckDB embedded

No vendor takes a compliance role for DuckDB, which is MIT-licensed and runs inside your application or job with no separate server. Your organization owns the host, the database file storage, the encryption keys, and how the write-ahead log and temporary files are handled. DuckDB 1.4.0 added AES-256 encryption that covers those log and temporary files, but the DuckDB team states that it does not yet meet the official NIST requirements and that the user is responsible for key handling. Access control falls to the operating system accounts and processes that open the file, so review them as you would for any ePHI store.

DuckDB encryption post

Shared obligations across every option

Some duties stay with your organization whichever engine you pick. The administrative safeguards in 164.308, the documentation standards in 164.316 and the organizational standards in 164.314 cover risk analysis, workforce security, access management, contingency planning and incident response, along with written policies that show how each one runs. Addressable specifications still require a documented decision on whether each measure is reasonable and appropriate, plus an equivalent measure where it is not. Assign an owner for every control, and collect the same evidence whether the data sits in ClickHouse Cloud, a self-hosted cluster or a DuckDB file.

Security Rule text

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

On the Enterprise plan, ClickHouse documents HIPAA safeguards for ePHI in designated Cloud services, and it points to HIPAA onboarding for the steps to complete a Business Associate Agreement. Part of the first evidence set comes from the vendor and your contract file, while the configuration evidence sits in your own records. Read the ClickHouse Cloud compliance overview before you request the package, so the requests match the services the vendor actually covers.

  • Executed BAA: the signed Business Associate Agreement from onboarding, produced by ClickHouse Inc. and filed by your legal team with the effective date visible.
  • Designated services list: the Cloud services that fall under HIPAA safeguards, produced by the vendor and matched by your team to each cluster in use.
  • Region records: the region in which each service runs, taken from the supported regions list and your own cluster settings, produced by your platform team.
  • Database audit log output: exported records from the database audit log showing who queried or changed data, produced by the cluster and retained by your security team.
  • Configuration records: the change history for cluster settings, users and network access, produced by your platform team and reviewed by security.

Check that every cluster holding ePHI appears on the designated services list and in an approved region, because assessors often sample from production rather than from the contract file.

Configuring the chosen side for HIPAA before any ePHI lands

This sequence prepares whichever side you choose, ClickHouse Cloud, self-hosted ClickHouse or DuckDB, so that ePHI is inventoried, protected and documented before any production data is loaded. Each step closes with a check you can show an assessor. Exact settings change between versions, so confirm them in the vendor documentation for the version you run.

  1. Inventory ePHI datasets and access paths

    Your privacy or security lead lists which datasets contain electronic protected health information, then maps every job, user account and host that reads, writes or copies them. Include BI tools, notebooks, scheduled exports, staging copies and backups. The output is a data flow diagram and an access list, each with a named owner. This step is done when every ePHI dataset has an owner and no ePHI path in the diagram is missing from the access list. Finish it before choosing the deployment path, because the answer determines which services and hosts fall in scope.

  2. Choose the deployment path and BAA position

    Decide between ClickHouse Cloud, self-hosted ClickHouse and DuckDB, and record why. For ClickHouse Cloud, confirm with ClickHouse that the services you plan to use are designated HIPAA services on the Enterprise plan, then complete HIPAA onboarding to put a Business Associate Agreement in place before any ePHI is sent. Self-hosted ClickHouse runs on your infrastructure under your team, so the Cloud BAA path does not describe it, and you should confirm with ClickHouse whether any agreement applies to your setup. DuckDB has no vendor to sign a BAA, so your organization carries the obligations for the host it runs on. This step is done when the signed BAA or a written responsibility statement is on file.

  3. Pin a supported self-hosted ClickHouse version

    If you self-host ClickHouse, choose a version that the ClickHouse security policy lists as supported and pin that exact build in your deployment tooling. The policy lists 26.9, 26.8, 26.7 and 26.3 as supported and treats all other versions as unsupported, so an older server cannot be described as patched. Choose a stable line or an LTS line based on how often you plan to upgrade, knowing that stable releases ship roughly monthly and LTS releases twice a year. Write an update plan that names who reviews each release, how it is tested on non-ePHI data and how a rollback works. This step is done when the pinned version, the update owner and the test record are in your change log.

  4. Enable and test DuckDB database encryption

    If you use DuckDB, turn on database encryption as introduced in DuckDB 1.4.0. It uses AES-256 with GCM by default and offers CTR as an option. Using a non-ePHI test file, confirm that the main header stays in plaintext while the remaining headers, data blocks, write-ahead log and temporary files are encrypted, and inspect each file to verify it. Record key custody: who generates the key, where it is stored, how it is rotated and who can read it. The DuckDB encryption post states that this encryption does not yet meet the official NIST requirements and that the user handles keys, so write that gap into your risk analysis. This step is done when the test results, key custody record and gap note are on file.

  5. Set access control and logging per option

    Apply access control and logging at both the host and application layers for the option you chose. For ClickHouse Cloud, review the database audit log documentation, enable the audit settings your plan supports and limit users and service accounts to the designated services. For self-hosted ClickHouse, configure user accounts, roles and network access in the server, and confirm which audit or query logging your pinned version provides. DuckDB runs inside a host process with no separate server, so restrict file system permissions on database, temporary and backup files, limit the service account the application runs as, and log access at the application layer. This step is done when a test user without an ePHI role is denied and each test access event appears in the designated log.

  6. Record the risk analysis and addressable decisions

    Write a risk analysis covering the ePHI flows from the first step, then record a decision for every implementation specification in the Security Rule's administrative, physical and technical safeguards that is addressable. Under 45 CFR 164.306(d), an addressable specification requires you to assess whether it is reasonable and appropriate. If you do not implement it, document why and put an equivalent alternative measure in place where one is reasonable. For example, the encryption and automatic logoff specifications under the access control standard are addressable. Required specifications have no such option, so record how each is met and where the evidence sits. This step is done when every specification in scope has a status, a reason and a pointer to its evidence.

  7. Assemble the evidence pack for the assessor

    Collect the evidence in one place and hand it to your organization's assessor, whether that is an internal compliance function or an external firm. Include the data inventory and flow diagram, the BAA record or responsibility statement, the pinned version and update plan, the DuckDB encryption test and key custody record, sample access and audit logs, and the risk analysis with its addressable decisions. Mark which items the platform team produced and which the compliance team owns. DeployOpen does not issue audit reports, attestations or certifications, and this sequence does not produce a certificate. This step is done when the assessor confirms receipt and lists any gaps to close before ePHI is loaded.

What ClickHouse vs DuckDB for HIPAA readiness takes from your team

Does DuckDB need a business associate agreement for HIPAA?

No vendor can sign one for DuckDB, because it is an embedded library with no company behind a hosted service. The organization using it carries the HIPAA obligations itself. That does not remove the BAA question from your project. Check the BAA position of every other service in the data path, including the cloud provider hosting the application, the storage holding Parquet files, backup tools, log pipelines and any notebook or orchestration service that touches electronic protected health information. If a provider will not sign a BAA, keep ePHI out of that service. Your risk analysis, access rules, encryption choices and documentation still apply wherever DuckDB runs. Ask your counsel to confirm how these obligations apply to your structure before you rely on this reading.

Can self-hosted ClickHouse sign a business associate agreement?

The open-source ClickHouse server cannot sign one, because it is software and not a company that hosts your data. The operator carries the obligations, including access control, encryption, audit logging, backups and documentation for the systems you run. Confirm the BAA position of the cloud account, data center or colocation provider where the cluster runs, and of any company that supports or manages the cluster for you. If you want a vendor-signed BAA for the service itself, ClickHouse documents HIPAA safeguards for designated ClickHouse Cloud services on its Enterprise plan, with onboarding steps for a BAA. Confirm the current terms with ClickHouse before you rely on them.

What drives the effort of a HIPAA readiness project for ClickHouse or DuckDB?

The main drivers are the number of systems that hold ePHI, the choice between ClickHouse Cloud and a self-hosted deployment, and how encryption and keys are set up. Each system that stores, processes or transmits ePHI needs documented access rules, audit logging and controls, so more systems means more work. Self-hosting moves patching, backup and network controls onto your team, while a managed service shifts part of that to the vendor under its terms. Encryption and key management add design decisions and evidence of how keys are created, rotated and restricted. Log pipelines and the volume of evidence you must keep can take a large share of the effort. Ask any provider for an effort breakdown by system and control area, not a single total.

How long does HIPAA readiness work take for a ClickHouse or DuckDB stack?

Scope drives time more than anything else, so the timeline should be written into the fixed scope before work starts. The number of systems holding ePHI, the number of environments, whether ClickHouse runs in a cloud account or on your own infrastructure, the state of existing documentation, and the approvals your organization needs all change the schedule. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first, so you can see what is included before you commit. Ask for milestones, a list of what your team must provide and when, the decisions that block progress, and what happens if a dependency such as a hosting provider's BAA takes longer than planned. Without a written scope, any date is a guess.

Can our own team handle HIPAA readiness for ClickHouse without outside help?

Yes, if your team has security engineering, database administration and platform operations skills, and time to write documentation. The work needs someone who can design access control and encryption, someone who can run, patch and back up the database and its clusters, and someone who can turn those controls into policies, procedures and evidence an assessor can follow. Much of the effort after the build is documentation and recurring evidence collection, so name owners who will keep those tasks going after any project ends. If one skill is missing, outside help can fill that gap for a defined scope. Before you start, list your gaps honestly and write down what the work needs from your organization, including named owners, system access and sign-off from compliance and legal.

Does DeployOpen certify HIPAA compliance for our data platform?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those. In practice, DeployOpen can configure access, encryption, audit logging and documentation for a self-hosted platform, run security testing, and assemble the evidence your assessor will request. Whether you need an outside attestation depends on your contracts, your regulators and your own risk decisions, so confirm that with your counsel and assessor early. When you compare providers, ask for a written scope that separates evidence preparation and findings from any attestation work, and make sure each deliverable is named.

How DeployOpen prepares a ClickHouse or DuckDB system for HIPAA review

DeployOpen plans, implements, hardens, documents and supports self-hosted platforms inside your own infrastructure, so your compliance and security teams can review them. For ClickHouse vs DuckDB, the work starts with where ePHI lives and which side has a vendor able to sign a Business Associate Agreement. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.

How we scope

  • Written scope naming the ClickHouse or DuckDB deployment, its data stores and every system that touches ePHI.
  • Scope maps which Security Rule safeguards apply to each component and which addressable specifications you will document.
  • Deployment model is confirmed first, since ClickHouse Cloud HIPAA coverage applies only to designated Enterprise services.

How we build

  • Self-hosted platforms get SSO, access control, audit logging and data handling controls inside your cloud, data center or air-gapped network.
  • Key handling is designed and tested, since DuckDB's own team says its encryption does not yet meet official NIST requirements.
  • Testing confirms what DuckDB encrypts, including the write-ahead log and temporary files, and what stays plaintext, including the main header.

How we hand over

  • Deliverables listed in the written scope, such as a safeguard-to-configuration map and documented reasons for addressable specifications.
  • Runbooks for backups, upgrades and key rotation, tied to the ClickHouse version lines that still receive security updates.
  • Written list of BAA and vendor steps you still own, including ClickHouse Cloud onboarding for any designated service.

How we support

  • Retainers cover ongoing support, upgrades and continuous testing, quoted from the written scope; DeployOpen publishes no price list.
  • Retesting after fixes and periodic upgrade reviews keep evidence current as ClickHouse stable and LTS releases ship.
  • DeployOpen prepares evidence for assessors but does not issue audit reports or certifications; independent auditors do.

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.