Which engine fits SOC 2 and ISO 27001 audits, and what decides it
Trino fits when the audit centers on SQL access to lakehouse and database tables and on per-query event logs. Apache Spark fits when the audit centers on batch, streaming or machine learning jobs running on clusters. Both need your own access control, logging and evidence work before an auditor can rely on either one. This page covers the compliance angle only, and the general comparison sits on its own page. Read the defaults before you scope anything: Trino's default access control allows all operations for authenticated users, and Spark's authentication and ACL settings default to off, with spark.authenticate and spark.acls.enable both set to false.
Those defaults become your starting point in the system description. Trino's Trino security overview lists password file, LDAP, OAuth 2.0, certificate, JWT and Kerberos authentication and recommends starting with password file authentication, so the method you choose is a decision to record with its owner and date. Put file-based rules, Open Policy Agent or Apache Ranger in place before the audit period begins. For Spark, turn on spark.authenticate and spark.acls.enable, and create the spark.eventLog.dir directory with permissions you can document, because the operator must set those up. Do not assume either project carries a SOC 2 or ISO attestation you can inherit. Confirm that with the vendor, and ask your auditor how each engine is treated in the system description.
The practical question is where your evidence will come from. With Trino, the HTTP event listener posts query created and completed events as JSON, and the MySQL event listener stores each query in a trino_queries table with the query ID, SQL text and user, which supports analysis of accessed data down to columns. That is the kind of record an assessor uses to test who read which table, and when. With Spark, the evidence leans more on application-level access control and event logs, so plan how those logs will be retained, protected and reviewed. Before you pick an engine, pull a sample of queries or job runs over a period you choose and check whether an assessor could trace each one to a named person and a dataset.
What SOC 2 and ISO 27001 audits ask of a query engine
SOC 2 and ISO/IEC 27001 both test how the organization manages information security, not the software alone. The cards below cover the criteria and controls an assessor maps to your environment and what the query engine can and cannot supply. ISO certification is granted by accredited certification bodies, and its cycle runs three years with at least one audit each calendar year.
Security criteria apply to every SOC 2
The security category of the AICPA 2017 Trust Services Criteria is built from common criteria CC1 to CC9, and every SOC 2 report includes them. For a query engine, they reach authentication, access rules, logging and change control across the cluster and its catalogs. Check which of these controls your team owns and where each one is evidenced, because the engine does not produce the control narrative on its own.
AICPA 2017 criteriaFour categories added only in scope
Availability, processing integrity, confidentiality and privacy are the other four trust services categories. Each one adds its own criteria only when the organization includes it in scope for the report. Illustratively, a lakehouse holding customer personal data may bring privacy criteria into scope, while an internal reporting cluster may not. Write the scope statement before choosing the engine, and have your auditor confirm it.
Criteria in the 2017 set
The 2017 Trust Services Criteria, in the version with revised points of focus published in 2022, contain 61 criteria in total: 33 common criteria, 3 for availability, 2 for confidentiality, 5 for processing integrity and 18 for privacy. Points of focus are guidance for assessing each criterion, so they shape the evidence you collect but do not add criteria. Ask your auditor which points of focus they will test against for each in-scope category.
Type 1 and Type 2 reports
A Type 1 report describes the system and tests whether controls are suitably designed as of a single date. A Type 2 report adds an opinion on whether those controls operated effectively over a period. For a query engine, a Type 2 period means you need records showing access rules were enforced throughout the window, such as query event logs and access reviews. Confirm with your auditor which report type and period your customers expect before the cluster is built.
Annex A's 93 controls
ISO/IEC 27001:2022 Annex A lists 93 controls in four themes: organizational, people, physical and technological. The technological theme holds 34 technological controls, and this is where most query engine settings, access paths and logs fall. Decide which Annex A controls apply to your system, record that decision, and list the Trino or Spark controls you rely on along with the reason for each exclusion.
The engine is one component
A query engine can enforce authentication, access rules and query logging, but it cannot design the control set around it. The organization owns the policies, access reviews, change approvals and the evidence an assessor samples. Treat Trino or Spark as one component in the system description, and name the owner and the evidence location for every control that depends on it.
Trino security overviewHow each side meets the requirement as documented
This table sets each control area an assessor will review against what the Trino and Apache Spark documentation says for it. Where a cell points you to an official page, confirm the setting there and in your own configuration before you cite it. Both engines ship with permissive defaults for access control, so an assessor will expect you to show the settings you changed.
| Requirement | Trino as documented | Spark as documented |
|---|---|---|
| Authentication: CC6 (SOC 2), Annex A 8.5 (ISO 27001) | Password file, LDAP, Salesforce, OAuth 2.0, certificate, JWT and Kerberos. The security overview recommends starting with password file. | Shared-secret authentication for RPC channels via spark.authenticate, default false. Kerberos supported for submitting applications. |
| Authorization: CC6 (SOC 2), Annex A 5.15 and 8.3 (ISO 27001) | Default access control allows every operation for authenticated users. File rules, Open Policy Agent and Apache Ranger (row filters, column masking) are alternatives. | spark.acls.enable, default false, sets view and modify permissions per application. It needs an authentication filter to take effect. |
| Query and audit logging: CC7.2 (SOC 2), Annex A 8.15 (ISO 27001) | HTTP, Kafka, MySQL and OpenLineage event listeners. MySQL listener stores query ID, SQL text and user in trino_queries and supports column-level access analysis. | Event logging writes to spark.eventLog.dir, which the operator must create with proper permissions. |
| Encryption in transit: CC6.7 (SOC 2), Annex A 8.24 (ISO 27001) | Confirm coordinator and worker TLS settings on the Trino TLS page before you describe transport encryption. | Confirm RPC and UI encryption settings on the Spark security page before you describe transport encryption. |
| Data location: confidentiality scope (SOC 2), Annex A 5.12 classification (ISO 27001) | Queries data in place through 37 connectors (Trino connector docs), including Delta Lake, Hive, Iceberg and PostgreSQL. | Runs on single-node machines or clusters, so location depends on your storage and cluster placement. Check the Spark security page for encryption settings. |
| Release support and patching: CC7.1 (SOC 2), Annex A 8.8 (ISO 27001) | Release 484 published October 15, 2026, after 483 (July 17, 2026) and 482 (June 25, 2026). Confirm support windows in the release notes. | 4.2.0 released July 14, 2026. Feature releases quarterly from 4.3.0. 3.5.x extended LTS ends November 2027, security fixes only. |
| Vendor attestation: CC9.2 (SOC 2), Annex A 5.19 (ISO 27001) | Open-source project under Apache-2.0. Confirm any project attestation with the Trino project, and ask a managed provider for its own report. | Apache Software Foundation project under Apache License 2.0. Confirm any attestation with the foundation or your distributor, then keep your own deployment evidence. |
The evidence SOC 2 and ISO 27001 assessors ask for, and how each side produces it
Trino's evidence comes from its authentication setup, its access control rules and its event listeners. The Trino security overview lists several authentication methods and recommends starting with password file authentication, so the first item an assessor will ask about is which method is set and where its credentials live. The default access control allows all operations for authenticated users, so the rules actually in force are the evidence that matters most.
- Authentication configuration: exports of the coordinator settings that show the authentication type in use, along with the password file or identity provider settings it depends on. Scope the coordinator and the identity provider.
- Access control rules in force: the file-based rules at catalog, schema or table level, or the Open Policy Agent or Apache Ranger policies if those are used, exported with their version history. Scope the policy store and the people who can change it.
- Listener configuration: which event listeners are enabled (HTTP, Kafka, MySQL or OpenLineage) and where their events are sent. Scope each receiving system.
- MySQL listener exports: if the MySQL listener is used, dated extracts from the
trino_queriestable showing query ID, user and SQL text, which supports analysis of accessed data down to columns. Scope the MySQL database, its access controls and its backups, because the SQL text may contain sensitive values.
Check that the exported rules match the files the running coordinator loads, and that each export date falls inside the audit period.
Spark's evidence sits in its security settings and in the files it writes. The Spark security documentation says that spark.authenticate and spark.acls.enable both default to false, and that UI access control lists only take effect with an authentication filter in place. An assessor will look for the effective values in each cluster during the audit period, not the defaults.
- Authentication values: the effective value of spark.authenticate on each cluster, with a record of how the shared secret is provisioned and who can read it. Scope the cluster manager and its configuration files.
- ACL setting and filter: the value of spark.acls.enable together with the authentication filter placed in front of the Spark UI, since the setting alone does not enforce access. Scope the UI gateway or proxy that hosts the filter.
- Event log permissions: the permission record for the spark.eventLog.dir directory, which the operator must create with proper permissions. Capture owner, group and mode with dated listings. Scope the storage system that holds the event logs.
- Kerberos submission settings: if Kerberos is used to submit applications, the submission configuration and the key distribution center records showing which principals can submit. Scope the key distribution center. If Kerberos is not used, record the submission control that replaces it.
Confirm which of these settings applies to each cluster, because a cluster without an authentication filter cannot show enforced UI access control.
Some evidence applies to both engines and to the platform around them. Under a SOC 2 examination, the security criteria apply to every report, and the common criteria cover the access, change and monitoring controls that these records support. An ISO/IEC 27001 certification body will ask for similar records through the Annex A controls. A Type 1 report describes control design as of a date, while a Type 2 report also tests operating effectiveness across a period, so the records must cover that full period.
- Access reviews: dated reviews of who holds administrator, query and job submission rights on Trino and Spark, backed by identity provider exports. Scope the identity provider and the source of group membership.
- Change records: tickets and approvals for each change to access rules, authentication settings, Spark configuration and listener settings. Scope the change system and the repository that stores configuration.
- Version records: the Trino and Spark versions running in each period, with the release notes reviewed for security fixes. Scope the deployment pipeline and the image or package registry.
- Retention and incident records: the retention settings for event listener output and event logs, plus any incident tickets that touch either engine. Scope the log storage and the backup system.
- Operating-period record: a continuous set of the items above covering the whole Type 2 window, with a documented owner for each gap. Scope every system listed in the other tabs for the full period.
Agree the period and sampling approach with the assessor before collection starts, because gaps in dated records are hard to reconstruct after the window closes.
How query events and configuration reach the assessor
The diagram starts with users and BI tools, which authenticate to Trino or submit jobs to Spark. Each engine applies its own access rules before it reads the connected data stores. Trino writes query events to the MySQL event listener store, which the auditor will examine as an in-scope system. Spark writes to the event log directory, which the operator must create with proper permissions. Both log stores feed the organization's evidence store for the assessor. Check that the trust boundary around the engines and their logs is documented, that the access rules match what you actually configured, and that each log store has defined retention and access controls.
Evidence path from access to assessor, with the engine trust boundary marked.
Configuring the chosen engine before the audit period starts
This sequence sets up the chosen engine so the evidence exists before the audit period starts. Each step ends with an output an assessor can read, from the scoped control list to access rules, event logs and sample queries. Run the steps in order, because later steps depend on the scope and identity decisions made earlier.
Fix the audit scope first
The compliance lead and the system owner agree in writing which Trust Services Categories apply to the SOC 2 examination. Security is covered by the common criteria CC1 to CC9, which apply to every SOC 2 report, while availability, processing integrity, confidentiality and privacy are added only when they are in scope. For ISO/IEC 27001, record which Annex A themes (organizational, people, physical and technological controls) the warehouse or lakehouse touches. Output: a signed scope note listing the platform, its users, its data classes and the criteria or controls each configuration change is meant to support.
Turn on authentication for the chosen engine
Platform engineering enables authentication before any user or service can reach the cluster. For Trino, start with password file authentication, which Trino's security overview recommends as the starting point, and plan a move to OAuth 2.0, LDAP or certificates if your identity provider requires it. For Spark, set spark.authenticate explicitly to true, because its documented default is false, and manage the shared secret for RPC channels as a controlled credential. Output: a test showing an unauthenticated client is refused, with the configuration files kept under version control.
Replace allow-all defaults with explicit access rules
Trino's default access control allows all operations for any authenticated user, so replace that default before data is loaded. Write file-based rules at catalog, schema or table level, or use Open Policy Agent, or Apache Ranger where row filters and column masking are needed. For Spark, enable spark.acls.enable, which defaults to false, and place an authentication filter in front of the Spark UI, because the access control lists have no effect without it. Output: rule files reviewed by the data owner and a test showing a user outside the grant list is denied on a sample table and on the Spark UI.
Enable event listeners and event log directories
Turn on Trino event listeners so each query is recorded with its user and SQL text. The HTTP listener posts query created and completed events as JSON, and Kafka, MySQL and OpenLineage listeners are also available. The MySQL listener writes each event to a trino_queries table, which supports review of accessed data down to columns. If Spark event logging is used, the operator must create the spark.eventLog.dir directory and set its permissions by hand. Output: exported query events from a test account showing user, query ID and SQL text, and an event log directory limited to the required accounts.
Set encryption in transit for each engine
Platform engineering configures TLS on client, coordinator and worker traffic, following each project's own security documentation. For Trino, use the Trino TLS guide. For Spark, use the encryption sections of its security documentation, and confirm which internal channels each version covers. Record the certificate source and the owner responsible for renewal, and check connections to the metastore and data sources as well. Output: a configuration review showing no plaintext listener on in-scope paths, with any exception documented alongside its compensating control.
Run a test period and collect evidence
Run the configured platform with test users and representative data for the period you need to demonstrate, and keep change records, access reviews and event log exports as they are produced. Confirm with your auditor the length of the evidence window and the samples they will select, since this depends on the examination type. A SOC 2 Type 2 report tests operating effectiveness over a period, so evidence must exist throughout it. Output: an evidence folder per control containing the scope note, configuration exports, rule files, sample query events, access review results and any exceptions with named owners.
How release support windows show up in patching evidence
Spark's support windows are published, so patching evidence for a Spark cluster can be tied to a dated policy. Spark 4.2.0 was released on July 14, 2026, with maintenance releases 4.1.3 and 4.0.4 on July 15, 2026 and 3.5.9 on July 16, 2026. Spark's versioning policy moves feature releases to a quarterly cadence starting with 4.3.0, maintains each major and feature branch for six months, and makes the last release of each major line an LTS maintained for 18 months. The 3.5.x extended LTS runs to November 2027 and receives security fixes only. For an assessor, the useful record is which Spark line each cluster runs and the date it leaves maintenance, so a team still on 3.5.x should set its next upgrade decision well before that date.
Trino's supplied release history is shorter and dated: release 482 on June 25, 2026, release 483 on July 17, 2026 and release 484 on October 15, 2026, according to the Trino release notes. Trino's deployment documentation requires a 64-bit Java 25 runtime, minimum 25.0.1, so the JVM build on coordinator and worker hosts belongs in the same patch record as the Trino version. Before you write a patching policy, confirm Trino's support window for each release in its release notes, because that window sets your upgrade deadline. Do not carry Spark's six-month branch or 18-month LTS figures across to Trino. For each cluster, record the Trino version, the JVM build and the date each change was applied and tested.
The reason these version records matter is the audit cycle. Under ISO/IEC 17021-1, an accredited certification body runs a three-year certification cycle with at least one audit, either surveillance or recertification, in every calendar year. That makes version history recurring evidence that must stay current through the whole cycle, not only at the first audit. Each annual audit is likely to sample how upgrades were approved, tested and dated, so keep change tickets that link every Trino or Spark version change to the matching release notes. Confirm with your certification body and your SOC 2 auditor which change and patch records they will sample, and in what period.
What buyers ask before hiring help for the audit
How much effort does SOC 2 or ISO 27001 audit preparation take for Trino or Spark?
Effort depends mostly on scope. The main drivers are the number of catalogs and connectors Trino exposes (Trino's documentation lists 37 connectors), which workloads and users fall in scope, whether Trino and Spark both read the same tables, and how much evidence already exists. Each engine and catalog that touches in-scope data needs its access rules, authentication settings and logging reviewed. A team with maintained access files, retained query logs and documented change records has far less to rebuild than a team starting from defaults, where Trino allows all operations for any authenticated user. Ask for an effort breakdown that lists each engine, catalog, user group and evidence source separately.
How long does a SOC 2 or ISO 27001 audit preparation engagement take?
The timeline comes from the written scope and the audit period, so ask for it in writing before work starts. A SOC 2 Type 1 report covers the system description and control design as of a date, while a Type 2 report adds an opinion on operating effectiveness over a period, so a Type 2 engagement needs evidence that exists for the whole period. ISO/IEC 17021-1 sets a three-year certification cycle with at least one audit in every calendar year. Preparation has to finish before the period the auditor samples from begins, and gaps found late can push that start date back. Ask the provider to tie each milestone to a control or evidence item and to confirm the auditor's period dates.
What does our organization need to provide for the audit engagement?
The organization needs named owners with the authority to act. Expect to name an owner for access reviews who can approve or remove users on each Trino or Spark authentication source and catalog, an owner for change records covering configuration, connector and version changes, and an owner for log retention who decides how long query events and audit logs are kept. Trino's HTTP and MySQL event listeners can store query events, and Spark's event log directory must be created with proper permissions by the operator, so someone has to own those settings. Without these owners, the plan will describe controls that nobody runs. Ask the provider to list each evidence item with the role that produces it.
Can our own team prepare for the audit without outside help?
Yes, if your engineers already know the platform and the control framework well enough to map each control to a configuration, a log or a record. Many teams do this in-house, especially for one engine with a small number of catalogs. Work that often needs outside skills includes building the control matrix, checking Trino's authentication and access control choices, validating Spark settings such as spark.authenticate (default false) and spark.acls.enable (default false), and packaging evidence in the form an auditor will accept. DeployOpen prepares systems and evidence for an assessment, while the independent auditor for SOC 2 or the accredited certification body for ISO 27001 issues the report or certificate. Compare your skills against the control list before deciding.
Does DeployOpen make our Trino or Spark platform SOC 2 or ISO 27001 compliant?
No. DeployOpen prepares systems, controls and evidence for an assessment, but it does not issue audit reports, attestations or certificates. For SOC 2, an independent CPA firm examines the organization against the 2017 Trust Services Criteria and issues the report. For ISO 27001, an accredited certification body audits the management system and issues the certificate. Trino's authentication, file-based access rules and event listeners are inputs to those controls, and they do not guarantee an outcome. Ask any provider which report or certificate it will issue, and check that the answer matches this division of work.
What should a quote for audit preparation include?
A quote follows from the written scope, so the scope has to be specific. Include the engines in scope (Trino, Spark or both), the catalogs and connectors that hold in-scope data, the audit type and period (SOC 2 Type 1 or Type 2, or the ISO 27001 surveillance or recertification audit), the user groups and workloads covered, and the evidence sources such as query logs, access files and change records. List the deliverables, such as the control mapping, configuration changes, evidence packs and a retest. Ask which items are one-time work and which recur, such as periodic access reviews, log retention checks or retainer support. DeployOpen does not publish a price list, so request the quote in writing against that scope.
What does switching from Trino to Spark later cost for audit evidence?
Switching engines moves the audit trail with it. Access rules, event listener stores and evidence history must move with the audit period, so a mid-period switch leaves two sets of controls to explain. Trino's file-based rules or Apache Ranger policies, and the users and roles behind them, would need to be mapped to Spark's access controls. Spark's UI access control lists need an authentication filter to take effect, so that setup must be rebuilt and tested. Query events recorded in a Trino listener store, such as the MySQL trino_queries table, stay in the old store, so keep that store readable for the full retention period. Plan the switch around period boundaries and agree the migration steps and evidence handover in writing.
How DeployOpen prepares, implements and evidences either engine
DeployOpen plans, implements and documents self-hosted Trino or Apache Spark inside your own cloud accounts, data centers or air-gapped networks, and prepares the controls and evidence your compliance and security teams review. DeployOpen does not issue audit reports or attestations; independent auditors do that work for SOC 2 and ISO 27001.
How we scope
- Scope is agreed in writing before work starts, naming the engine, data sources, catalogs and audit criteria.
- Engagements are fixed-scope, with deliverables and timelines set in the written scope before any build begins.
- Scoping maps SOC 2 common criteria CC1 to CC9 and relevant ISO/IEC 27001 Annex A controls to named platform owners.
How we build
- Trino or Spark is deployed in your infrastructure, with authentication, access control and audit logging settings agreed in scope.
- For Trino, we set access rules to replace the default that lets authenticated users run all operations.
- For Spark, we enable
spark.authenticateandspark.acls.enable, which both default to off, plus the UI authentication filter they need.
How we hand over
- Handover covers configuration files, an operator runbook for access, logging and retention, and documentation your assessor can review.
- Spark's
spark.eventLog.dirpermissions must be set by the operator, and we document them so reviewers can check who reads job history. - Trino's MySQL event listener writes query IDs, SQL text and users to a
trino_queriestable for later review.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
- The Spark 3.5.x extended LTS ends in November 2027 with security fixes only, so plan the upgrade early.
- Re-run access and logging checks after each upgrade or new connector, since a new source can change who reaches what.

