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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not 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
strongui/packages/shared/styles/icons.tsx is 1,918 lines, 25× this codebase's median file
adequateThe 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.
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
strongNo finding.
Product & Engineering Maturity
adequate2 jobs are each done by more than one library
adequateWithin 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.
ui/packages/ce/package.json — several libraries per job |
ui/packages/shared/package.json — several libraries per job |
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.
ui/packages/ce/Dockerfile — runs as root |
1 environment file is committed
adequateui/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.
ui/packages/ce/.env — committed environment file |
The build runs third-party code it does not pin
adequate1 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.
engine/scripts/cli_install.sh:7 — download piped into a shell |
1 SQL statement built from strings
adequate1 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.
engine/internal/observer/stats.go:329 — SQL built from a string |
2 shell commands built from strings
adequate2 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.
engine/internal/provision/mode_local.go:664 — command run through a shell |
engine/internal/runci/source/github.go:91 — command run through a shell |
9 locked dependencies have published vulnerabilities, 3 high or critical
adequate9 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.
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 |
Relicensed: BSD-3-Clause → AGPL-3.0 (2020-09-11) → Apache-2.0 (2023-08-26)
adequateThe root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
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
adequateOne request cannot be followed through the logs
adequateNothing 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.
| no request id, correlation id or tracing found |
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 |
Fit with the Acquirer
not assessableNot 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.