Read 2026-10-23
trinodb/trino: technical due diligence, read from its repository
What Borehole read in trinodb/trino's code and history at dc31d32: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | strong |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequatecore/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java is 6,851 lines, 74× this codebase's median file
adequateThe median source file here is 92 lines. 104 files exceed 1,000 lines, the largest being 6,851. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java:1 — 6,851 lines (74× median) |
core/trino-main/src/main/java/io/trino/sql/analyzer/ExpressionAnalyzer.java:1 — 5,382 lines (58× median) |
core/trino-parser/src/main/java/io/trino/sql/parser/AstBuilder.java:1 — 4,904 lines (53× median) |
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java:1 — 4,883 lines (53× median) |
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java:1 — 4,739 lines (51× median) |
5 base images float: no version, or `latest`
adequate5 of 5 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.
core/docker/Dockerfile:15 — base image without a version |
core/docker/Dockerfile:18 — base image without a version |
core/docker/Dockerfile:35 — base image without a version |
A move from JavaScript to TypeScript began 27 months ago and is 62% done
adequate53 product files are in the new language and 33 are still in the old one, 27 months after the first new file appeared. The new language's share of the lines rose from 0% to 12%, and moved 1 percentage points in the last year. Two languages for one job doubles what an engineer has to know, and the unmoved half is usually what nobody wants to touch. Ask whether finishing it is planned, and what it costs.
| 33 old, 53 new |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequate18 tests are individually marked to retry. A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
Product & Engineering Maturity
strong82 files still carry code deprecated more than two years ago
adequate82 files were marked deprecated over two years ago and still are, the oldest since Jan 2021. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/JdbcClient.java — deprecated since Jan 2021 |
core/trino-spi/src/main/java/io/trino/spi/predicate/TupleDomain.java — deprecated since Feb 2021 |
plugin/trino-hive/src/main/java/io/trino/plugin/hive/util/HiveTypeTranslator.java — deprecated since Feb 2021 |
plugin/trino-hive/src/main/java/io/trino/plugin/hive/orc/OrcWriterConfig.java — deprecated since Apr 2021 |
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/CachingJdbcClient.java — deprecated since Jun 2021 |
Security & Reliability Posture
strong50 dependencies float, and no lockfile is committed
adequateDependency versions are declared as ranges and no lockfile is committed, so a build today does not necessarily produce what a build last month produced. That matters twice over in a transaction: the thing being bought cannot be reproduced exactly, and a compromised upstream release arrives without anyone choosing to take it.
1 environment file is committed
adequatecore/trino-web-ui/src/main/resources/webapp/.env.production is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.
core/trino-web-ui/src/main/resources/webapp/.env.production — committed environment file |
6 SQL statements built from strings
adequate6 places in product code build SQL by formatting or joining strings rather than passing parameters. 2 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryUtil.java:72 — SQL built from a string |
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryUtil.java:74 — SQL built from a string |
plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/DefaultQueryBuilder.java:207 — SQL built from a string |
2 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
core/trino-web-ui/src/main/resources/webapp-legacy/vendor/clipboardjs — 1 tracked files, no licence file |
core/trino-web-ui/src/main/resources/webapp-legacy/vendor/highlightjs — 1 tracked files, no licence file |
2 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-07-21. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 2 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 0.215.0. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 1 record names trino with nothing tying it to this repository (CVE-2026-65321).
| 2026-07-21: CVE-2026-16336 (moderate): A vulnerability was found in trinodb trino 481. Affected is an unknown function of the file core/trino-main/src/main/java/io/trino/server/ExternalUriInfo.java o |
| 2026-03-27: GHSA-x27p-5f68-m644 (high), fixed in 480: Iceberg REST catalog static and vended credentials are accessible via query JSON |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 10,428 files for 10 structured logging libraries; 0 matched |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on trinodb/trino: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.