Borehole · Project · free tier
trinodb/trino
Free reading: not for reliance
dc31d32 · 47,969 commits · 15,666 files
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.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Posturestrong
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java is 6,851 lines, 74× this codebase's median file

adequate

The 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.

01.25

5 base images float: no version, or `latest`

adequate

5 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.

Evidence
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
01.33

A move from JavaScript to TypeScript began 27 months ago and is 62% done

adequate

53 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.

Evidence
33 old, 53 new

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

18 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

strong
04.38

82 files still carry code deprecated more than two years ago

adequate

82 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.

Security & Reliability Posture

strong
05.3

50 dependencies float, and no lockfile is committed

adequate

Dependency 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.

05.25

1 environment file is committed

adequate

core/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.

Evidence
core/trino-web-ui/src/main/resources/webapp/.env.production — committed environment file
05.20

6 SQL statements built from strings

adequate

6 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.

05.9

2 vendored components with no licence

adequate

Third-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.

05.65

2 advisories against this project in the last 24 months, 1 high or critical

adequate

The 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).

Evidence
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

adequate
06.2

No structured logging library is in use

adequate

Nothing 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.

Evidence
searched 10,428 files for 10 structured logging libraries; 0 matched
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised

Fit with the Acquirer

not assessable

Not 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.