Borehole · Project · free tier
yugabyte/yugabyte-db
Free reading: not for reliance
d52d3e6 · 40,665 commits · 34,140 files
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.

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

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

adequate
01.6

src/postgres/src/backend/commands/tablecmds.c is 24,041 lines, 253× this codebase's median file

adequate

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

Evidence
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)
01.25

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

adequate

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

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

A move from JavaScript to TypeScript began 73 months ago and is 80% done

adequate

1,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.

Evidence
385 old, 1529 new

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

86 direct dependencies in a single manifest

adequate

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

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

2 jobs are each done by more than one library

adequate

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

Evidence
managed/ui/package.json — several libraries per job
troubleshoot/troubleshooting-framework-ui/package.json — several libraries per job
04.38

56 files still carry code deprecated more than two years ago

adequate

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

04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag v2.13.0

Security & Reliability Posture

adequate
05.6

10 Dockerfiles run the application as root

adequate

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

Evidence
.cursor/Dockerfile — runs as root
managed/devops/Dockerfile — runs as root
managed/devops/pex/Dockerfile — runs as root
managed/ui/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

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

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

12 outbound calls can wait forever

adequate

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

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

1 SQL statement built from strings

adequate

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

05.21

9 shell commands built from strings

adequate

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

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

3 deserialisers that can run code

adequate

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

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

3 of 3 Kubernetes workloads declare no resource limits

adequate

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

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

61 locked dependencies have published vulnerabilities, 56 high or critical in what ships

adequate

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

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

1 workload setting can give a container the host, behind a chart value or in a stack built from source

adequate

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

Evidence
src/odyssey/docker-compose-test.yml:9 — host access behind a setting or in a local stack
05.48

4 places insert HTML from a variable without sanitising it

adequate

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

05.10

Licence text does not match a standard licence

adequate

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

Evidence
LICENSE.md:1 — 44 lines, unrecognised

Observability & Operations

strong
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
06.18

1 of 2 deployed images carry no version, or `latest`

adequate

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

Evidence
cloud/kubernetes/yugabyte-statefulset.yaml:234 — image without a version
06.33

1 of 3 deployments run a single replica

adequate

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

Fit with the Acquirer

not assessable

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