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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongCommit messages are templated rather than written
adequate45% 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.
| 552× 'refactor: do some internal refactor.' |
| 529× 'more code' |
| 177× 'Update index.md' |
source/common/src/msg/tmsg.c is 25,140 lines, 112× this codebase's median file
adequateThe 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.
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
strongNo finding.
Product & Engineering Maturity
strongNo finding.
Security & Reliability Posture
adequate2 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings 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.
| 2 cited: JWT, where fakes are usual |
1 Dockerfile runs the application as root
adequateNo 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.
packaging/docker/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate7 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.
.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 |
2 shell commands built from strings
adequate2 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.
packaging/checkPackageRuning.py:78 — command run through a shell |
packaging/checkPackageRuning.py:79 — command run through a shell |
1 vendored component with no licence
adequateThird-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.
deps/win — 1 tracked files, no licence file |
14 advisories against this project in the last 24 months, 7 high or critical
adequateThe 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).
| 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
adequateOne request cannot be followed through the logs
adequateNothing 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.
| no request id, correlation id or tracing found |
No error reporter is wired in
adequateNothing 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.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot 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.