Borehole · Project · free tier
postgres-ai/database-lab-engine
Free reading: not for reliance
3515f25 · 1,953 commits · 892 files
Read 2026-11-03

postgres-ai/database-lab-engine: technical due diligence, read from its repository

What Borehole read in postgres-ai/database-lab-engine's code and history at 3515f25: 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 provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE.txt: Relicensed: BSD-3-Clause → AGPL-3.0 (2020-09-11) → Apache-2.0 (2023-08-26)

Architecture & Codebase — including AI provenance

strong
01.6

ui/packages/shared/styles/icons.tsx is 1,918 lines, 25× this codebase's median file

adequate

The median source file here is 74 lines. 8 files exceed 1,000 lines, the largest being 1,918. 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
ui/packages/shared/styles/icons.tsx:1 — 1,918 lines (25× median)
engine/internal/provision/thinclones/zfs/zfs.go:1 — 1,493 lines (20× median)
ui/packages/shared/pages/Instance/Configuration/index.tsx:1 — 1,352 lines (18× median)
engine/internal/srv/routes.go:1 — 1,334 lines (18× median)
engine/internal/cloning/base.go:1 — 1,173 lines (15× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.14

2 jobs are each done by more than one library

adequate

Within a single package: UI component kits: material-ui, mui; dates: date-fns, moment. 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
ui/packages/ce/package.json — several libraries per job
ui/packages/shared/package.json — several libraries per job

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs 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
ui/packages/ce/Dockerfile — runs as root
05.25

1 environment file is committed

adequate

ui/packages/ce/.env 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
ui/packages/ce/.env — committed environment file
05.27

The build runs third-party code it does not pin

adequate

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
engine/scripts/cli_install.sh:7 — download piped into a shell
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. 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.

Evidence
engine/internal/observer/stats.go:329 — SQL built from a string
05.21

2 shell commands built from strings

adequate

2 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
engine/internal/provision/mode_local.go:664 — command run through a shell
engine/internal/runci/source/github.go:91 — command run through a shell
05.26

9 locked dependencies have published vulnerabilities, 3 high or critical

adequate

9 of 1,031 locked dependencies match 12 published advisories in OSV, 3 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. None of the high or critical ones is in what the product ships: they are development dependencies. 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
engine/go.mod — github.com/docker/docker v28.5.2+incompatible: GO-2026-4887 (high)
engine/go.mod — github.com/moby/go-archive v0.2.0: GHSA-hfg8-hc9c-6c3h (high), fixed in 0.3.0
ui/pnpm-lock.yaml — systeminformation 5.33.6: GHSA-3f7j-7jwc-fxfj (high), fixed in 5.33.16; a development dependency
05.60

Relicensed: BSD-3-Clause → AGPL-3.0 (2020-09-11) → Apache-2.0 (2023-08-26)

adequate

The root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE.txt — BSD-3-Clause from 2019-12-02
LICENSE — AGPL-3.0 from 2020-09-11
LICENSE — Apache-2.0 from 2023-08-26

Observability & Operations

adequate
06.8

One request cannot be followed through the logs

adequate

Nothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.

Evidence
no request id, correlation id or tracing found
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 postgres-ai/database-lab-engine: 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.