ClickHouse vs DuckDB for SOC 2 audits: which one fits
Decide where the analytics store sits in SOC 2 scope before an assessor tests it, because that placement sets the evidence they will ask for. A shared ClickHouse server with many users and its own audit trail is a system in its own right: it has accounts, queries and logs the assessor can sample directly. DuckDB embedded in an application is a different case. It runs inside the application's process, so the application's login, logging and host controls carry the evidence. This page covers the compliance angle only. The general trade-offs between the two engines are on the separate ClickHouse vs DuckDB comparison, so read that first if the engine choice is still open.
Be precise about which system a vendor report covers. ClickHouse Cloud's ClickHouse Cloud compliance overview lists SOC 2 Type II (since 2022) and ISO 27001 (since 2023), both audited annually by independent auditors, and those reports cover the managed cloud service. A self-hosted ClickHouse server that you run in your own accounts sits outside that report, so you must describe and evidence its controls yourself. Do not assume a vendor attestation exists for DuckDB. Ask the project for one and confirm its scope before citing it in your assessment, because a Type II report covers operating effectiveness over a period.
For a self-hosted server, audit evidence is a configuration task you own. ClickHouse documents its database audit log in the system.query_log and system.session_log tables, which are on by default and retained for up to 30 days by default. If your evidence window is longer, keep the records with materialized views or export them to S3, GCS or Azure Blob Storage, and test that an assessor can read the exported copy. Also confirm the server runs a version on ClickHouse's current security support list, which names 26.9, 26.8, 26.7 and 26.3 at the time of writing. For DuckDB, the documentation describes no built-in user accounts, audit log or role-based access control, so the assessor will test the application's authentication, logging and file permissions around the database file.
Where the audit boundary falls for each side
The diagram starts with one question: is the data store shared by several people or services? If yes, the ClickHouse server is its own system in scope, so its access controls, query and session logs, and any export of those logs belong inside the boundary. Those logs are on by default but kept for up to 30 days unless they are exported or materialized. If no, DuckDB runs inside the application and has no built-in user accounts, audit log or RBAC, so the boundary sits with the application's authentication and logs and the host's access and file protection. Both paths feed one evidence store. Check log retention, the supported ClickHouse version line and who can reach the host.
Which side of the audit boundary a data store falls on, by sharing.
What SOC 2 and ISO 27001 ask of a data store
A SOC 2 examination is measured against the AICPA 2017 Trust Services Criteria, in the version with revised points of focus published in 2022. Every SOC 2 covers security through the common criteria CC1 to CC9. The availability, processing integrity, confidentiality and privacy categories join only when your system commitments put them in scope. The 2017 set contains 61 criteria: 33 common criteria, 3 availability (A1), 2 confidentiality (C1), 5 processing integrity (PI1) and 18 privacy (P1 to P8). For a warehouse that serves customer-facing reports, confirm early whether confidentiality or availability belong in your system description, because each adds criteria the data store must meet. A Type 1 report tests whether controls are suitably designed as of a single date. A Type 2 report adds an opinion on whether they operated effectively over a period, so evidence has to exist across the whole observation window.
ISO/IEC 27001:2022 is the third edition of the standard for an information security management system. Its normative Annex A lists 93 controls in four themes: 37 organizational, 8 people, 14 physical and 34 technological. ISO itself does not certify organizations. Accredited certification bodies perform the audits, and under ISO/IEC 17021-1 the certification cycle lasts three years, with at least one audit, either surveillance or recertification, in every calendar year. For a data store, the Annex A controls an assessor tends to sample first are access control (5.15), privileged access rights (8.2), secure authentication (8.5), logging (8.15), use of cryptography (8.24), configuration management (8.9), change management (8.32) and information backup (8.13). Ask your certification body which controls they will sample each year and how your Statement of Applicability maps to the warehouse.
Map the warehouse to those criteria by answering a few questions. Who can reach the data: ClickHouse users and roles are defined on the server, while DuckDB has no built-in user accounts, so access control sits in the host application and the files around it. What is logged: ClickHouse records queries in system.query_log and sessions in system.session_log by default, but keeps them for up to 30 days unless you copy them out with materialized views or export them to S3, GCS or Azure Blob Storage. DuckDB has no built-in audit log, so the application must record who ran what. Change and patch handling: ClickHouse publishes stable releases roughly monthly and LTS releases twice a year, and its security policy lists 26.9, 26.8, 26.7 and 26.3 as supported, so pin a supported line and keep upgrade records, while DuckDB patches arrive through your application's release cycle. Confirm encryption at rest and in transit, backup and the physical location of data in your own configuration, since an assessor will ask for proof of each setting.
How ClickHouse and DuckDB meet SOC 2 and ISO 27001 controls as documented
This table sets the documented controls for ClickHouse and DuckDB side by side, one requirement area per row, so you can see which evidence each platform produces and which evidence your team must build. Read the ClickHouse column for ClickHouse Cloud unless a row says otherwise, since the scope of a self-hosted deployment is yours. The main takeaway: ClickHouse Cloud arrives with a vendor attestation, while DuckDB leaves the audit evidence to the application and host around it.
| Requirement area | ClickHouse as documented | DuckDB as documented |
|---|---|---|
| Vendor attestation | ClickHouse Cloud holds SOC 2 Type II (since 2022) and ISO 27001 (since 2023), audited annually. Self-hosted scope is yours. | No vendor attestation found. Confirm current status with the DuckDB project. |
| Audit logging | Enabled by default in the system.session_log and system.query_log tables. | No built-in audit log. Evidence comes from the application and host. |
| Log retention | Up to 30 days by default. Keep longer with materialized views or export to S3, GCS or Azure Blob Storage. | No built-in log to retain. Retention is set by the application and host around it. |
| Access control | Confirm the user and role model for your version and deployment. | No built-in user accounts or RBAC. Access control must come from the host application. |
| Encryption | Confirm encryption at rest and in transit for your version and deployment. | A data-at-rest encryption write-up exists. Confirm its scope and which files it covers. |
| Data location | Cloud regions are listed on the supported regions page. Self-hosted, you choose the location. | Wherever the host process runs, so location follows the application's hosting. |
| Patch and support windows | Security updates for 26.9, 26.8, 26.7 and 26.3; stable releases monthly, LTS twice a year, each LTS supported one year. | No server to patch. v1.5.6 published September 28, 2026; the host application must be updated. |
| Licensing | Server is Apache-2.0. ClickHouse Inc. sells ClickHouse Cloud as a managed service. | MIT. Intellectual property is held by the DuckDB Foundation. |
The evidence an assessor asks ClickHouse and DuckDB to produce
ClickHouse gives an assessor more to work with because the server records its own activity. The database audit log is on by default in the system.query_log and system.session_log tables, but those tables keep data for up to 30 days by default. Evidence for a full audit period therefore has to be exported while the period is running. A Type 2 style examination samples records across the whole period, so a sample from month three will not exist later unless someone exported it at the time.
- Query and session log extracts: The platform team exports these tables on a schedule and keeps dated copies covering the audit period. Ask for the export query, the schedule and the filters used.
- User and role configuration exports: The database administrator exports the user and role definitions at set dates, showing who held which role and when it changed. Compare these against the identity provider's group records.
- Version records checked against supported lines: The platform team keeps the running build for each period and matches it to the supported list in the ClickHouse security policy, which names 26.9, 26.8, 26.7 and 26.3. Confirm the list on the date of each sample.
- Retention and export job records: Scheduler logs, materialized view definitions and the configuration for exports to S3, GCS or Azure Blob Storage, plus bucket listings that show the exports ran. Storage owners supply the bucket records.
- ClickHouse Cloud report through the vendor trust process: If Cloud is chosen, request the SOC 2 Type II report and the ISO 27001 certificate from ClickHouse Inc. through its trust process. ClickHouse Cloud compliance overview lists the attestations. Auditors issue these, not your team, so confirm that the scope covers the services and regions you use.
Check that every export has a named owner, a schedule and a retained copy, and that the Cloud report's scope matches the service and region where your data sits.
DuckDB produces little audit evidence of its own. It is an in-process library with no built-in user accounts, audit log or role-based access control in the pages reviewed, so an assessor will look to the application and host that embed it. The application team and the infrastructure team produce these records. They must cover the whole audit period, because a Type 2 style examination samples records across that period and checks them over time.
- Application authentication and authorization logs: The application team produces these from the code that loads DuckDB. Each login, role check and denied action should carry a timestamp and a user identifier. Because DuckDB does not record who ran a query, these logs are the main record of user-level access.
- Host access and file permission records: The infrastructure team keeps operating system audit logs, ownership and permission records for database files and reviews of the service account. These show who could open the files and whether that changed during the period.
- Encryption configuration records: Keep the settings that govern encryption at rest, the key management arrangement and the key rotation history. Check the DuckDB encryption write-up against the version you run before relying on it, and have the security team review the records.
- Pinned DuckDB version records: The build pipeline owner keeps lockfiles, container image digests or package manifests that show the exact DuckDB version in each environment on each date. The latest release in the reviewed sources is v1.5.6, published September 28, 2026, so the records should show which version was running before and after any upgrade.
- Change records for application releases: The engineering lead keeps pull requests, review approvals and deployment tickets for each release that touched the query path or the DuckDB version.
Confirm that each record has an owner and a retention period, and that the application logs capture the user identity an assessor will sample against the host and version records.
Why retention and scope decide the audit more than the engine
On ClickHouse, retention sets how far back your evidence can reach. The database audit log is on by default in the system.session_log and system.query_log tables, and they keep up to 30 days by default. A SOC 2 Type 2 report covers an operating period, and an ISO 27001 certification cycle runs three years with at least one audit in every calendar year, so evidence older than 30 days has to be exported before the period begins. Set up the export early, either through a materialized view that writes to a table you control or by shipping the logs to S3, GCS or Azure Blob Storage, and confirm the destination keeps records for the full window. Ask your auditor which period they will sample and how far back they will ask for query evidence, because those answers set your retention.
With DuckDB, the question shifts from database retention to file scope. The engine is an in-process library with no built-in user accounts, audit log or role-based access control, so evidence comes from the application and host around it. Write down where the database files live, including host paths and any object storage the application uses, then list every copy the application makes, such as exports, Parquet extracts and report snapshots. Each copy holding in-scope data needs the same access and retention controls as the original, and each excluded copy needs a written reason. Backups of those files are the application team's responsibility, so document their schedule, encryption and restore test as owned controls.
Vendor attestations close the section, and they answer a narrower question. ClickHouse Cloud has held SOC 2 Type II since 2022 and ISO 27001 since 2023, with annual independent audits, as set out in the ClickHouse Cloud compliance overview. Those reports speak to the vendor's service on its audit dates, so they do not cover your self-hosted servers, your application or the copies you make. Before you rely on a report, read the report's scope and period, confirm the systems and regions you use are listed, and check whether its period overlaps your own audit window. Where the overlap is partial, ask the vendor what it can provide for the gap and record that gap in your own system description.
Configuring a self-hosted ClickHouse server for audit evidence
This sequence turns a self-hosted ClickHouse server into a system an assessor can test. Each step names the decision or setting to confirm and the record it leaves in the audit file. Confirm each item against the documentation for the version you run, because log behavior and access mechanics can differ between version lines.
Agree the boundary and audit period
Before any configuration, the compliance lead, the platform owner and the auditor agree in writing which ClickHouse servers, databases, users, network paths and support staff fall inside the system description, and which audit period the evidence must cover. Ask the auditor which report type applies, since a Type 1 report covers control design as of a date and a Type 2 report covers operating effectiveness over a period. Done when the boundary and period are written into the scope document and the auditor has confirmed them, so every later step produces evidence for the same system.
Pin the server to a supported version line
Choose a version line that appears in the supported list of the ClickHouse security policy, and record it in the system description. The policy lists 26.9, 26.8, 26.7 and 26.3 as currently supported with security updates, but confirm that list on the day you pin, because every other version is listed as unsupported. Stable releases ship roughly monthly, LTS releases ship twice a year, and each LTS release is supported for a year. Write an upgrade plan that moves the server to a supported line before the current one drops off the list, and keep release notes and a change record for each move. Done when the pinned version, the upgrade calendar and the change records sit in the evidence folder.
Confirm audit logs populate and export them
On your pinned version, query
system.session_logandsystem.query_logand confirm that rows appear for logins and queries from your test accounts. ClickHouse's documentation says these tables are on by default and retained up to 30 days by default, so write that retention into the system description and do not rely on it for longer. Before the default window closes, set up export to object storage, either with a materialized view that writes to a table you control or with an export to S3, GCS or Azure Blob Storage. Compare exported row counts with the source for a sample day. Done when a dated export exists in your storage account and the count check is recorded.Define users, roles and access reviews
Create a named account for every administrator and every connecting service, grant roles that match the duties in your access matrix, and avoid shared accounts. The mechanics for defining users, roles, grants and profiles differ by version, so read the access control pages for your pinned line and confirm each setting there before you rely on it. Schedule access reviews on a cadence agreed with the auditor, and have a reviewer compare live grants with the matrix and sign off each change. Done when the matrix, a grant export and one signed review record for the period are filed.
Confirm encryption at rest and in transit
Check encryption against the documentation for your pinned version, not against general guidance. For transit, confirm which protocols the server accepts for native and HTTP connections and whether plaintext listeners can be disabled. For rest, confirm whether data on disk is encrypted, which disks and storage policies are covered, and where keys are held and who can read them. Record the settings, then run a test such as a connection attempt without TLS that must fail. Done when the settings, the key custody note and the test output are filed with the system description.
Run and record a backup and restore test
Take a backup of the data and server configuration using the method documented for your version, store it outside the server, and restore it into a separate environment. Compare row counts and a sample query on the audit tables against the source, and note how long the restore took so your recovery expectation is based on your own data. Record the backup job, the restore steps, the results and the person who signed them off. Done when a restore has succeeded and the record shows the comparison.
Collect evidence on a fixed schedule
Set a collection calendar agreed with the auditor and run it the same way each cycle. Each cycle collects the pinned version, upgrade and patch records, retention settings, exported audit logs, access review sign-offs, encryption check output and the latest restore test. Assign a named owner for each item and store them in one location with dates. Ask the auditor which samples they will select, so the evidence is in the form they will test. Done when each cycle produces a complete, dated set that someone other than the owner can locate in the audit folder.
Apply the same steps if DuckDB is chosen
If the team chooses DuckDB instead, keep the same boundary, logging and patch steps, but apply them to the application and host that embed it. DuckDB runs inside a host process and has no separate server to install, update or maintain, so the patch record moves to the application and host. The pages checked show no built-in user accounts, audit log or RBAC, so access, logging and encryption evidence has to come from the application and host around it. Done when the application logs, host patch records and access controls cover the same period and boundary the ClickHouse evidence would.
What SOC 2 and ISO 27001 buyers ask before hiring help
Does choosing ClickHouse or DuckDB let my company pass a SOC 2 or ISO 27001 audit?
No. Auditors test your organization's whole system: who has access, how changes are approved, how incidents are handled and how evidence is kept. A vendor's SOC 2 or ISO 27001 report covers only that vendor's service, so ClickHouse Cloud's reports support the vendor side of your review but do not cover your pipelines, users or configuration. DuckDB is an embedded library with no built-in user accounts, audit log or role-based access control, so the application and host around it must provide that evidence. DeployOpen prepares systems, controls and evidence for an assessment, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work.
How much effort does a SOC 2 or ISO 27001 database project take?
The effort depends on the size of the audit scope and on what your team already runs, so a duration needs a scoped assessment. The main drivers are how many systems sit inside the boundary, whether centralized logging and access reviews already exist, how many user accounts must be reviewed, and whether evidence is collected automatically or by hand each cycle. A team that already ships logs to a central store and tracks changes in tickets needs far less configuration work than one starting from defaults. Ask any provider to break its estimate down by system, control area and evidence source, and to say which inputs it expects you to supply.
Can our own team handle SOC 2 or ISO 27001 work without outside help?
Often yes, if you have security engineers who can configure the database and document owners who keep the control descriptions current. Most of the early work is configuration: enabling and exporting audit logs, restricting roles, setting retention and backing up the systems in scope. The ongoing part is a repeatable habit of collecting evidence on a schedule, such as access reviews, change approvals and log samples that an auditor can pick at random. Teams often struggle with the cross-team pieces: agreeing the system boundary, writing policies that match how work is actually done and keeping owners accountable. Outside help is most useful when one of those owners is missing or when a first audit date is close.
What does a SOC 2 or ISO 27001 implementation quote depend on?
A quote follows from a written scope, so the provider should set out what is in and out before pricing. The inputs that move it are the environments covered (production, staging and any analytics copies), the systems and data flows inside the boundary, and the deliverables you expect, such as configuration, documented controls, an evidence routine or handover. Ask whether security testing or evidence preparation is included, because each is a separate body of work. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and it does not publish a price list. Request a quote tied to that written scope so you can compare providers on the same basis.
Which SOC 2 or ISO 27001 costs recur after the first year?
Neither self-hosted ClickHouse nor DuckDB charges a license fee, since both are open source under permissive licenses, so the recurring costs sit in the work around them. Staff time for access reviews, log review, patching and upgrades is often the largest and recurs every audit cycle. Infrastructure for the database hosts and storage for exported audit logs also recur, and longer retention raises that cost. Independent auditors bill for each assessment, and ISO 27001 certification cycles run three years with at least one audit in every calendar year. If you use ClickHouse Cloud, ClickHouse Inc. bills the service itself, so model that subscription separately from the open-source options.
Does DeployOpen certify SOC 2 or ISO 27001 compliance for us?
No. DeployOpen does not issue audit reports, attestations, certifications or any other assurance opinion. It plans, implements and hardens self-hosted systems inside your own infrastructure, sets up the controls and prepares the evidence that an independent SOC 2 auditor or an ISO 27001 certification body will review. Those parties decide whether your organization meets the criteria. Before work starts, ask any implementation partner to state in writing what it delivers and what it leaves to the auditor, and confirm with your auditor which evidence format it accepts. That written split helps avoid gaps between what you expect the partner to deliver and what the assessor will sample.
Where do ClickHouse audit logs go, and how long do they last?
In ClickHouse Cloud, the database audit log is on by default in the system.session_log and system.query_log tables, and those tables keep rows up to 30 days by default. To keep evidence longer, you can build materialized views that copy the rows into your own tables, or export them to S3, GCS or Azure Blob Storage. Choose retention that covers the audit period your assessor will sample, and test that exports complete on schedule. DuckDB has no equivalent built-in log, so queries and file access must be recorded by the application or host that runs it.
How DeployOpen helps prepare the system and evidence
DeployOpen plans, implements, hardens, documents and supports self-hosted platforms inside your own infrastructure, which is where the SOC 2 and ISO 27001 evidence has to come from. For ClickHouse and DuckDB, that means treating the server and each embedded host as separate evidence sources, each with its own access, logging and retention setup. DeployOpen prepares that evidence but does not issue audit reports, attestations or certifications; independent auditors and certification bodies do.
How we scope
- The written scope names each ClickHouse server, cluster and DuckDB host in the audit boundary before work starts.
- Control mapping covers the SOC 2 criteria and Annex A controls that touch the platform, agreed with your compliance lead.
- Fixed-scope engagements have deliverables and timelines agreed in writing, and ongoing support can run as a retainer.
How we build
- Configure access control, authentication and logging for the ClickHouse server, confirming each setting against the version in use.
- Extend ClickHouse audit retention beyond the default 30 days using materialized views or export to object storage.
- For DuckDB, document the host, file permissions and the application logs that supply the audit trail.
How we hand over
- A written evidence index maps each control to the config file, log export or screenshot the assessor will sample.
- Runbooks cover upgrades, backups and rollback, including the ClickHouse release line you have chosen.
- Handover includes a walkthrough so your team can reproduce each evidence pull without DeployOpen present.
How we support
- Retainers can cover ongoing upgrades, backups and continuous testing of the ClickHouse and DuckDB setup.
- Ask your auditor which period the evidence must cover, since a Type 2 examination tests operating effectiveness over time.
- Confirm with ClickHouse whether its Cloud SOC 2 and ISO 27001 reports reach a self-hosted server.

