Borehole · Project · free tier
theopenco/llmgateway
Free reading: not for reliance
087d6c4 · 5,095 commits · 5,980 files
Read 2026-11-03

theopenco/llmgateway: technical due diligence, read from its repository

What Borehole read in theopenco/llmgateway's code and history at 087d6c4: 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 Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • ee/LICENSE: Part of the code is under a separate licence: ee/

Architecture & Codebase — including AI provenance

strong
01.6

apps/api/src/routes/admin.ts is 20,498 lines, 189× this codebase's median file

adequate

The median source file here is 108 lines. 96 files exceed 1,080 lines, the largest being 20,498. 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
apps/api/src/routes/admin.ts:1 — 20,498 lines (189× median)
apps/gateway/src/chat/chat.ts:1 — 16,376 lines (151× median)
packages/db/src/schema.ts:1 — 8,156 lines (75× median)
apps/gateway/src/videos/videos.ts:1 — 6,067 lines (56× median)
apps/api/src/stripe.ts:1 — 5,952 lines (55× median)

Engineering Process & SDLC Maturity

adequate
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (packages/actions/src/prepare-request-body.spec.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

02.24

9% of recent commits change more than 2,000 lines

adequate

393 of 4457 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
393 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

81 direct dependencies in a single manifest

adequate

apps/ui/package.json declares 81 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
apps/ui/package.json — 81 declared
ee/admin/package.json — 53 declared
apps/api/package.json — 50 declared
apps/code/package.json — 50 declared

Security & Reliability Posture

adequate
05.27

The build runs third-party code it does not pin

adequate

10 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. 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
.github/workflows/autofix.yml:20 — action pinned by tag
.github/workflows/autofix.yml:25 — action pinned by tag
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
packages/db/src/migrate.ts:398 — SQL built from a string
05.26

3 locked dependencies have published vulnerabilities

adequate

3 of 2,622 locked dependencies match 3 published advisories in OSV. 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.

Evidence
pnpm-lock.yaml — minimatch 3.1.5: GHSA-g3hv-75wg-m249 (moderate), fixed in 11.0.1
pnpm-lock.yaml — minimatch 5.1.9: GHSA-g3hv-75wg-m249 (moderate), fixed in 11.0.1
pnpm-lock.yaml — deepmerge 4.3.1: GHSA-gcqx-w48m-w2h4 (low)
05.48

56 places insert HTML from a variable without sanitising it

adequate

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

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
apps/airside/next.config.ts:10 — source maps in a production build
apps/code/next.config.ts:12 — source maps in a production build
apps/ui/next.config.ts:17 — source maps in a production build
05.10

Licence text does not match a standard licence

adequate

LICENSE 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:1 — 9 lines, unrecognised
05.61

Part of the code is under a separate licence: ee/

adequate

A directory named for a paid edition carries its own licence. That code is usually not open source even where the rest is; what the buyer may do with each part differs.

Evidence
ee/LICENSE — licence: unrecognised
05.65

18 advisories against this project in the last 24 months, 9 high or critical

adequate

The newest was published on 2026-10-22. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 2 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 1.24.0. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-22: GHSA-33vh-h489-26cq (moderate), fixed in 31d7199 (#4775): DNS-rebinding SSRF in video generation endpoints: tenant base-URL guard not applied
2026-10-11: CVE-2026-108719 (moderate): LLMGateway through 1.20.0 contains a blind server-side request forgery vulnerability that allows API key holders to reach internal hosts via the video-generatio
2026-09-12: GHSA-jv5c-wm2x-qxj6 (low): Password updates returned server errors for invalid input
2026-09-12: GHSA-w845-x732-gj6p (low): Chat sharing defaulted to public visibility and allowed copying
2026-09-12: GHSA-v789-xg97-vg68 (low): Organization member responses disclosed account registration

Observability & Operations

adequate
06.14

Readiness and liveness probes are identical in 6 of 11 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

06.33

3 of 12 deployments run a single replica

adequate

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

06.17

The code branches on the environment's name at 26 places

adequate

26 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.

Evidence
apps/api/src/routes/referral.ts:12 — branch on the environment name
apps/api/src/routes/referral.ts:62 — branch on the environment name
apps/gateway/src/images/images.ts:1256 — branch on the environment name

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on theopenco/llmgateway: 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.