Which side fits SOC 2 and ISO 27001 audits: ClickHouse or Trino?
A team that must show SOC 2 or ISO 27001 controls over its analytics data should settle three questions before comparing features: where the hosting boundary sits, who operates each control, and which evidence the auditor will sample. ClickHouse fits when the data already lives in ClickHouse and the team wants the scope of ClickHouse Cloud's documented SOC 2 Type II and ISO 27001 attestations. Trino fits when queries span several systems and the team will build and evidence its own access rules and query logging. This page covers only the compliance angle. The general comparison sits on its own page, and the decision turns on hosting scope, operator responsibility and the sampled evidence.
On the ClickHouse side, the documented attestations cover ClickHouse Cloud: its SOC 2 Type II report has been in place since 2022 and its ISO 27001 coverage since 2023, both audited annually by independent auditors. Those attestations describe the managed service, so a self-hosted open-source ClickHouse server in your own infrastructure needs its own evidence. The documented audit trail is the database audit log, which is on by default in the system.session_log and system.query_log tables and retains data up to 30 days by default. If your retention expectation is longer, plan a materialized view or an export to S3, GCS or Azure Blob Storage, and test that the exported records still show who queried which table. Read the ClickHouse Cloud compliance overview to confirm which services and regions the audited scope covers.
On the Trino side, the documentation describes controls you configure, so the operating question is who runs the cluster and who signs off the access rules. The default access control allows all operations for authenticated users, so the first task is replacing it with file-based rules at catalog, schema or table level, or with Open Policy Agent or Apache Ranger for row filters and column masking. Authentication options include LDAP, OAuth 2.0 and Kerberos, with password file as the recommended starting point. For query evidence, the HTTP, Kafka, MySQL and OpenLineage event listeners are available; the MySQL listener writes query ID, SQL text and user to a trino_queries table that an auditor can sample. Confirm with your assessor which retention period and log integrity controls they will accept, and whether any vendor running Trino for you will provide an audit report covering that cluster.
What SOC 2 and ISO 27001 audits ask of a data warehouse or lakehouse
SOC 2 examinations test controls against the 2017 Trust Services Criteria (TSC), a framework the AICPA published with revised points of focus in 2022. The TSC has five categories: security, availability, processing integrity, confidentiality and privacy. The common criteria CC1 to CC9 cover security and apply to every SOC 2 report, while the other four categories add criteria only when you include them in scope.
- CC1 to CC3 (governance and risk): control environment, communication and information, and risk assessment. Expect questions on who owns the warehouse, how access decisions are approved and how risks to the data are assessed.
- CC4 and CC5 (monitoring and control activities): ongoing monitoring and the activities that put policy into practice, such as periodic reviews of who can read which tables.
- CC6 (logical and physical access): authentication, role design, least privilege and removal of access when people leave. This is where database users, roles, SSO and MFA settings get examined.
- CC7 to CC9 (operations, change and risk mitigation): detection of security events, change management for schema and configuration changes, and handling of risks from vendors and disruption.
- Category scope: adding availability, confidentiality or processing integrity brings criteria with their own evidence. The 2017 TSC holds 61 criteria in total, 33 of them common criteria.
Before you map controls, ask your auditor which categories and which systems fall inside the report boundary.
SOC is a suite of services that CPAs may provide, and the report type decides how far the evidence reaches. A Type 1 report covers the system description and whether control design suits the criteria as of a date. A Type 2 report adds an opinion on operating effectiveness over a period, which is what shows that controls ran throughout that period.
- Type 1 (point in time): confirms the system description and control design on one date. It is useful as a milestone, but it does not show that the controls operated.
- Type 2 (over a period): the auditor tests whether controls operated across an observation window, so evidence must exist for every part of that window.
- Query log retention: ClickHouse's database audit log sits in
system.session_logandsystem.query_log, kept up to 30 days by default. A longer window needs materialized views or exports to S3, GCS or Azure Blob Storage. Database audit log - Event listeners on Trino: the HTTP listener posts query created and completed events as JSON, and the MySQL listener stores them in a
trino_queriestable. Each destination needs its own retention and access controls. - Period artifacts: access reviews, change tickets, backup restore tests and alert reviews dated throughout the window, with the audit start date as one point among many.
Confirm the observation window with your CPA before it starts, and check that log retention covers the whole window.
ISO/IEC 27001:2022 is an information security management system standard. Its Annex A is normative and lists 93 controls in four themes taken from ISO/IEC 27002:2022: 37 organizational controls, 8 people controls, 14 physical controls and 34 technological controls. Most database work falls under the technological theme.
- Technological controls (clause 8, 34 controls): access to information and source code, logging and monitoring, configuration, cryptography, data masking and secure development. Expect the largest evidence set here.
- Organizational controls (clause 5, 37 controls): policies, supplier relationships, asset inventory and incident handling. Keep a register of datasets with a named owner for each.
- People controls (clause 6, 8 controls): screening, awareness training and assigned responsibilities, which matter for who can query sensitive tables and how those users are trained.
- Physical controls (clause 7, 14 controls): these matter most for on-premises or colocated hardware. With a managed cloud, the provider's evidence and your own supplier review cover much of this theme.
- Control mapping: one platform setting can serve several Annex A controls. Keep a table that links each control to the setting, the log that proves it and the owner.
Ask your certification body how it will sample technological controls for your scope, and which Annex A controls you exclude and why.
ISO does not certify organizations. Accredited certification bodies do, and they audit against ISO/IEC 27001 under ISO/IEC 17021-1, the requirements for bodies that certify management systems. The certification cycle lasts three years, with at least one audit in every calendar year, either a surveillance audit or the recertification audit.
- Accreditation: confirm the body is accredited for ISO/IEC 27001 by the accreditation body in your country before you sign.
- Recurring work: the cycle means audit preparation repeats. Budget staff time for surveillance audits in the years between certifications, not just for the first certification.
- Auditor rules: accredited bodies also apply ISO/IEC 27006-1:2024, which IAF MD 29:2024 required them to apply to all clients by 31 March 2026. Ask which edition applies to your audit.
- Continuous evidence: surveillance audits sample what changed, so access reviews, change records and backup restore tests should run on a schedule and exist before the audit starts.
- Scope boundary: the certificate covers the scope you define. Decide whether the warehouse, its pipelines and its BI users sit inside the ISMS boundary before the first audit.
Check the certificate scope and the cycle dates with your certification body before you schedule warehouse changes around an audit window.
How each side meets SOC 2 and ISO 27001 requirements as documented
This table sets out each platform's documented position against the control areas an assessor usually asks about for SOC 2 and ISO 27001. The main difference is that ClickHouse publishes Cloud service attestations, while Trino has no documented vendor attestation, so its assurance rests on the controls you configure and evidence yourself. Where a cell says to confirm, the published documentation does not settle the point, so ask the vendor or project in writing before it goes into your evidence pack.
| Requirement area | ClickHouse | Trino |
|---|---|---|
| Vendor attestation | ClickHouse Cloud holds SOC 2 Type II (since 2022) and ISO 27001 (since 2023). Covers the Cloud service only, so self-hosted is outside. | No documented vendor attestation. Confirm with the project or any managed Trino provider which reports and scope they hold. |
| Audit logging and retention | Query and session logs on by default, retained up to 30 days. Export to S3, GCS or Azure Blob Storage to keep them longer. | Configure an event listener: HTTP, Kafka, MySQL or OpenLineage. MySQL listener writes query ID, SQL text and user to trino_queries. Retention is set downstream. |
| Authentication | Confirm self-hosted authentication methods and multi-factor options for your version with ClickHouse before writing them into your control narrative. | Password file, LDAP, Salesforce, OAuth 2.0, certificate, JWT and Kerberos. Start with password file, as Trino recommends. |
| Access control | Confirm role, grant and row-level control options for your version, and how they map to your access reviews. | Default allows all operations for authenticated users until you set a policy. Alternatives: file-based rules, OPA, or Apache Ranger with row filters and column masking. |
| Encryption in transit | Confirm TLS settings for self-hosted servers and Cloud endpoints with ClickHouse, and record the versions in your evidence. | Trino documents TLS configuration for its server. Confirm the protocol versions, certificates and cipher settings for your release. |
| Encryption at rest | Confirm with ClickHouse which at-rest encryption applies to self-hosted and Cloud storage, and who manages the keys. | Confirm at-rest protection for spill files, caches and the storage behind each connector with the project and your storage team. |
| Data location | Self-hosted data stays on servers you choose. For Cloud, confirm region options and backup locations with ClickHouse. | Queries run where the coordinator, workers and connected sources sit. Your residency position depends on each source system. |
| Supported versions and license | Apache-2.0 server. Security updates cover 26.9, 26.8, 26.7 and 26.3, with 26.8 and 26.3 as LTS lines. Other versions are unsupported. | Apache-2.0 license. Requires 64-bit Java 25, minimum 25.0.1. Release 484 published October 15, 2026. |
How query and audit records flow to the assessor
Analysts and BI tools authenticate to a Trino coordinator or a ClickHouse server inside the organization's network. Trino sends query created and completed events to its configured event listeners, and the MySQL listener writes each event to a trino_queries table. ClickHouse writes system.query_log and system.session_log by default, with 30-day default retention, so a materialized view or export to S3, GCS or Azure Blob Storage is needed to keep records longer. The assessor samples these stores together with access reviews and change records. Check which listeners and retention settings are enabled. If ClickHouse Cloud is the chosen hosting, its vendor attestation sits outside your boundary and does not replace your own evidence.
Query and audit records move from each engine's logs to the sampled evidence set.
Evidence an assessor asks for in SOC 2 and ISO 27001 audits, and how each side produces it
Assessors start with what the provider can show about the service. ClickHouse's compliance documentation lists ClickHouse Cloud SOC 2 Type II since 2022 and ISO 27001 since 2023, audited annually by independent auditors. That evidence covers ClickHouse Cloud, so a self-hosted server in your own infrastructure relies on your own controls and records. Ask ClickHouse Inc. for the reports and scope statements before you plan the rest of your evidence.
- Current SOC 2 Type II report: Request the latest report from ClickHouse Inc. and note its audit period, the systems it names and any carve-outs.
- Scope statement: Confirm which products, deployment models and supported regions fall inside the report, so you can tell whether your workload is covered.
- ISO 27001 certificate: Ask for the certificate and its scope statement, and check the certification body's name and validity dates against your audit calendar.
- Subservice providers: Ask which subservice organizations the vendor relies on and how the report treats them.
Check that the report period overlaps the period your assessor samples, because a Type 2 report only speaks to the dates it names.
ClickHouse produces most of its audit evidence from its own system tables and grant configuration. ClickHouse's audit log documentation says the log is on by default in system.query_log and system.session_log, with retention up to 30 days by default. An assessor who samples activity across a longer window needs exports that you control, so plan the export before the first sample is requested. Confirm these defaults against the version you run.
- Query and session log exports: Export system.query_log and system.session_log on a schedule to storage you control, and keep the job definition and run records with them.
- Longer retention: Keep logs longer with materialized views or by exporting to S3, GCS or Azure Blob Storage, as described in the database audit log documentation.
- Grant and access exports: Export users, roles and grants at each review point, so a sampled date shows who could query which tables at that time.
- Version against the supported list: Record the running version and check it against the supported list in the security policy, which currently names 26.9, 26.8, 26.7 and 26.3. Confirm the list again on the day you rely on it.
- Upgrade change records: Keep the change ticket, release notes and test results for each upgrade, with the before and after version numbers.
Check that your export retention covers the longest sampling window in your audit period, and that every version in use appeared on the supported list while it was running.
Trino's default access control allows all operations for authenticated users, so an assessor will expect an explicit authentication method and an explicit authorization layer. The security overview recommends starting with password file authentication and lists LDAP, OAuth 2.0, certificate, JWT, Kerberos and Salesforce as alternatives. Your evidence shows which method you chose, how it is configured and who was allowed through it on each sampled date.
- Authentication configuration: Export the authenticator settings for the method in use (password file, LDAP, OAuth 2.0 or certificate), with secrets removed and the TLS settings included.
- Access control files: Export the file-based rules at catalog, schema or table level, or the Open Policy Agent or Apache Ranger policies in force, including row filters and column masks where Ranger applies them.
- Allow-all default replaced: Show the access control setting in use, so the assessor can see that the default allow-all behavior is no longer the operative rule.
- Access review exports: Produce dated exports of who holds which catalog, schema and table permissions, with the reviewer decision and each removal recorded.
Check that each sampled access review matches the policy file and authentication directory as they stood on that sampled date.
Trino's event listeners give an assessor query-level records. The HTTP listener posts query created and completed events as JSON. The MySQL listener stores each query event in a trino_queries table with the query ID, SQL text and user, and supports analysis of which data was accessed down to columns. Queries that users run directly against ClickHouse never pass through Trino, so those queries appear only in ClickHouse's own logs.
- Event listener configuration: Export the event listener settings showing which listeners are active, with endpoints and credentials redacted.
- Sample trino_queries records: Keep dated samples of trino_queries rows with query ID, SQL text, user and accessed columns, so one sample ties an identity to a query.
- Sample JSON HTTP events: Keep payloads from the HTTP event listener for query created and completed events, with the receiver's retention settings recorded.
- Release and Java runtime record: Record the Trino release in use (release 484 was published on October 15, 2026) and the Java runtime, since the deployment documentation calls for a 64-bit Java 25 runtime, minimum 25.0.1.
Check that the release and Java records match the cluster as it ran on each sampled date, and that the event receiver keeps records for the full period an assessor samples.
Configuring the chosen side so its evidence is ready before fieldwork
This sequence fixes the scope, pins a supported platform line, sets access rules, extends logs and assigns evidence owners before fieldwork starts. Each step names the owner and the output an assessor can inspect. Steps marked for one side only apply to that side.
Write the system description and scope
Document the systems, data stores, users and boundaries the audit covers, and list the components in each: ClickHouse servers and any Keeper nodes for ClickHouse, or the coordinator, workers, catalogs and connected sources for Trino. Ask the vendor in writing which attestation covers the product and the deployment model you run. ClickHouse's SOC 2 Type II and ISO 27001 coverage is documented for ClickHouse Cloud, so a self-hosted deployment needs its own evidence trail unless the vendor confirms otherwise. Done when the control owner signs the system description and the scope statement matches the architecture diagram.
Pin the platform to a supported line
Record the exact version in use and confirm it sits on a supported line before the audit window opens. ClickHouse side: the security policy lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates, and all other versions are unsupported. Trino side: run a current release on a 64-bit Linux host with a 64-bit Java 25 runtime of at least 25.0.1, and schedule upgrades as each release is published. Done when the change register holds a version record and the version check output for each node is saved with the scope file.
Set authentication and access rules
Trino side: start from password file authentication, as Trino's security overview recommends, and plan a move to LDAP, OAuth 2.0, certificates, JWT or Kerberos if your identity provider requires it. Trino's default access control allows all operations for any authenticated user, so write file-based rules at catalog, schema or table level, or evaluate Open Policy Agent or Apache Ranger for row filters and column masking. ClickHouse side: configure users, roles and grants against the version in use and confirm each setting in that version's documentation. Done when an access matrix maps every role to the catalogs, schemas or databases it can reach, and the data owner signs it.
Turn on and extend audit logs
ClickHouse side: the query and session logs are on by default in system.query_log and system.session_log, but they keep data for up to 30 days by default. Extend retention with a materialized view into a table you control, or export to S3, GCS or Azure Blob Storage, and set the retention period in your written log policy. Trino side: enable the HTTP event listener, which posts query created and completed events as JSON, or the MySQL event listener, which stores events in a trino_queries table with query ID, SQL text, user and accessed columns. Done when a test query shows one event from each source is readable and retained for the period in your policy.
Map criteria or controls to owners
For SOC 2, map each in-scope criterion to a named owner and a recurring evidence item. The common criteria CC1 to CC9 apply to every SOC 2, and the other categories are added only when they are in scope. For ISO 27001, map the chosen Annex A controls, which number 93 across four themes, to owners and evidence. Set the frequency and storage location for each item, such as access reviews, log exports and change tickets, so evidence is collected in the same place every cycle. Done when an assessor can trace each criterion or control to an owner, an evidence source and the last collection date.
Run an evidence pull as a dry run
Pull evidence for a sample period using the same queries, exports and steps the auditor will see, and record how long the process takes so you can judge whether it fits the audit window. Check that each log export contains the query IDs, users and timestamps you expect, that access reviews are signed, and that the scope statement still matches the running systems. Record each gap as a ticket with an owner and retest after the fix. Done when the evidence index shows a pass or fail for every control and the retest record is complete.
Why a vendor's attestation does not carry over to your self-hosted system
ClickHouse's SOC 2 Type II report (since 2022) and ISO 27001 certification (since 2023) describe ClickHouse Cloud, the managed service run by ClickHouse Inc., and independent auditors test them every year. A ClickHouse server you install on your own hosts sits outside that scope, and the same applies to any Trino coordinator and worker cluster. Both ClickHouse server and Trino are Apache-2.0 open-source software, and the license carries no attestation with it. Your auditor will place each self-hosted component inside your own system description (SOC 2) or ISO 27001 scope statement and test its controls directly. Confirm with the vendor exactly which service the cloud report covers, and read it only as background on how the vendor runs its managed service. ClickHouse's compliance overview is the place to start.
Because nothing carries over, your organization owns the controls, the evidence and most of the cost drivers. The number of systems in scope comes first. Each ClickHouse node, each Keeper node, each Trino coordinator and worker, and the BI tool and identity provider beside them all add controls to test. Existing logging comes second. ClickHouse records its audit trail in the system.query_log and system.session_log tables by default, and keeps it up to 30 days by default, so you must decide whether to extend retention with materialized views or export the logs to object storage. On the Trino side, you choose and configure an event listener, such as the HTTP or MySQL listener, before any query history exists to test. The SOC 2 type and period decide how much evidence you collect and over what span. A Type 1 report covers design at a point in time, while a Type 2 report also tests operating effectiveness over a period. The ISO 27001 scope statement defines which systems the management system covers.
Fees are the last cost component, and the parties who test your system set them. The independent auditor that issues a SOC 2 report and the accredited certification body that issues an ISO 27001 certificate each set their own fees and timelines. Under ISO/IEC 17021-1, an ISO 27001 certification cycle lasts three years and includes at least one audit in every calendar year, so those audits recur. DeployOpen does not set these fees. Ask each body for a written quote based on your scope, and ask DeployOpen for a separate quote built from the written scope of the preparation work. DeployOpen prepares systems and evidence, and it does not issue reports, attestations or certificates. The independent auditor and the accredited certification body do that work, and only they can say whether your self-hosted ClickHouse or Trino environment meets the criteria or the standard.
What teams ask before hiring help for SOC 2 or ISO 27001 audit preparation
How much effort does SOC 2 or ISO 27001 preparation take?
Effort depends mostly on how much of the environment is in scope and how much evidence already exists. No single figure applies to every team, so ask for an estimate built from a written scope. The four drivers that move the work most are:
- System count: each in-scope database, query engine, data source and admin path needs an owned control set and evidence.
- Logging gaps: missing query, access and change logs usually add the most work, because evidence for past periods cannot be recreated after the fact.
- SOC 2 type and period: a Type 1 report covers control design at one date, while a Type 2 report tests operating effectiveness over a period, so controls must work across the whole window.
- ISO scope: the scope statement and the Annex A controls you select decide which policies, records and technical settings must be proven.
Ask any provider to show how its estimate changes with each driver.
How long does SOC 2 or ISO 27001 audit preparation take?
The timeline follows the written scope and the audit window, which your auditor or certification body sets. For SOC 2, the examination period is agreed with the CPA firm performing the engagement. For ISO 27001, a management system certification cycle lasts three years, with at least one audit, either surveillance or recertification, in every calendar year, so that cycle is the reference point for planning. Preparation time grows with the number of in-scope systems, the number of controls that lack evidence today, and how quickly named control owners can respond. Ask for milestones tied to the scope document, and confirm the audit window with your auditor or certification body before you commit to dates.
What does the team need to provide for SOC 2 or ISO 27001 work?
The team must supply named people, access and decisions that only it can make. Expect to provide:
- Named control owners for each in-scope control, with a backup for each owner.
- Read-only configuration access to databases, query engines, identity providers and cloud accounts, so evidence can be pulled from the systems themselves.
- Log retention decisions, such as how long query and access logs are kept and where they are exported. ClickHouse documents that its database audit log tables keep data up to 30 days by default, and that longer retention needs materialized views or export to object storage, so this decision must be made early (ClickHouse audit log documentation).
- Vendor report requests, such as the current SOC 2 report or ISO certificate for any managed service in scope, obtained through the vendor's own process.
An implementation partner can prepare the evidence, but these owners and decisions stay inside your organization.
Can our team prepare for SOC 2 or ISO 27001 without outside help?
Yes, if the team has people with the right skills and time for the work. The skills that matter most include security engineering for configuration evidence, data engineering for the systems in scope, and working knowledge of the SOC 2 Trust Services Criteria or the ISO 27001 Annex A controls. The organization keeps ownership of its information security management system, its policies, its risk decisions and final sign-off, whichever partner it uses. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies perform the assessment itself. Confirm with your auditor which evidence formats it accepts before your team builds the evidence package.
Does a cloud provider's SOC 2 or ISO 27001 report cover a self-hosted server?
No. A provider's report covers that provider's service and the controls it describes, so it does not cover a ClickHouse or Trino server you install on your own machines. ClickHouse documents SOC 2 Type II and ISO 27001 coverage for ClickHouse Cloud, audited annually by independent auditors, and that attestation applies to the managed service's scope. Your self-hosted nodes, their operating system, network paths, backups and access settings fall under your own controls and your own assessment. If you use a commercial managed offering, confirm its report scope separately. Ask every vendor for its scope statement in writing, and map each in-scope system to an owner and to evidence you collect yourself (ClickHouse Cloud compliance overview).
What does a quote for SOC 2 or ISO 27001 preparation depend on?
A quote depends on the written scope. DeployOpen does not publish a price list, so there is no standard rate to look up, and a quote follows from the scope agreed in writing. Most engagements are fixed-scope, with scope, deliverables and timelines agreed before work starts. The scope items that move a quote include:
- The systems, clusters and data stores in scope, and the environments they run in.
- The SOC 2 type and period, or the ISO clauses and Annex A controls covered.
- The volume of evidence to build, and the logging gaps to close before the assessment.
- Whether retesting, handover documentation or ongoing support is included.
Ongoing support, upgrades and continuous testing are available as retainers, which recur, while preparation work is one-time. Ask any provider to itemize these elements and to state what is excluded.
Does DeployOpen issue a SOC 2 report or ISO 27001 certificate?
No. DeployOpen does not issue SOC 2 reports, attestations, ISO certificates or any other certification. It prepares systems, controls and evidence for compliance assessments, so your auditor can review them. A CPA firm performs a SOC 2 examination, and an accredited certification body performs ISO 27001 certification. Your evidence pack should therefore be built to the auditor's requests, and you should confirm the expected format before work starts. Those parties set the scope of their own work, so ask your auditor and certification body to confirm what they will accept from you. If a sales conversation suggests otherwise, treat it as a scope question and get the correction in writing.
How DeployOpen prepares the platform and evidence, without favoring either side
DeployOpen implements, customizes and documents self-hosted ClickHouse and Trino inside your own infrastructure, so your compliance and security teams can review both platforms directly. We prepare the systems, controls and evidence an assessor will ask for. Audit reports and certifications come from independent auditors and certification bodies, and the written scope decides which controls each platform must carry.
How we scope
- Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.
- The written scope should name which ClickHouse and Trino components, environments and data sets fall inside the audit boundary.
- Confirm with your auditor which SOC 2 categories and Annex A controls apply before design is frozen.
How we build
- Enable ClickHouse query and session logs in
system.query_logandsystem.session_log, then copy them to longer-term storage. - Replace Trino's default allow-all access control with file-based rules, Open Policy Agent or Apache Ranger before users connect.
- Choose Trino authentication (password file, LDAP, OAuth 2.0, certificate, JWT or Kerberos) and configure TLS.
How we hand over
- Deliver configuration baselines, access matrices and architecture documentation an assessor will request, mapped to control IDs.
- Document which Trino event listeners (HTTP, MySQL, Kafka or OpenLineage) feed the query audit trail.
- Record the ClickHouse and Trino version lines in use, and the security patch plan for each supported line.
How we support
- Offer ongoing support, upgrades and continuous testing as retainers after the initial handover.
- Plan for ClickHouse LTS and stable release cadence, so every upgrade is tested and documented before it reaches production.
- Re-review access rules, audit log retention and Trino connector credentials each cycle, since assessors look at operation over time.

