Read 2026-10-22
yugabyte/yugabyte-db: technical due diligence, read from its repository
What Borehole read in yugabyte/yugabyte-db's code and history at d52d3e6: 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 | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
adequatesrc/postgres/src/backend/commands/tablecmds.c is 24,041 lines, 253× this codebase's median file
adequateThe median source file here is 95 lines. 486 files exceed 1,000 lines, the largest being 24,041. 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.
src/postgres/src/backend/commands/tablecmds.c:1 — 24,041 lines (253× median) |
src/postgres/src/backend/parser/gram.y:1 — 19,833 lines (208× median) |
src/postgres/src/backend/utils/misc/guc.c:1 — 18,554 lines (195× median) |
managed/src/main/java/prometheus/Types.java:1 — 16,762 lines (176× median) |
src/postgres/src/backend/utils/adt/ruleutils.c:1 — 13,111 lines (138× median) |
6 base images float: no version, or `latest`
adequate6 of 25 `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.
.cursor/Dockerfile:1 — base image without a version |
managed/devops/Dockerfile:4 — base image without a version |
managed/devops/pex/Dockerfile:2 — base image without a version |
A move from JavaScript to TypeScript began 73 months ago and is 80% done
adequate1,529 product files are in the new language and 385 are still in the old one, 73 months after the first new file appeared. The new language's share of the lines rose from 10% to 80%, and moved 3 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.
| 385 old, 1529 new |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate86 direct dependencies in a single manifest
adequatemanaged/ui/package.json declares 86 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
managed/ui/package.json — 86 declared |
yugabyted-ui/ui/package.json — 35 declared |
python/ai/rag_agent/requirements.txt — 33 declared |
requirements.txt — 25 declared |
2 jobs are each done by more than one library
adequateWithin a single package: UI component kits: material-ui, react-bootstrap; forms: formik, react-hook-form, redux-form. Each duplicate is bundle size, two ways of doing the same thing in one codebase, and two upgrade paths to maintain. It is usually the residue of a migration that stopped halfway.
managed/ui/package.json — several libraries per job |
troubleshoot/troubleshooting-framework-ui/package.json — several libraries per job |
56 files still carry code deprecated more than two years ago
adequate56 files were marked deprecated over two years ago and still are, the oldest since Dec 2019. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
managed/src/main/java/com/yugabyte/yw/models/CustomerTask.java — deprecated since Dec 2019 |
managed/src/main/java/com/yugabyte/yw/forms/AccessKeyFormData.java — deprecated since Oct 2020 |
managed/src/main/java/com/yugabyte/yw/models/AvailabilityZone.java — deprecated since Apr 2021 |
managed/src/main/java/com/yugabyte/yw/forms/UniverseDefinitionTaskParams.java — deprecated since Apr 2021 |
managed/src/main/java/com/yugabyte/yw/models/Universe.java — deprecated since Apr 2021 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v2.13.0, is not on the branch this survey read; the newest release on it is v2.5.3. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v2.13.0 |
Security & Reliability Posture
adequate10 Dockerfiles run 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.
.cursor/Dockerfile — runs as root |
managed/devops/Dockerfile — runs as root |
managed/devops/pex/Dockerfile — runs as root |
managed/ui/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate12 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
src/odyssey/.github/workflows/clang-format.yml:8 — action pinned by tag |
src/odyssey/.github/workflows/cmake.yml:51 — action pinned by tag |
bin/configure_clockbound.sh:245 — download piped into a shell |
12 outbound calls can wait forever
adequate12 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
managed/devops/opscli/ybops/cloud/azure/utils.py:105 — outbound call without a timeout |
managed/devops/opscli/ybops/cloud/azure/utils.py:1231 — outbound call without a timeout |
managed/devops/opscli/ybops/cloud/gcp/utils.py:925 — outbound call without a timeout |
1 SQL statement built from strings
adequate1 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 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.
managed/src/main/java/com/yugabyte/yw/common/TableSpaceUtil.java:63 — SQL built from a string |
9 shell commands built from strings
adequate9 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.
managed/devops/bin/add_superadmin_user.py:83 — command run through a shell |
managed/devops/bin/add_superadmin_user.py:132 — command run through a shell |
managed/devops/bin/edit_universe_details.py:81 — command run through a shell |
3 deserialisers that can run code
adequate3 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.
managed/devops/bin/remove_leaf_yaml_nodes.py:29 — code-executing deserialiser |
managed/devops/opscli/ybops/cloud/common/cloud.py:148 — code-executing deserialiser |
managed/devops/opscli/ybops/cloud/common/cloud.py:154 — code-executing deserialiser |
3 of 3 Kubernetes workloads declare no resource limits
adequate3 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.
cloud/kubernetes/yugabyte-statefulset-local-ssd-gke.yaml — workload with no limits |
cloud/kubernetes/yugabyte-statefulset-rf-1.yaml — workload with no limits |
cloud/kubernetes/yugabyte-statefulset.yaml — workload with no limits |
61 locked dependencies have published vulnerabilities, 56 high or critical in what ships
adequate61 of 1,986 locked dependencies match 160 published advisories in OSV, 84 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.
src/postgres/third-party-extensions/postgresql_anonymizer/pg_dump_anon/go.mod — golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa: GHSA-5cgq-3rg8-m6cv (critical); pinned to a commit or a branch, so whether it has the fix needs the dependency's own source |
managed/node-agent/go.mod — google.golang.org/grpc v1.77.0: GHSA-p77j-4mvh-x3m3 (critical), fixed in 1.79.3 |
managed/ui/package-lock.json — jspdf 2.5.1: GHSA-f8cm-6447-x5h2 (critical), fixed in 4.0.0 |
1 workload setting can give a container the host, behind a chart value or in a stack built from source
adequate1 places run a container privileged or in the host's namespaces only when a Helm value switches them on, or in a compose file that builds the product from this repository, which is how it is developed rather than how it ships. Neither is on by default in what ships. Ask whether production sets the value or runs that stack.
src/odyssey/docker-compose-test.yml:9 — host access behind a setting or in a local stack |
4 places insert HTML from a variable without sanitising it
adequate4 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
managed/ui/src/components/Authenticated/AuthenticatedComponent.jsx:160 — HTML from a variable |
managed/ui/src/components/universes/UniverseDetail/compounds/StateTransitionDetails.tsx:109 — HTML from a variable |
managed/ui/src/helpers/Highlighter.jsx:21 — HTML from a variable |
Licence text does not match a standard licence
adequateLICENSE.md exists but its text does not match any standard licence. A bespoke or hand-edited licence is not wrong, but it cannot be cleared by recognising its name: counsel has to read it, and until they do neither side knows precisely what rights transfer with the code.
LICENSE.md:1 — 44 lines, unrecognised |
Observability & Operations
strongNo 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 2 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.
cloud/kubernetes/yugabyte-statefulset.yaml:234 — image without a version |
1 of 3 deployments run a single replica
adequate1 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.
cloud/kubernetes/yugabyte-statefulset-rf-1.yaml — replicas: 1 |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on yugabyte/yugabyte-db: 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.