Borehole · Project · free tier
labring/fastgpt
Free reading: not for reliance
381b496 · 3,740 commits · 7,515 files
Read 2026-10-28

labring/fastgpt: technical due diligence, read from its repository

What Borehole read in labring/fastgpt's code and history at 381b496: 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 & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • LICENSE:1: The licence is Apache-2.0 with terms on offering it as a service
  • LICENSE: Relicensed: Apache-2.0 → Apache-2.0 with terms on offering it as a service (2023-08-11)
  • .gitmodules:1: 1 submodule(s) this survey does not read: pro

Architecture & Codebase — including AI provenance

strong
01.6

projects/app/src/pageComponents/chat/SandboxEditor/hook.tsx is 1,761 lines, 18× this codebase's median file

adequate

The median source file here is 95 lines. 21 files exceed 1,000 lines, the largest being 1,761. 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.

Engineering Process & SDLC Maturity

adequate
02.6

Almost no process scaffolding exists in the repository

adequate

Of five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.

Evidence
1 of 5 markers present across 7,515 tracked files
02.24

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

adequate

216 of 1969 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
216 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

98 direct dependencies in a single manifest

adequate

projects/app/package.json declares 98 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
projects/app/package.json — 98 declared
packages/service/package.json — 64 declared
packages/web/package.json — 44 declared
document/package.json — 22 declared
04.17

Go 1.22 is past end of life

adequate

The code is pinned to Go 1.22 (end of life 2025-02-11). None of these receives security fixes any more; the first stopped on 2025-02-11. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.

Evidence
projects/code-sandbox/Dockerfile — Go 1.22, end of life 2025-02-11

Security & Reliability Posture

adequate
05.6

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

05.27

The build runs third-party code it does not pin

adequate

8 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; 3 steps pipe 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
.forgejo/workflows/build-agent-sandbox.yml:92 — action pinned by tag
.forgejo/workflows/build-agent-sandbox.yml:118 — action pinned by tag
projects/agent-sandbox/Dockerfile:68 — download piped into a shell
05.20

2 SQL statements built from strings

adequate

2 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/service/common/vectorDB/opengauss/index.ts:66 — SQL built from a string
packages/service/common/vectorDB/pg/index.ts:93 — SQL built from a string
05.26

84 locked dependencies have published vulnerabilities, 63 high or critical in what ships

adequate

84 of 3,322 locked dependencies match 157 published advisories in OSV, 75 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
pnpm-lock.yaml — i18next-fs-backend 2.6.0: GHSA-2933-q333-qg83 (critical), fixed in 2.6.6
pnpm-lock.yaml — next 15.5.27: GHSA-2464-fhr4-w9xw (critical), fixed in 15.5.28
pnpm-lock.yaml — next 16.3.6: GHSA-2464-fhr4-w9xw (critical), fixed in 16.4.1
05.48

5 places insert HTML from a variable without sanitising it

adequate

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

15 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

05.66

The licence is Apache-2.0 with terms on offering it as a service

adequate

LICENSE grants Apache-2.0 with terms on offering it as a service: open source; offering it over a network counts as distributing it, so a hosted product's changes must be published. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.

Evidence
LICENSE:1 — 35 lines, Apache-2.0 AND LicenseRef-Terms-Service
05.60

Relicensed: Apache-2.0 → Apache-2.0 with terms on offering it as a service (2023-08-11)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

Evidence
LICENSE — Apache-2.0 from 2023-05-10
LICENSE — Apache-2.0 with terms on offering it as a service from 2023-08-11
05.65

43 advisories against this project in the last 24 months, 13 high or critical

adequate

The newest was published on 2026-10-12. 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 6 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 4.17.2. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-12: GHSA-qprx-ccxg-8qvc (moderate), fixed in v4.17.1: Read permission is sufficient to gain Manage via resource move
2026-10-12: GHSA-frwj-pr6v-v44w (moderate), fixed in v4.17.1: A private app is readable without authentication because the Playground share id is derivable from the app id
2026-10-12: GHSA-x765-6926-7xc9 (critical), fixed in v4.17.1: DNS Rebinding TOCTOU in MCP Fetch Path
2026-10-12: GHSA-jmpf-pw3c-m93x (moderate), fixed in v4.17.1: Authenticated denial of service through unbounded remote-image validation concurrency
2026-10-12: GHSA-877g-f2rv-7rmw (moderate), fixed in v4.17.1: Cross-team dataset file ingestion and disclosure via unbound S3 object key in collection create-from-fileId (incomplete fix of GHSA-6rxv-p43w-mmx5)

Observability & Operations

strong
06.18

1 of 1 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
deploy/k8s/volume-manager.yaml:68 — image without a version
06.33

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

Evidence
deploy/k8s/volume-manager.yaml — replicas: 1
06.17

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

adequate

13 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
packages/global/common/system/constants.ts:10 — branch on the environment name
packages/service/common/cache/index.ts:5 — branch on the environment name
packages/service/common/cache/index.ts:31 — 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 labring/fastgpt: 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.