ClickHouse vs StarRocks for SOC 2 and ISO 27001 audits

This page covers only the compliance angle of ClickHouse and StarRocks for SOC 2 and ISO 27001 audits, and the general comparison is on its own page. ClickHouse Cloud has documented SOC 2 Type II and ISO 27001 attestations for the managed service, while self-hosted deployments of either product are assessed on the controls your team runs and evidences.

On this page

Which side fits SOC 2 and ISO 27001 audits, and what decides it

Compliance can decide between these two databases when a SOC 2 or ISO 27001 audit covers a warehouse or lakehouse and both products are on the shortlist. ClickHouse fits teams that want a managed service backed by documented vendor attestations. ClickHouse Cloud's compliance documentation lists SOC 2 Type II (since 2022) and ISO 27001 (since 2023), both audited annually by independent auditors, and query logs sit in system tables that can be exported. StarRocks fits teams where shared-data on object storage is central and that will build and review their own audit log pipeline, because its audit records are written to a log file by default and must be loaded and governed by the team. Three questions decide the choice: whether the assessed system is managed or self-hosted, how long audit records must be kept, and how credentials in logs are handled. This section covers the compliance angle only. The general comparison of the two databases is on its own page.

Managed or self-hosted changes which controls the assessor tests. The ClickHouse attestations cover ClickHouse Cloud, the managed service sold by ClickHouse Inc. The open-source ClickHouse server is Apache-2.0 licensed, and when you run it yourself, access, logging, backup and change controls are yours to document. Ask ClickHouse which report scope applies to your deployment and whether it matches your audit period. On retention, the ClickHouse database audit log is on by default in system.session_log and system.query_log, but those tables keep records up to 30 days by default. If your audit window is longer, you need materialized views or an export to S3, GCS or Azure Blob Storage, and that pipeline becomes part of the system in scope. For StarRocks, check where fe.audit.log is kept, how it rotates, and whether the table loaded by AuditLoader falls under the same retention policy.

Credentials in logs are the item most likely to produce a finding. A StarRocks GitHub issue reports that credentials in CREATE EXTERNAL CATALOG statements are written to audit and FE logs in clear text. Before the audit, create a test external catalog in a non-production cluster, search the audit and FE logs for the secret, and check the issue status against the version you run. Use audit_log_json_format if your log pipeline needs structured entries, and use audit_log_modules to decide which events are recorded, including connection events from v3.0. For ClickHouse, confirm in writing how query text containing secrets is stored in query_log and whether your export path redacts it. Then prepare the evidence an assessor will ask for: the retention setting, the export job, a sample log showing redaction results, and the access list for the log store.

What SOC 2 and ISO 27001 audits ask of a data warehouse

The database is one component inside your system or ISMS, so assessors test the controls around it: access, logging, change, backup and configuration. Neither framework certifies a database brand. The cards below set out the criteria, report types and certification cycle that shape each audit.

Common criteria CC1 to CC9

CC1 to CC9 are the common criteria that every SOC 2 report covers, and they make up the whole of the security category. Their subjects include the control environment, risk assessment, logical and physical access, system operations and change management. For a warehouse, the access, monitoring and change criteria matter most: who holds admin and query roles, whether query and audit logs are reviewed, and how schema and server configuration changes are approved. Ask your vendor which of these it evidences for its own service and which fall to you.

AICPA criteria download

Optional TSC categories

Availability, processing integrity, confidentiality and privacy are the four other Trust Services Criteria categories, and each adds criteria only when it is in scope. The 2017 criteria total 61: 33 common criteria, 3 for availability, 2 for confidentiality, 5 for processing integrity and 18 for privacy. Decide scope before the warehouse is built. Confidentiality matters if restricted financial or customer data lands in tables, availability if dashboards carry an uptime promise, and processing integrity if pipelines produce figures that clients rely on.

Type 1 and Type 2 reports

A Type 1 report describes the system and tests whether controls are suitably designed as of one date. A Type 2 report adds an opinion on whether those controls operated effectively over a period. For a warehouse, Type 2 means an assessor samples evidence such as access reviews, log checks and change tickets across the whole window, so controls must run continuously, not only on audit day. Check which report type your vendor holds, what period it covers, and whether your own deployment falls inside its scope.

AICPA SOC 2 overview

ISO 27001:2022 Annex A themes

Annex A of ISO/IEC 27001:2022 is normative and lists 93 controls in four themes taken from ISO/IEC 27002:2022: organizational (37), people (8), physical (14) and technological (34). The database falls mostly under the technological theme, but policies, supplier arrangements and roles sit under the organizational one. Expect assessors to map your warehouse controls to these themes, so keep a control list that names the database, its admin accounts and its logging setup.

ISO certification cycle and audits

ISO does not certify organizations; accredited certification bodies do. A management system certification cycle lasts three years, and the body must carry out at least one audit in every calendar year, either a surveillance audit or the recertification audit. Accredited bodies work to ISO/IEC 17021-1:2015 plus ISO/IEC 27006-1:2024, which IAF MD 29:2024 required them to apply to all clients by 31 March 2026. Ask your certification body which edition of those rules it uses and where the database sits in its audit plan.

How each side meets the audit requirement as documented

This table sets each product's documented audit features against the evidence an assessor will ask for under SOC 2 and ISO 27001. Read each row as what the product records or provides by default, then confirm the rest in your own environment. The main takeaway: ClickHouse ships with on-by-default query logs and a documented export path, while StarRocks writes audit records by default but needs its log handling reviewed for credential exposure.

Requirement areaClickHouseStarRocks
Vendor attestationsClickHouse Cloud: SOC 2 Type II (since 2022), ISO 27001 (since 2023), audited annually. Self-hosted servers fall outside these reports.Ask the project or any commercial provider for current attestation reports covering the exact version you run.
Audit loggingOn by default in the system.session_log and system.query_log tables.Audit records go to fe/log/fe.audit.log by default. The AuditLoader plugin loads them into a table. audit_log_modules picks events, with connection events included from v3.0.
Log retentionUp to 30 days by default in those system tables. Longer retention needs a materialized view or an export.Set and document how long the fe.audit.log files and the AuditLoader table are kept.
Log exportExport to S3, GCS or Azure Blob Storage to keep logs longer.AuditLoader writes to a table you can query. audit_log_json_format outputs audit entries as JSON for downstream tools.
Credential handling in logsConfirm how query text containing secrets is logged and masked in your version and configuration.Open issue 82691 reports CREATE EXTERNAL CATALOG credentials written in clear text to audit and FE logs. Check its status for your version.
Supported versions and security updatesSecurity policy lists 26.9, 26.8, 26.7 and 26.3 as receiving security updates. Other versions are unsupported.Version 4.1.3 was published September 17, 2026 on GitHub. Confirm the support window for your line before you pin a version.
Deployment and data locationRuns on your own servers or cloud accounts. Cloud regions are listed in ClickHouse's supported regions reference.Shared-nothing stores data on BE nodes. Shared-data (v3.0 and later) keeps data in S3, GCS, Azure Blob, MinIO or HDFS.
EncryptionConfirm TLS, encryption at rest and key management for your self-hosted build in your own configuration.Same check applies: confirm TLS, encryption at rest and key management in your own FE, BE and object storage configuration.
Access controlConfirm users, roles and grants, and how identities tie to query log entries, in your own deployment.Confirm FE user accounts, privileges and how the audit records show the acting user in your environment.

What the vendor covers and what your team still evidences

Each side of this comparison splits into a vendor layer, which covers the platform and any attestations its maker holds, and an organization layer, which covers configuration, logs, access and the ISMS an assessor tests. Attestations attach to a named service and scope, so confirm which deployment each report covers before you cite it in a system description.

ClickHouse Cloud attestations

ClickHouse's compliance documentation lists ClickHouse Cloud SOC 2 Type II, held since 2022, and ISO 27001, held since 2023, each audited annually by independent auditors. These attestations describe the managed service that ClickHouse Inc. operates. Check the report scope, the audit period and which regions and features fall inside it before you cite it. Then ask ClickHouse Inc. whether anything in those attestations extends to the open-source server you run.

Compliance overview

Self-hosted ClickHouse on your servers

The open-source server is Apache-2.0 licensed, and you should not assume Cloud attestations extend to it. Confirm with ClickHouse Inc. what, if anything, covers the build you run. Your team owns the rest of the evidence: which version runs, how quickly you apply stable and LTS updates, and whether that version sits on the security policy's supported list, which names 26.9, 26.8, 26.7 and 26.3. The system.query_log and system.session_log tables are on by default and keep up to 30 days, so export them to object storage if an assessor asks for a longer window.

Security policy

Self-hosted StarRocks on FE and BE nodes

In a shared-nothing deployment, frontend (FE) nodes handle metadata, client connections, query planning and scheduling, while backend (BE) nodes store data and compute. Your evidence must cover host hardening, access to FE metadata and backups for each node role. No vendor attestation is confirmed on this page, so ask StarRocks directly what it holds for the open-source build. Audit records go to fe/log/fe.audit.log by default, and GitHub issue 82691 reports credentials in external catalog statements written to audit and FE logs in clear text, so review that log handling first.

Issue 82691

StarRocks shared-data on object storage

In shared-data mode, stateless compute nodes (CNs) run queries and cache data, while the data lives in object storage such as AWS S3, Google GCS, Azure Blob Storage, MinIO or HDFS. The architecture is supported from version 3.0. For the audit, the bucket becomes a core system: document its encryption, access policies, retention and every principal that can read it outside StarRocks. The storage provider's own reports are part of your evidence, so obtain them and map them to the buckets you use. No StarRocks attestation is confirmed here.

Your ISMS and control set

Vendor attestations cover the vendor's controls, while your SOC 2 or ISO 27001 scope covers your people, change process, access reviews and incident response across every system in the data path. Your ISMS carries the layers no vendor report can. ISO/IEC 27001:2022 Annex A lists 93 controls in four themes, and SOC 2 applies common criteria CC1 to CC9 to every examination. A Type 1 report describes control design at a date, while a Type 2 report adds an opinion on operating effectiveness over a period. ISO does not certify organizations; accredited certification bodies do.

SOC 2 overview

How query and audit records reach the assessor

The diagram starts with a query run on each engine and follows its audit record out of the query path. On the ClickHouse side, system.query_log and system.session_log are on by default and keep records up to 30 days, so the hand-off to a materialized view or an export to object storage in your own account decides how long evidence survives. On the StarRocks side, fe.audit.log is written by default, and the AuditLoader plugin loads it into a table that serves as the retained store. The assessor samples from the retained copy on each side. Confirm who can read those stores, and review how your StarRocks version handles credentials that appear in audit logs.

Audit record flow for each engine, with the organisation's boundary marked.

The evidence SOC 2 and ISO 27001 assessors ask for, by side

ClickHouse keeps its audit trail inside the database. The query and session logs in system.query_log and system.session_log are on by default, and the vendor documentation says they are retained up to 30 days by default. Longer retention is the team's job: keep copies with materialized views inside ClickHouse, or export them to S3, GCS or Azure Blob Storage. For ClickHouse Cloud, ClickHouse Inc. publishes SOC 2 Type II and ISO 27001 evidence that you request for the Cloud scope. For self-hosted open source servers, the logs, retention settings and version records are yours to produce.

  • Retention configuration: Record the retention applied to system.query_log and system.session_log, any change from the 30-day default, and the date each change was made.
  • Exported log copies: Keep the S3, GCS or Azure Blob exports or the materialized view tables with access controls, a stated retention period and a sample showing they were written on schedule.
  • Cloud attestation report: Request the current SOC 2 Type II report and ISO 27001 evidence from ClickHouse Inc., then check which services, regions and deployment models they cover, starting with the ClickHouse Cloud compliance overview.
  • Supported-version record: Keep a dated inventory of every server version in each environment and compare it with the ClickHouse security policy, which lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates.

Confirm with your auditor whether vendor reports can cover the Cloud scope and what they must show for your own self-hosted deployments.

Where the audit trail breaks: retention, export and credentials

Retention is where the ClickHouse trail most often runs short, and it runs short quietly. The ClickHouse database audit log documentation says query and session activity is recorded by default in system.query_log and system.session_log, and that these tables keep data for up to 30 days by default. An assessor who samples access from several months earlier will find nothing there. Decide the retention period your control requires before the observation window opens, then build the longer copy with a materialized view into a table you own or a scheduled export to S3, GCS or Azure Blob Storage. Those documented defaults come from the managed service page, so confirm the retention settings on your own server version and deployment. Give the archive the same access controls as the source data, since a log of queries against sensitive tables is sensitive too.

StarRocks starts from a different place. By default it writes audit records to fe/log/fe.audit.log on each frontend node, a plain file that someone must load before anyone can query it. The AuditLoader plugin loads those records into a table, so decide early whether your audit evidence lives in the file, the table or both. Check audit_log_modules to confirm which events reach the log, and note that connection events are included from v3.0, so confirm that your version records the logins you need to evidence. Set audit_log_json_format if a log shipper or SIEM needs structured fields. Write down the rotation and retention settings for the FE log directory on every frontend node, because an assessor will ask for the logs covering the period under review and expects them to exist.

The third break is credentials. A StarRocks GitHub issue, #82691, reports that credentials in CREATE EXTERNAL CATALOG statements were written in clear text to the audit and FE logs. Read the issue thread and the release notes for the exact version you run to confirm whether a fix has shipped in it, and test that fix in staging before relying on it. Until you confirm, treat those logs as holding secrets: limit who can read the FE log directory and the audit table, search existing logs for object storage keys and catalog passwords, and rotate anything you find. Then make log handling review a standing control with a named owner, a recurring review of which statements and fields land in each log, a check after every upgrade, and dated records of each review. That supports the monitoring criteria in SOC 2 (CC7) and the logging control in ISO/IEC 27001 Annex A (8.15), and it shows the assessor that the control operates over time.

Configuring the chosen side for audit evidence

This sequence turns the platform choice into evidence an assessor can test. Run it on the side you shortlisted, in order, because the scope decision controls which log sources and version records you need later. Each step closes with an artifact you can file with the audit evidence set.

  1. Fix the assessed scope and hosting model

    Your compliance lead and the platform owner agree in writing which systems, data stores, environments and review period the assessment covers. Record whether the platform is a managed service or self-hosted open source on your own servers, because that answer decides who controls logs, patching and storage. For ClickHouse Cloud, request the SOC 2 Type II and ISO 27001 reports described in ClickHouse's compliance overview for the vendor side, and keep your own configuration inside your scope. For StarRocks, confirm with the vendor which managed options exist before relying on any third-party report. Done when the scope statement names the platform, its hosting model and an owner for each control, and the assessor has accepted it.

  2. Pin a version on the vendor's supported list

    Pick a release that appears on the vendor's current support list and pin the exact build in your deployment definition. For ClickHouse, the security policy lists 26.9, 26.8, 26.7 and 26.3 as supported with security updates, and 26.8 and 26.3 are LTS lines. For StarRocks, confirm the supported line on its GitHub releases page before pinning, and record the release you choose. Done when the pinned version, the support list entry and the date you checked are recorded together in the scope statement.

  3. Set ClickHouse audit log retention and export

    If you chose ClickHouse, the query and session logs in system.query_log and system.session_log are on by default, but they keep records up to 30 days unless you change that. Decide the retention period with the compliance lead, then copy records out with a materialized view into a table you control, or export them to S3, GCS or Azure Blob Storage. The DBA owns the export job and the compliance lead signs off the period. Done when a sample export lands in your storage and the retention rule is recorded in the evidence set.

  4. Configure AuditLoader for StarRocks audit logs

    If you chose StarRocks, audit records are written to fe/log/fe.audit.log by default. Install AuditLoader to load them into a table, use audit_log_modules to choose which event types appear, and decide whether audit_log_json_format should be on so entries are JSON for parsing. Connection events are included from v3.0, so confirm each setting in the docs for your release. Done when a test login and a test query both appear in the loaded table with every field your assessor will ask about.

  5. Review how credentials are stored and logged

    Search the FE and audit logs, and the ClickHouse query log, for secrets before the assessor does. StarRocks issue 82691 reports that credentials in CREATE EXTERNAL CATALOG statements were written to audit and FE logs in clear text, so check whether your release is affected and move those credentials out of statement text using whatever your release supports. Query text is also recorded in the ClickHouse query log, so apply the same check there and restrict who can read those log tables. Done when a targeted search finds no credential patterns and each finding has a documented fix.

  6. Restrict access and document roles

    Limit who can read audit tables and who can change logging settings, and map each role to a named person. Use the platform's own user and role controls, and where single sign-on applies, document how identity groups map to those roles. Keep the role list in the scope statement and update it on every joiner, mover and leaver. Done when an access export lists each account, its role and its approver, and the audit tables are readable only by the roles you named.

  7. Run a test extract an assessor could sample

    Choose a short window and a set of test actions, such as creating a role and running a query, then pull the audit records for those actions end to end. Ask someone who did not configure the logging to reproduce the extract from your written steps. Check that each record shows who acted, when, from where and with what outcome, and that the copy in your storage matches the source. Store the extract, its query and the reviewer's sign-off in the evidence folder. Done when an assessor can pick any sampled record and trace it to a named user and an approved change.

What buyers ask before hiring help with the audit

How much effort does SOC 2 or ISO 27001 evidence preparation take?

The effort depends mainly on scope size, whether the platform is managed or self-hosted, the number of log sources feeding the audit trail, and how mature your existing information security management system is. A single cluster with documented access reviews and an established change process needs far less preparation than several clusters, a lakehouse catalog and pipelines with no written owners. Self-hosting moves more work to your team, since you own backups, patching, log retention and access configuration, and an assessor will ask for evidence of each. Your auditor is paid separately from any implementation work, so ask for the effort split by these drivers and by one-time setup versus recurring audit-cycle tasks.

How long does an audit readiness engagement take to complete?

The timeline depends on the audit period, the state of your evidence history and how quickly your owners answer questions. A Type 2 SOC 2 report covers an operating period, and an ISO 27001 certification cycle runs three years with at least one audit in each calendar year, so existing evidence matters as much as the calendar. Engagements are fixed-scope, so scope, deliverables and timeline are agreed in writing before work starts. Ask for milestones tied to their dependencies: auditor availability, access grants to clusters and logs, and policy sign-off. Delays most often come from waiting on people and access to systems.

What does the client need to provide for the audit work?

You need named owners, system access and records from the audit period. In practice that means:

  • Named owners for access management, change management, logging and incident response, each with a backup.
  • Read access to the cluster configuration, user and role definitions, and audit logs.
  • Current policy documents, including the information security policy and access control procedure.
  • Evidence history such as access reviews, change tickets, backup restore tests and incident records, not screenshots taken only for the engagement.

ClickHouse keeps its database audit log tables up to 30 days by default, so exports to longer storage must already exist to cover the audit period. Reconstructing missing history is harder to defend in front of an assessor.

Can our own security team run the audit preparation alone?

Yes, if the team has the hours, the skills and an existing management system with a clear owner for each control. Many teams prepare in-house, especially where the platform team already documents its configuration and keeps dated evidence. The work that takes longest is often not technical hardening but the evidence trail: mapping each control to an owner, a procedure and a dated record for the audit period. Outside help makes more sense when nobody has the hours, when the platform is new to the team, or when the audit period has already started with gaps. DeployOpen can plan, implement and document controls and prepare evidence, but the auditor decides what it accepts, so your internal owners stay accountable.

What does a written quote for this work include?

A written quote follows from the agreed scope, so it should state clearly what is in and out. Ask for:

  • The systems covered, such as which clusters, environments and log sources.
  • The SOC 2 criteria or ISO 27001 Annex A controls in scope, named by ID and title.
  • Deliverables, such as the control mapping, configuration baselines, runbooks and an evidence index.
  • Who does what: DeployOpen's tasks, your owners' tasks, and the auditor's separate work.
  • Milestones, review rounds and what triggers a change order.

Confirm whether any tools or licenses you need are included. DeployOpen does not publish a price list, so the quote is the reference point for cost.

Does DeployOpen issue a SOC 2 report or ISO 27001 certificate?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. A SOC 2 report comes from an independent CPA firm after its examination against the AICPA Trust Services Criteria, and an ISO 27001 certificate comes from an accredited certification body after its audit. A Type 1 report covers control design as of a date, while a Type 2 report adds operating effectiveness over a period, so ask your customers which report they need before scoping the work. Ask your chosen auditor which evidence format and sampling approach it expects before preparation starts.

How DeployOpen prepares systems and evidence for the audit

DeployOpen plans and implements the ClickHouse or StarRocks environment inside your own infrastructure, then prepares the controls and evidence an assessor will ask for under SOC 2 or ISO 27001. We do not issue audit reports or certifications; independent auditors and certification bodies do. The work runs from a written scope through build, testing, documentation and handover.

How we scope

  • Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Scope names the clusters, catalogs, log destinations and data stores inside the SOC 2 or ISO 27001 boundary.
  • For ISO 27001, scope also reflects the three-year certification cycle and at least one audit each calendar year.

How we build

  • We deploy ClickHouse or StarRocks inside your cloud accounts, data centers or air-gapped networks, as self-hosted systems you control.
  • We configure audit logging on both sides: ClickHouse's system.query_log and system.session_log, and StarRocks's fe.audit.log, loaded by AuditLoader.
  • We test whether external catalog credentials reach StarRocks audit or FE logs in clear text, as reported in issue 82691.

How we hand over

  • Documentation covers configuration, access and logging settings, mapped to the control areas your auditor selects.
  • Evidence exports pull ClickHouse and StarRocks log records into a form your compliance team can give the auditor.
  • Your team receives the documentation and runbooks needed to operate and review the setup after handover.

How we support

  • Confirm the ClickHouse release line at scoping; the security policy lists 26.9, 26.8, 26.7 and 26.3 as supported.
  • Retainers can cover upgrades and continuous testing across audit periods, if the scope requires them.
  • Audit decisions stay with your independent auditor; DeployOpen prepares the systems and evidence but does not issue reports.

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.