Borehole · Project · free tier
deepflowio/deepflow
Free reading: not for reliance
8741e92 · 12,738 commits · 3,028 files
Read 2026-10-23

deepflowio/deepflow: technical due diligence, read from its repository

What Borehole read in deepflowio/deepflow's code and history at 8741e92: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • README-CN.md:83: names CNCF
  • .gitmodules:1: 2 submodule(s) this survey does not read: message/opentelemetry, agent/src/ebpf/libs/jattach

Architecture & Codebase — including AI provenance

adequate
01.3

Commit messages are templated rather than written

adequate

42% of commit subjects are exact repeats of another subject, and subject length varies by only 17.8 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.

Evidence
110× 'Update changelog for main'
61× '更新droplet-libs'
38× '更新droplet-app依赖'
01.6

agent/src/config/handler.rs is 6,250 lines, 71× this codebase's median file

adequate

The median source file here is 87 lines. 78 files exceed 1,000 lines, the largest being 6,250. 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
agent/src/config/handler.rs:1 — 6,250 lines (71× median)
agent/src/ebpf/kernel/include/protocol_inference.h:1 — 4,910 lines (56× median)
agent/src/config/config.rs:1 — 4,312 lines (49× median)
agent/src/ebpf/user/socket.c:1 — 4,235 lines (48× median)
agent/src/trident.rs:1 — 3,978 lines (45× median)
01.25

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

adequate

1 of 2 `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
server/Dockerfile:1 — base image without a version

Engineering Process & SDLC Maturity

strong
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 3,028 tracked files

Product & Engineering Maturity

adequate
04.3

106 direct dependencies in a single manifest

adequate

server/go.mod declares 106 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
server/go.mod — 106 declared
cli/go.mod — 8 declared
message/go.mod — 1 declared
server/controller/cloud/kubernetes_gather/expand/go.mod — 0 declared
04.17

Go 1.21 is past end of life

adequate

The code is pinned to Go 1.21 (end of life 2024-08-13). None of these receives security fixes any more; the first stopped on 2024-08-13. 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
server/Dockerfile.builder — Go 1.21, end of life 2024-08-13
04.19

7% of bug fixes add or change a test

adequate

Of 614 fixes in the last 24 months, 46 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.

Evidence
46 of 614
04.37

API v1 and v2 have been served together for 52 months

adequate

v2 first appeared in Jun 2022, and v1 is still in the code 52 months later. Two versions mean two surfaces to secure, document and support. Ask who still calls the old one, and whether retiring it is planned.

Evidence
roze/datasource/datasource.go — v1 since Nov 2020
server/controller/router/domain.go — v2 since Jun 2022

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

There is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.

Evidence
checked 5 kinds of guard rail across 3,028 tracked files; 0 present
05.6

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

Evidence
server/Dockerfile — runs as root
server/Dockerfile.builder — runs as root
05.25

1 environment file is committed

adequate

manifests/deepflow-docker-compose/.env is 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
manifests/deepflow-docker-compose/.env — committed environment file
05.27

The build runs third-party code it does not pin

adequate

14 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; 10 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/agent-build-rust-env.yml:28 — action pinned by tag
.github/workflows/agent-build-rust-env.yml:33 — action pinned by tag
.github/workflows/agent-build-rust-env.yml:21 — download piped into a shell
05.13

7 outbound calls can wait forever

adequate

7 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

Evidence
agent/src/flow_generator/protocol_logs/mq/kafka-apis.py:17 — outbound call without a timeout
agent/src/flow_generator/protocol_logs/mq/kafka-apis.py:40 — outbound call without a timeout
server/controller/http/service/rebalance/traffic.go:663 — outbound call without a timeout
05.20

1 SQL statement built from strings

adequate

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

05.34

2 of 2 Kubernetes workloads declare no resource limits

adequate

2 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.

Evidence
agent/docker/deepflow-agent-ds.yaml — workload with no limits
agent/docker/deepflow-agent_test.yaml — workload with no limits
05.26

27 locked dependencies have published vulnerabilities, 2 high or critical in what ships

adequate

27 of 862 locked dependencies match 47 published advisories in OSV, 6 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
cli/go.mod — google.golang.org/grpc v1.62.1: GHSA-p77j-4mvh-x3m3 (critical), fixed in 1.79.3
agent/Cargo.lock — windows 0.30.0: GHSA-x4mq-m75f-mx8m (critical), fixed in 0.32.0
server/go.mod — github.com/prometheus/prometheus v0.36.2: GHSA-8rm2-7qqf-34qm (high), fixed in 0.311.3
05.45

5 workload settings give a container the host

adequate

5 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.

Evidence
agent/docker/deepflow-agent-ds.yaml:20 — privileged or host namespace
agent/docker/deepflow-agent-ds.yaml:26 — privileged or host namespace
agent/docker/deepflow-agent_test.yaml:29 — privileged or host namespace

Observability & Operations

strong
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 deepflowio/deepflow: 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.