Read 2026-11-07
prestodb/presto: technical due diligence, read from its repository
What Borehole read in prestodb/presto's code and history at e13b289: 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 | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
CONTRIBUTING.md:545: names OpenSSF.gitmodules:1: 1 submodule(s) this survey does not read: presto-native-execution/velox
Architecture & Codebase — including AI provenance
strongpresto-native-execution/presto_cpp/external/json/nlohmann/json.hpp is 25,527 lines, 290× this codebase's median file
adequateThe median source file here is 88 lines. 101 files exceed 1,000 lines, the largest being 25,527. 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.
presto-native-execution/presto_cpp/external/json/nlohmann/json.hpp:1 — 25,527 lines (290× median) |
presto-ui/src/sql-parser/SqlBaseParser.js:1 — 23,066 lines (262× median) |
presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp:1 — 13,358 lines (151× median) |
presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:1 — 5,891 lines (66× median) |
presto-main-base/src/main/java/com/facebook/presto/SystemSessionProperties.java:1 — 4,289 lines (48× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strong22 files still carry code deprecated more than two years ago
adequate22 files were marked deprecated over two years ago and still are, the oldest since Sep 2015. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
presto-hive/src/main/java/com/facebook/presto/hive/HiveClientConfig.java — deprecated since Sep 2015 |
presto-client/src/main/java/com/facebook/presto/client/ClientTypeSignature.java — deprecated since Jan 2016 |
presto-spi/src/main/java/com/facebook/presto/spi/FixedSplitSource.java — deprecated since Jul 2016 |
presto-bytecode/src/main/java/com/facebook/presto/bytecode/DynamicClassLoader.java — deprecated since Sep 2016 |
presto-orc/src/main/java/com/facebook/presto/orc/ChunkedSliceOutput.java — deprecated since Jul 2017 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, 0.300, is not on the branch this survey read; the newest release on it is 0.284. The shipped product may differ from what this report describes. Survey the release branch too.
| tag 0.300 |
Security & Reliability Posture
adequate1 Dockerfile runs the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
docker/Dockerfile — runs as root |
3 SQL statements built from strings
adequate3 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.
1 deserialiser that can run code
adequate1 places read data with a deserialiser that executes what it reads (`yaml.load` without a safe loader). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
presto-native-execution/presto_cpp/presto_protocol/util.py:98 — code-executing deserialiser |
18 locked dependencies have published vulnerabilities, 24 high or critical
adequate18 of 984 locked dependencies match 46 published advisories in OSV, 24 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
presto-ui/src/yarn.lock — body-parser 1.20.5: GHSA-27r3-jxmh-p828 (high), fixed in 1.20.9 |
presto-ui/src/yarn.lock — brace-expansion 1.1.12: GHSA-3jxr-9vmj-r5cp (high), fixed in 1.1.16 |
presto-ui/src/yarn.lock — brace-expansion 2.0.2: GHSA-3jxr-9vmj-r5cp (high), fixed in 2.1.2 |
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.
presto-ui/src/static/vendor/clipboardjs — 1 tracked files, no licence file |
presto-ui/src/static/vendor/html5shiv — 2 tracked files, no licence file |
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 11,216 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 |
1 of 12 deployed images carry no version, or `latest`
adequate1 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
presto-kudu/conf/docker-compose-three-nodes.yaml:26 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on prestodb/presto: 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.