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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
ee/LICENSE: Part of the code is under a separate licence: ee/
Architecture & Codebase — including AI provenance
strongapps/api/src/routes/admin.ts is 20,498 lines, 189× this codebase's median file
adequateThe 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.
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
adequateTests are retried until they pass
adequateThe 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.
packages/actions/src/prepare-request-body.spec.ts:5749 — test retry |
9% of recent commits change more than 2,000 lines
adequate393 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.
| 393 commits over 2,000 lines |
Product & Engineering Maturity
adequate81 direct dependencies in a single manifest
adequateapps/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.
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
adequateThe build runs third-party code it does not pin
adequate10 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.
.github/workflows/autofix.yml:20 — action pinned by tag |
.github/workflows/autofix.yml:25 — action pinned by tag |
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.
packages/db/src/migrate.ts:398 — SQL built from a string |
3 locked dependencies have published vulnerabilities
adequate3 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.
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) |
56 places insert HTML from a variable without sanitising it
adequate56 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.
apps/airside/src/app/resources/page.tsx:72 — HTML from a variable |
apps/airside/src/components/ResourcePage.tsx:74 — HTML from a variable |
apps/code/src/app/claude-code-alternative/page.tsx:163 — HTML from a variable |
The production build publishes source maps
adequateThe 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.
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 |
Licence text does not match a standard licence
adequateLICENSE 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:1 — 9 lines, unrecognised |
Part of the code is under a separate licence: ee/
adequateA 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.
ee/LICENSE — licence: unrecognised |
18 advisories against this project in the last 24 months, 9 high or critical
adequateThe 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.
| 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
adequateReadiness and liveness probes are identical in 6 of 11 workloads
adequateBoth 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.
infra/helm/llmgateway/templates/admin-deployment.yaml — same probe endpoint twice |
infra/helm/llmgateway/templates/airside-deployment.yaml — same probe endpoint twice |
infra/helm/llmgateway/templates/code-deployment.yaml — same probe endpoint twice |
3 of 12 deployments run a single replica
adequate3 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.
infra/helm/llmgateway/templates/postgresql-statefulset.yaml — replicas: 1 |
infra/helm/llmgateway/templates/redis-statefulset.yaml — replicas: 1 |
infra/helm/llmgateway/templates/storage-redis-statefulset.yaml — replicas: 1 |
The code branches on the environment's name at 26 places
adequate26 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.
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 assessableNot 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.