Borehole · Project · free tier
netless-io/flat
Free reading: not for reliance
d194d5b · 2,688 commits · 1,574 files
Read 2026-11-03

netless-io/flat: technical due diligence, read from its repository

What Borehole read in netless-io/flat's code and history at d194d5b: 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 provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

packages/flat-stores/src/classroom-store/index.ts is 1,659 lines, 42× this codebase's median file

adequate

The median source file here is 39 lines. 1 file exceed 1,000 lines, the largest being 1,659. 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
packages/flat-stores/src/classroom-store/index.ts:1 — 1,659 lines (42× median)
01.25

1 base image floats: no version, or `latest`

adequate

1 of 1 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
web/flat-web/deploy/Dockerfile:1 — base image without a version

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

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
web/flat-web/deploy/Dockerfile — runs as root
05.25

2 environment files are committed

adequate

config/CN/.env.production, config/SG/.env.production are 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
config/CN/.env.production — committed environment file
config/SG/.env.production — committed environment file
05.27

The build runs third-party code it does not pin

adequate

4 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/check-code.yml:29 — action pinned by tag
.github/workflows/deploy-storybook.yml:40 — action pinned by tag
05.26

87 locked dependencies have published vulnerabilities, 31 high or critical in what ships

adequate

87 of 3,126 locked dependencies match 177 published advisories in OSV, 91 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.

Evidence
pnpm-lock.yaml — tar 6.1.11: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19
pnpm-lock.yaml — @babel/traverse 7.19.1: GHSA-67hx-6x53-jw92 (critical), fixed in 7.23.2; a development dependency
pnpm-lock.yaml — immer 8.0.1: GHSA-33f9-j839-rf8h (critical), fixed in 9.0.6; a development dependency
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
desktop/main-app/webpack/webpack.common.js:17 — source maps in a production build
desktop/renderer-app/vite.config.ts:77 — source maps in a production build
web/flat-web/vite.config.ts:50 — source maps in a production build

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 1,042 files for 10 structured logging libraries; 0 matched
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
06.14

Readiness and liveness probes are identical in 1 of 1 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.

Evidence
web/flat-web/helm/templates/deployment.yaml — same probe endpoint twice

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on netless-io/flat: 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.