Read 2026-10-23
greptimeteam/greptimedb: technical due diligence, read from its repository
What Borehole read in greptimeteam/greptimedb's code and history at 1c5d15f: 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 | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
CONTRIBUTING.md:105: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
adequatesrc/log-store/src/object_store_wal/store.rs is 13,142 lines, 75× this codebase's median file
adequateThe median source file here is 173 lines. 98 files exceed 1,730 lines, the largest being 13,142. 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.
src/log-store/src/object_store_wal/store.rs:1 — 13,142 lines (75× median) |
src/query/src/promql/planner/test.rs:1 — 9,061 lines (52× median) |
src/query/src/promql/planner.rs:1 — 6,647 lines (38× median) |
src/mito2/src/engine/scan_test.rs:1 — 5,115 lines (29× median) |
src/frontend/src/instance.rs:1 — 4,703 lines (27× median) |
1 base image floats: no version, or `latest`
adequate1 of 8 `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.
docker/buildx/distroless/Dockerfile:50 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, v1.2.1, is not on the branch this survey read; the newest release on it is v1.1.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v1.2.1 |
Security & Reliability Posture
adequate4 Dockerfiles run 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.
.agents/skills/greptimedb-development-docker-image/assets/Dockerfile — runs as root |
docker/buildx/centos/Dockerfile — runs as root |
docker/buildx/distroless/Dockerfile — runs as root |
docker/buildx/ubuntu/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate18 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; 4 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/agent-observability.yml:231 — action pinned by tag |
.github/workflows/agent-observability.yml:237 — action pinned by tag |
.github/scripts/check-install-script.sh:11 — download piped into a shell |
52 locked dependencies have published vulnerabilities, 5 high or critical in what ships
adequate52 of 1,447 locked dependencies match 78 published advisories in OSV, 7 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.
cyborg/pnpm-lock.yaml — @fastify/busboy 2.1.1: GHSA-x8mw-p69m-v3mx (high), fixed in 3.2.1 |
cyborg/pnpm-lock.yaml — lodash 4.17.21: GHSA-r5fr-rjxr-66jc (high), fixed in 4.18.0 |
cyborg/pnpm-lock.yaml — undici 5.28.4: GHSA-v9p9-hfj2-hcw8 (high), fixed in 6.24.0 |
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 |
Sends usage data to telemetry.greptimestats.com by default
adequatesrc/common/greptimedb-telemetry/src/lib.rs sends to telemetry.greptimestats.com, and config/datanode.example.toml leaves reporting on as shipped. Every installation reports to the vendor unless its operator turns this off. For a buyer running it inside their own product, that is an outbound data flow to a third party: ask what is sent, how often, and whether the buyer's customers were told.
src/common/greptimedb-telemetry/src/lib.rs:30 — reports to telemetry.greptimestats.com |
config/datanode.example.toml:28 — the reporting setting is on by default |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on greptimeteam/greptimedb: 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.