Borehole · Project · free tier
taosdata/tdengine
Free reading: not for reliance
957d672 · 50,000 commits · 9,301 files
Read 2026-10-23

taosdata/tdengine: technical due diligence, read from its repository

What Borehole read in taosdata/tdengine's code and history at 957d672: 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 Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.3

Commit messages are templated rather than written

adequate

45% of commit subjects are exact repeats of another subject, and subject length varies by only 21.1 characters. A log written by someone explaining their reasoning to a future reader does not look like this. The log is therefore weak evidence of intent, whatever the code is like. This was read from the most recent 50,000 commits (5 Aug 2022 to 19 Oct 2026) only; older history was not read.

Evidence
552× 'refactor: do some internal refactor.'
529× 'more code'
177× 'Update index.md'
01.6

source/common/src/msg/tmsg.c is 25,140 lines, 112× this codebase's median file

adequate

The median source file here is 224 lines. 111 files exceed 2,240 lines, the largest being 25,140. 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
source/common/src/msg/tmsg.c:1 — 25,140 lines (112× median)
source/libs/planner/src/planOptimizer.c:1 — 24,912 lines (111× median)
source/libs/nodes/src/nodesCodeFuncs.c:1 — 15,687 lines (70× median)
source/libs/planner/src/planLogicCreater.c:1 — 11,035 lines (49× median)
source/common/src/msg/streamMsg.c:1 — 10,915 lines (48× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.1

2 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.

Evidence
2 cited: JWT, where fakes are usual
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
packaging/docker/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

7 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; 5 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
.github/workflows/deploy-case-docs.yml:78 — action pinned by tag
.github/workflows/new-tdgpt-test.yml:83 — action pinned by tag
packaging/setup_env.sh:989 — download piped into a shell
05.21

2 shell commands built from strings

adequate

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

Evidence
packaging/checkPackageRuning.py:78 — command run through a shell
packaging/checkPackageRuning.py:79 — command run through a shell
05.9

1 vendored component 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.

Evidence
deps/win — 1 tracked files, no licence file
05.65

14 advisories against this project in the last 24 months, 7 high or critical

adequate

The newest was published on 2026-06-27. 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 14 of them are fixed in the code you ship could not be told from this history. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 1 record names TDengine with nothing tying it to this repository (CVE-2026-47720).

Evidence
2026-06-27: GHSA-4h6w-f7vf-96xj (low), fixed in >= 3.4.1.15: Use-After-Free and Double-Free Vulnerability in tableMetaCommit Error Handling Path
2026-06-27: GHSA-c97w-rp4j-2jc9 (low), fixed in >= 3.4.1.15: Double-Free and Use-After-Free in buildTriggerPartitionForCreateStream via Error Handling Path
2026-06-27: GHSA-vqj6-pwq9-qc5j (high), fixed in >= 3.4.1.16: Use-After-Free (UAF) Vulnerability in monGenDnodeStatusInfoTable via Dangling gauge Pointer
2026-06-27: GHSA-998r-264c-5jcv (low), fixed in >= 3.4.1.15: Double-Free Vulnerability in createStreamReqBuildTriggerSelect due to Improper Error Path Ownership Tracking
2026-06-27: GHSA-f8pf-77fh-53wv (low), fixed in >= 3.4.1.15: Double Free Vulnerability in projectApplyFunction via Error Handling Path

Observability & Operations

adequate
06.8

One request cannot be followed through the logs

adequate

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

Evidence
no request id, correlation id or tracing found
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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on taosdata/tdengine: 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.