Trino vs DuckDB for SOC 2 and ISO 27001 audits

For a team that must show SOC 2 or ISO 27001 controls over analytics data, Trino fits shared multi-user access to several sources, while DuckDB fits a single trusted application whose host already supplies identity and logging. This page covers the compliance angle only.

On this page

Trino vs DuckDB for SOC 2 and ISO 27001 audits: which fits your team?

Trino fits shared, multi-user access to several sources where the query layer falls inside the audit scope. DuckDB fits a single trusted application or team whose host already provides identity, logging and access review. This section covers the compliance angle only. The general Trino vs DuckDB comparison (licences, architecture, deployment and migration) has its own page, which the Trino hub should link to. Confirm that page's URL before publishing. Your choice depends on where your access controls and audit records sit, so map those before you pick an engine.

Four questions decide it. First, who connects: if analysts, services and BI tools share one cluster, Trino's authentication and access control become part of your access review. Its default access control allows all operations for any authenticated user, so you need file-based rules at catalog, schema or table level, or Open Policy Agent or Apache Ranger, before the design holds up. Second, count the sources, since each catalog is another system whose access you must evidence. Third, ask whether the assessor will sample query-level evidence. The MySQL event listener stores query ID, SQL text and user in a trino_queries table, and the HTTP listener posts query events as JSON. DuckDB has no built-in user accounts, audit log or RBAC, so its evidence must come from the application and host. Fourth, settle who owns the host, because that team produces the logs and access reviews.

Neither product is certified. Trino is Apache-2.0 licensed and DuckDB is MIT licensed, and neither carries SOC 2 or ISO 27001 status, so the controls, policies and evidence are yours to design and run. A SOC 2 report is issued by a CPA after examining your system against the AICPA 2017 Trust Services Criteria. An ISO/IEC 27001 certificate comes from an accredited certification body. Agree with your assessor early which records they will sample from the query layer, the application and the host.

What SOC 2 and ISO 27001 ask of a query engine or analytics database

SOC 2 and ISO 27001 differ in scope, report type and issuer, but both come down to the same evidence about the system holding the data. Read the five cards in order: set the scope, choose the report type and period, map the controls, confirm who issues the result, then gather access and audit evidence.

SOC 2 scope and criteria

SOC 2 reports use the AICPA's 2017 Trust Services Criteria with the revised points of focus published in 2022. The framework has five categories: security, availability, processing integrity, confidentiality and privacy. Security's common criteria, CC1 to CC9, appear in every SOC 2, while the other categories join only when your scope includes them. For a query engine, decide early whether confidentiality or privacy covers the datasets it reads, because that choice sets which criteria you must evidence.

2017 Trust Services Criteria

Type 1 versus Type 2 reports

A Type 1 report describes the system and whether its controls are suitably designed as of one date. A Type 2 report also tests whether those controls operated effectively over a period, so the auditor looks at behavior across time rather than at a single snapshot. For a query engine, that means access events, query logs and access reviews must exist for the whole period. Agree the period with your CPA before it starts, and confirm that logging and access reviews were running from day one.

ISO 27001 Annex A controls

ISO/IEC 27001:2022 Annex A lists 93 controls in four themes taken from ISO/IEC 27002:2022: 37 organizational, 8 people, 14 physical and 34 technological. The technological theme is where most query engine configuration maps, covering areas such as access rights, logging and information handling. Your statement of applicability records which controls you include and why. Work from the control titles and paraphrase them in your own policies, because the standard text itself is copyrighted.

Who issues each result

A CPA issues SOC 2 reports. Accredited certification bodies issue ISO 27001 certificates, working to ISO/IEC 17021-1 and ISO/IEC 27006-1. An ISO certificate runs on a three-year cycle with at least one audit in every calendar year, either surveillance or recertification. Ask your CPA whether the engagement is a SOC 2 examination, and ask each certification body which accreditation covers its work. Confirm with each assessor whether it will accept evidence prepared for the other framework.

Access and audit evidence

Access control, audit logging and data handling for the in-scope system must be evidenced under both frameworks. Trino's default access control allows all operations for any authenticated user, so file-based rules, Open Policy Agent or Apache Ranger must be configured and kept as evidence. Its MySQL event listener can store query IDs, SQL text and users in a trino_queries table. DuckDB ships no built-in user accounts, audit log or RBAC, so the application and host must supply that evidence. DeployOpen prepares this evidence for assessors but does not issue audit reports or certifications.

Trino security overview

How Trino and DuckDB meet access, logging and encryption as documented

This table sets out what each project's documentation says about the controls SOC 2 and ISO 27001 assessors usually ask about: authentication, authorization, logging, encryption, hosting, vendor attestation and patching. Read the Trino column as controls you must configure and evidence yourself, and the DuckDB column as controls that sit in your application and host. The main takeaway is that the evidence comes from your own configuration and host controls, and vendor attestation is something to confirm in writing.

Control areaTrinoDuckDB
AuthenticationPassword file, LDAP, OAuth 2.0, certificate, JWT, Kerberos, Salesforce. Docs suggest starting with password file.No built-in user accounts. Authentication sits with the host application.
AuthorizationDefault allows all operations for any authenticated user. Configure file-based rules, Open Policy Agent or Apache Ranger.No built-in RBAC in the documentation checked. Enforce access in the application and host file permissions.
Audit loggingHTTP, Kafka, MySQL and OpenLineage event listeners. MySQL listener records query ID, SQL text and user in a trino_queries table.No built-in audit log in the documentation checked. Audit evidence comes from the application and host.
Encryption in transit and at restTLS settings are documented for transport. At rest depends on each connected storage system. Confirm with each system's owner.Transit depends on the host application and any remote storage it connects to. Data-at-rest encryption is documented; read the DuckDB encryption post for your version.
Data location and hostingRuns on your 64-bit Linux hosts or Kubernetes; reads data in place through 37 connectors.Embedded in your host process, so data sits where your application puts it.
Vendor attestationNo SOC 2 report or ISO certificate confirmed. Ask the project or distributor for written answers.No SOC 2 report or ISO certificate confirmed. Ask the project or distributor for written answers.
Patching and versionsRelease 484 on October 15, 2026. Java 25, minimum 25.0.1. You patch and upgrade cluster nodes.v1.5.6 released September 28, 2026. No server to patch; upgrade the library inside your application.

Why DuckDB's embedded model moves the audit boundary

DuckDB removes a server from the audit scope. It runs embedded inside a host process, so there is no database server to install, update or maintain, and the database layer adds fewer hosts to the system description and asset inventory. The trade-off is that the pages checked describe no built-in user accounts, audit log or role-based access control. Identity, authorization and audit evidence must therefore come from the application that embeds DuckDB and from the host around it. This favors a single application or a small trusted team where the host already has SSO, central logging and a periodic access review. It weighs against a shared platform where analysts connect directly to the data and the assessor expects user-level evidence of who queried what and when.

The project's stated fit matters to the assessor only where it changes who can reach the data. DuckDB targets analytical workloads, complex long-running queries over large portions of the data and large bulk appends. Those traits widen the set of accounts that touch regulated data when a long-running scan or a bulk append runs under a person's own access to the database file. Confirm whether analysts will hold file-level access to the database file, whether one process mediates all reads and writes, and who owns the credentials of any process that opens the file. If many people open the file directly, the assessor will treat the host as a multi-user system and ask for user-level evidence that DuckDB itself cannot produce.

Illustrative example: a nightly scheduled job reads a read-only extract of warehouse tables, and no analyst opens the DuckDB file. The assessor would expect evidence that the job is defined in version control with a named owner and approval for changes, that it runs under a dedicated service account whose credential sits in a secrets manager, and that the extract is mounted read-only and writable only by the export process. Run logs should record start time, end time and outcome, and the host's periodic access review should list the service account and every person who can log in to the host. Ask who receives copies of the extract and whether its creation is logged. Confirm against the DuckDB documentation for your version which encryption and access features it provides before you rely on any of them.

Who covers what: the project, your organization, and the host for each side

Each side splits the work the same way: the project supplies software under a license, and your organization supplies the configuration, controls and records that an assessor tests. A license alone does not supply audit evidence, because the assessor tests your system as deployed. The controls listed in each card are your organization's responsibility to document, whichever engine you choose.

What the Trino project provides

The Trino project publishes the query engine under the Apache License, Version 2.0, with documentation, release notes and numbered releases such as release 484, published on October 15, 2026. That gives you the right to run, modify and redistribute the software and a public record of changes to read before each upgrade. The project does not include an audit report for your deployment. Ask any distributor or managed provider you rely on whether it holds an attestation covering its own build, and do not assume the license implies one. Confirm which release your environment runs for each audit period.

Trino release notes

What you configure for Trino

Trino's default access control allows all operations for any authenticated user, so replacing the allow-all default is the first decision an assessor will test. Choose an authentication method from the documented list, such as password file, LDAP, OAuth 2.0 or certificate authentication, and enable TLS as the TLS guide describes. Route query event output from an HTTP, Kafka, MySQL or OpenLineage listener into a store you control, with a retention period you set and can show. Hold connector credentials for each source in scope, and record how you patch against each Trino release.

Trino security overview

What the DuckDB project provides

DuckDB is released under the MIT License, and its intellectual property is held by the DuckDB Foundation. It runs as an in-process library embedded in a host application, so there is no database server to install, patch or keep running as a separate service. That shrinks the component list an assessor must walk through. The project does not ship built-in user accounts, an audit log or role-based access control, so those controls must come from the application and host that embed it. Check the license terms for the version you ship and keep your own record of that version.

DuckDB repository

What you build for DuckDB

Because DuckDB has no login layer of its own, you build identity and authorization into the application that embeds it, and document who may open which database file. Query logging has to live at the host or application, with query logging at the host or application as the control an assessor will look for first. If you encrypt databases at rest, you own key generation, storage, rotation and recovery, and you must show how keys are kept apart from the data. Cover host hardening, file permissions, patching of the DuckDB version and backups of the database files.

Encryption in DuckDB

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

Trino produces most of its access and query evidence through its own configuration and event listeners, but only when those features are enabled and their output is kept for the whole audit period. The default access control allows all operations for any authenticated user, so the access rules and their history are what an assessor reads first.

  • Access rules and change history: Keep file-based rules, or Open Policy Agent or Apache Ranger policies, under version control with each change tied to an approved ticket. A Type 2 sample will pick rule versions from across the period, and an ISO surveillance audit will revisit the access control review.
  • Authentication and TLS settings: Export the authentication method and TLS configuration at the start and end of the period. The Trino security overview lists the options, so confirm which ones apply to your cluster. Both audit types will check that changes are recorded.
  • Event listener output: Retain HTTP listener JSON or MySQL listener rows for the full period, not only recent logs. The MySQL listener stores query ID, SQL text and user in a trino_queries table, so confirm those fields are populated for every query type in scope.
  • Release and Java runtime records: Tie each upgrade to its release notes, such as release 484 published October 15, 2026, and to its test results. Record the Java runtime too, since Trino's deployment docs require a 64-bit Java 25 runtime, minimum 25.0.1.

Before the audit, pull the query log for one test user and confirm that every field the assessor will request appears for that user.

What Trino's audit trail proves and where it stops

Trino's documented event listeners are where the audit trail starts, and two of them matter most for an assessment. The HTTP listener posts query created and completed events as JSON, so your log pipeline receives each query as it starts and finishes. The MySQL listener stores each query event in a trino_queries table with the query ID, the SQL text and the user, which supports analysis of which data was accessed, down to columns. Use the MySQL listener when an assessor asks who read which column, and confirm in the MySQL event listener documentation which fields each event carries for the version you run.

The organization still owns the rest of the evidence. You decide where the log store lives, how long events are kept, and how they are protected from change, including who can alter or delete rows in trino_queries. You also choose the central log platform that receives the HTTP events, and you must confirm that SQL text does not capture secrets or personal data, such as literal values typed into filters. The condition matters most: the default access control allows all operations for authenticated users, so the audit trail records activity and restricts nothing. Pair it with configured file-based rules, Open Policy Agent or Apache Ranger, and document which rule each access finding depends on. Before the assessment, write down what the event data does not record and check those details against the documentation for your Trino version.

Where Trino and DuckDB check identity, authorize access and leave audit evidence

The sketch starts at the analyst client or the application, both outside the organization's network. In the Trino path, the coordinator passes the caller's identity to authentication, then to the access control decision, and only permitted queries reach the workers that read the data sources through connectors. The coordinator also sends query events to a retained log store, which the assessor samples. In the DuckDB path, the application passes each call through its own authorization layer before the embedded DuckDB library runs inside the host process, so the evidence is the host logs the assessor samples. Confirm where each data source runs relative to the boundary, and confirm that every control shown is configured in your environment before you rely on it.

Sketch of the documented flow, not a reference architecture.

Configuring Trino for an audit-ready access and logging baseline

This sequence sets up the identity, authorization, encryption and logging controls an assessor will test on a Trino cluster. Each step ends with a record you can file as evidence, and those records are only as good as the scope and tests behind them. Confirm every setting in your own environment before you rely on it.

  1. Define in-scope systems, data and sources

    Start with a written scope register that names every Trino catalog, the data classes each one holds (for example, customer records or financial ledgers) and the owner of each source. Include external connectors such as Snowflake or BigQuery even though those systems run outside the cluster, because queries that pass through Trino still reach that data and an assessor will expect to see the path. Agree the register with the data owners and the compliance lead. It is done when every catalog in the coordinator configuration maps to a named source, owner and data class, and nothing reachable from Trino sits outside the register.

  2. Replace allow-all access with tested rules

    Trino's default access control allows every operation for any authenticated user, so this step replaces that default before any audit period opens. Choose file-based rules for catalog, schema and table permissions, or Open Policy Agent, or Apache Ranger if you need row filters and column masking. Write the rules from the register in step one, then test the deny cases as well as the allow cases: a user without a grant should be refused, and the refusal should appear in your logs. It is done when a test script of denied and permitted queries passes and the rule files are under version control.

  3. Choose and record authentication

    Trino's security overview lists several authentication methods, including password file, LDAP, OAuth 2.0, certificate, JWT and Kerberos, and recommends starting with password file authentication. Treat that as a starting point for a test environment. The production method should be agreed with the identity team so that user creation, credential rotation and offboarding follow the same process as your other systems. Confirm whether your identity provider can enforce multi-factor authentication for the chosen method. It is done when the identity team signs off the method in writing and a disabled test account can no longer log in.

  4. Enable and record TLS settings

    Follow Trino's TLS documentation to enable encryption for client connections to the coordinator and, where your architecture requires it, for traffic between nodes. Record the certificate source, the issuing authority, where the private keys are stored, the protocol settings and the person responsible for rotation. Keep the configuration files with the change record. Confirm the result by testing that clients connect over TLS and that a plain connection attempt fails in your deployment. If it does not fail, log that as a finding. It is done when the configuration snapshot and the test results are filed on the same record.

  5. Route event listener output to retained storage

    Enable an event listener so query activity leaves the cluster. Trino's documentation covers HTTP, Kafka, MySQL and OpenLineage listeners. The HTTP listener posts query created and completed events as JSON to an endpoint you run. The MySQL listener stores each query event in a trino_queries table with the query ID, SQL text and user, and the documentation describes it as supporting analysis of which data was accessed down to columns. Confirm that the stored fields answer what an assessor will ask: who ran which query, when, against which catalog, schema and table, and whether it succeeded. SQL text can contain sensitive values, so decide how that field is protected. Agree retention and access to the log store with the compliance lead. It is done when a test query appears in the retained store with those fields.

  6. Set patch process and file evidence

    Set a patch and upgrade routine tied to Trino's release notes. Trino's deployment documentation requires a 64-bit Java 25 runtime, minimum 25.0.1, so check the JDK in every environment before you schedule an upgrade. Trino release 484 was published on October 15, 2026, so record which release each environment runs and how far behind the current release it is at each review. For every change, file the release notes reviewed, the test results, the approval and the deployed version. It is done when the routine has a named owner, a review cadence agreed with the compliance lead, and a filed record for the most recent change.

What buyers ask before hiring help for a SOC 2 or ISO 27001 audit

How much effort does a SOC 2 or ISO 27001 audit take?

The effort is set by the written scope, so ask any team to price against a scope document. Four drivers matter most: the number of systems and data sources in scope, the number of users and service accounts whose access must be reviewed, how much identity and logging already exists, and whether an audit period is already running. Trino's default access control allows all operations for authenticated users, so access rules are work you add. DuckDB has no built-in user accounts or audit log, so identity and logging come from the application and host around it. A running audit period raises effort because evidence gaps found late are harder to close. Agree the scope, sources, user groups and audit period in writing before discussing any duration.

Can an internal team run a SOC 2 or ISO 27001 audit alone?

Yes, if the team has people covering configuration, evidence collection and review, and those people can answer an auditor's sample requests. The skills to confirm are:

  • Platform engineering for configuring authentication, access rules and the hosting of the query engine.
  • Security engineering for logging, log retention, encryption settings and the access review process.
  • Compliance or GRC staff who map each control to evidence, keep the control matrix current and track what the auditor has requested.
  • An internal reviewer who checks evidence for completeness before it goes to the auditor.

Auditors and certification bodies still form the opinion or grant the certificate. If one of these skills is missing, name it in the scope as a gap to fill.

Does DeployOpen issue SOC 2 reports or ISO 27001 certificates?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. For SOC 2, an independent CPA firm issues the report. For ISO 27001, an accredited certification body issues the certificate after its own audit. DeployOpen's part is the work before that: configuring access and logging, documenting controls, collecting evidence and preparing the team for the auditor's sample requests. Confirm with your auditor or certification body which evidence format and sampling approach they expect before the scope is signed.

Does Trino or DuckDB already hold a SOC 2 report or ISO certificate?

Get this answer in writing from the project or its distributor before you rely on it. Ask whether a SOC 2 report or ISO 27001 certificate exists for the product, the release and the deployment model you plan to run, and for which scope and date. Request the document itself, check the period it covers, and check whether it covers the vendor's own organization or a managed service. Even when a report exists, it describes the operator's controls for that service. It does not replace your own control evidence for your cluster, your identity provider and your logs.

What does a quote for audit readiness need to include?

A quote follows from the written scope, and DeployOpen does not publish prices, so no price is given here. Most engagements are fixed-scope, so the agreed scope and deliverables set what is quoted. Ask that the scope name:

  • The systems and data sources in scope, including the query engine, catalogs and the applications that call it.
  • The identity provider and how users, groups and service accounts map to access.
  • Log retention, where logs are sent and who can read them.
  • The audit type and timing, such as SOC 2 Type 1 or Type 2 for a stated period, or ISO 27001 surveillance or certification.

Also ask which deliverables are included, who owns each evidence item after handover, and whether recurring evidence collection is quoted separately from configuration.

Which SOC 2 or ISO 27001 costs are one-time and which recur?

Configuration is mostly one-time work: setting up authentication, access rules, event logging, encryption and the documented control set. Recurring work includes evidence collection, periodic access reviews and, for ISO 27001, surveillance audits. Under ISO/IEC 17021-1, a certification cycle lasts three years and includes at least one audit in every calendar year, so audit costs recur even though initial certification is a one-off. A SOC 2 Type 2 report covers an operating period and is repeated on the cadence your auditor and contracts require. Recurring effort grows with the number of users, sources and logs to review. Ask the quote to separate one-time and recurring items, and to say who is paid for each: your staff, DeployOpen if it is in the written scope, or the auditor or certification body.

How DeployOpen prepares an audit-ready Trino or DuckDB setup

DeployOpen scopes, builds and documents a Trino or DuckDB setup so your team can show how it handles access, logging and data handling during a SOC 2 or ISO 27001 assessment. We prepare systems, controls and evidence for the assessment; independent auditors and certification bodies issue the reports and certificates.

How we scope

  • Written scope naming the engine, catalogs, data stores and assessment period the work covers.
  • Agree which trust services criteria or ISO 27001 Annex A controls the platform supports, and which the organization owns.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Configure Trino access control beyond the default, which allows all operations for authenticated users.
  • Enable an event listener, such as the MySQL listener, so query IDs, SQL text and users are logged for review.
  • For DuckDB, place user accounts, access control and audit logging in the embedding application and host, since DuckDB ships none.

How we hand over

  • Written documentation of the configuration, including Trino access rules or DuckDB host controls, mapped to the in-scope controls.
  • An evidence pack of query event logs, access rule files and host logging settings, collected for the assessment period.
  • A written list of controls the organization still owns, such as policies, access reviews and log retention.

How we support

  • Security testing of the Trino or DuckDB setup, including access rules and exposed endpoints, reported with findings and fixes.
  • Preparation for the assessor's questions, such as who can read which tables, with answers tied to the documented configuration.
  • Upgrades and ongoing support for Trino or DuckDB are available as retainers, so configuration changes stay documented after go-live.

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.