Borehole · Project · free tier
linkerd/linkerd2
Free reading: not for reliance
e9ea8d9 · 9,193 commits · 1,469 files
Read 2026-10-28

linkerd/linkerd2: technical due diligence, read from its repository

What Borehole read in linkerd/linkerd2's code and history at e9ea8d9: 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

What the repository says

  • CONTRIBUTING.md:138: states a policy on AI-generated contributions
  • GOVERNANCE.md:30: names CNCF
  • README.md:18: names Cloud Native Computing Foundation

Architecture & Codebase — including AI provenance

strong
01.6

policy-controller/k8s/index/src/outbound/index.rs is 3,216 lines, 22× this codebase's median file

adequate

The median source file here is 141 lines. 7 files exceed 1,410 lines, the largest being 3,216. 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
policy-controller/k8s/index/src/outbound/index.rs:1 — 3,216 lines (22× median)
pkg/healthcheck/healthcheck.go:1 — 3,033 lines (21× median)
policy-controller/k8s/index/src/inbound/index.rs:1 — 2,303 lines (16× median)
policy-controller/k8s/status/src/index.rs:1 — 2,105 lines (14× median)
multicluster/service-mirror/cluster_watcher.go:1 — 1,998 lines (14× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.17

Node.js 20 is past end of life

adequate

The code is pinned to Node.js 20 (end of life 2026-04-30). None of these receives security fixes any more; the first stopped on 2026-04-30. 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
web/Dockerfile — Node.js 20, end of life 2026-04-30
04.38

5 files still carry code deprecated more than two years ago

adequate

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

Evidence
controller/gen/client/informers/externalversions/factory.go — deprecated since Oct 2018
viz/metrics-api/gen/viz/viz.pb.go — deprecated since Jan 2021
controller/gen/common/net/net.pb.go — deprecated since Jan 2021
viz/tap/gen/tap/viz_tap.pb.go — deprecated since Feb 2021
viz/tap/gen/tap/viz_tap_grpc.pb.go — deprecated since Jun 2021

Security & Reliability Posture

adequate
05.6

4 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
cli/Dockerfile — runs as root
viz/metrics-api/Dockerfile — runs as root
viz/tap/Dockerfile — runs as root
web/Dockerfile — runs as root
05.13

2 outbound calls can wait forever

adequate

2 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
cli/cmd/inject_util.go:171 — outbound call without a timeout
pkg/k8s/metrics.go:45 — outbound call without a timeout
05.34

15 of 15 Kubernetes workloads declare no resource limits

adequate

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

05.26

43 locked dependencies have published vulnerabilities, 43 high or critical

adequate

43 of 1,800 locked dependencies match 89 published advisories in OSV, 43 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
web/app/yarn.lock — proxy-addr 2.0.7: GHSA-jqcg-44mw-7w3h (critical), fixed in 2.0.8
web/app/yarn.lock — shell-quote 1.10.0: GHSA-pqg4-j6r4-53mv (critical), fixed in 1.11.0
web/app/yarn.lock — body-parser 1.20.4: GHSA-27r3-jxmh-p828 (high), fixed in 1.20.9
05.49

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
web/app/webpack.config.js:25 — source maps in a production build
05.65

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

adequate

The newest was published on 2026-09-28. 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 7 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 18.9.1. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-09-28: GHSA-x393-w43f-gq32 (moderate), fixed in 0.5.1-0.20260904190334-2946a07088e1: Linkerd HTTPRoute Route Matching Precedence Contradicts Gateway API Specification
2026-09-28: GHSA-7cq8-3jwj-3pcf (high), fixed in 0.5.1-0.20260904190334-2946a07088e1: Linkerd Authorization Bypass via Case-Sensitive HTTP Hostname Matching
2026-09-28: GHSA-7hx9-xmmq-23f3 (critical), fixed in 0.5.1-0.20260904190334-2946a07088e1: Code execution on the cluster administrator's workstation via Link clusterCredentialsSecret
2026-09-28: GHSA-229q-25q4-rxm8 (moderate), fixed in 0.5.1-0.20260615155958-5861fb59158a: MeshTLSAuthentication and NetworkAuthentication HashMap Key Errors cause silent auth policy persistence (CWE-863)
2026-09-28: GHSA-8wg2-5jpc-v68h (high), fixed in 0.5.1-0.20260615155958-5861fb59158a: Cross-namespace EndpointSlice Injection in Linkerd2 Destination Controller

Observability & Operations

adequate
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
06.14

Readiness and liveness probes are identical in 1 of 10 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on linkerd/linkerd2: 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.