Borehole · Project · free tier
v2fly/v2ray-core
Free reading: not for reliance
99957b4 · 6,964 commits · 1,485 files
Read 2026-11-03

v2fly/v2ray-core: technical due diligence, read from its repository

What Borehole read in v2fly/v2ray-core's code and history at 99957b4: 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 Posturestrong
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

app/webrtc/webrtc.go is 1,888 lines, 25× this codebase's median file

adequate

The median source file here is 73 lines. 4 files exceed 1,000 lines, the largest being 1,888. 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
app/webrtc/webrtc.go:1 — 1,888 lines (25× median)
transport/internet/rrpit/rriptMonoDirectionSession/monoSession.go:1 — 1,597 lines (21× median)
common/natTraversal/stun/natTypeTest.go:1 — 1,053 lines (14× median)
transport/internet/rrpit/rrpitTransport/runtime.go:1 — 1,003 lines (13× median)

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 1,485 tracked files

Product & Engineering Maturity

strong
04.38

90 files still carry code deprecated more than two years ago

adequate

90 files were marked deprecated over two years ago and still are, the oldest since May 2018. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.

Evidence
proxy/freedom/config.pb.go — deprecated since May 2018
common/net/network.pb.go — deprecated since May 2018
proxy/dokodemo/config.pb.go — deprecated since May 2018
proxy/shadowsocks/config.pb.go — deprecated since May 2018
proxy/socks/config.pb.go — deprecated since May 2018

Security & Reliability Posture

strong
05.27

The build runs third-party code it does not pin

adequate

5 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/linter.yml:32 — action pinned by tag
.github/workflows/release.yml:200 — action pinned by tag
05.26

1 locked dependency has published vulnerabilities

adequate

1 of 100 locked dependencies match 1 published advisories in OSV. 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
go.mod — github.com/pion/dtls/v2 v2.2.12: GHSA-9f3f-wv7r-qc8r (moderate)

Observability & Operations

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 1,355 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.

Evidence
searched 1,355 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched
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,355 files for 10 structured logging libraries; 0 matched
06.7

The service logs with print: 80 calls against 0 logger calls

adequate

80 `print` or `console.log` calls in the service's code, and 0 calls through a logger. Printed lines carry no level and no context, cannot be switched off, and are hard to find again in production.

Evidence
common/errors/errorgen/main.go:12 — print used for logging
common/errors/errorgen/main.go:22 — print used for logging
common/natTraversal/stun/stuncli/stuncli.go:185 — print used for logging
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 v2fly/v2ray-core: 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.