Borehole · Project · free tier
etcd-io/etcd
Free reading: not for reliance
7583cc6 · 25,250 commits · 1,504 files
Read 2026-10-04

etcd-io/etcd: technical due diligence, read from its repository

What Borehole read in etcd-io/etcd's code and history at 7583cc6: 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 & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • .github/PULL_REQUEST_TEMPLATE.md:4: states a policy on AI-generated contributions
  • GOVERNANCE.md:9: names CNCF
  • README.md:11: names OpenSSF

Architecture & Codebase — including AI provenance

strong
01.6

api/etcdserverpb/gw/rpc.pb.gw.go is 3,260 lines, 30× this codebase's median file

adequate

The median source file here is 107 lines. 9 files exceed 1,070 lines, the largest being 3,260. 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
api/etcdserverpb/gw/rpc.pb.gw.go:1 — 3,260 lines (30× median)
server/etcdserver/server.go:1 — 2,472 lines (23× median)
server/embed/config.go:1 — 1,380 lines (12× median)
server/etcdserver/v3_server.go:1 — 1,292 lines (12× median)
server/auth/store.go:1 — 1,238 lines (11× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.5

Effort is shifting from building to rewriting

adequate

Deleted lines per line added rose from 0.42 to 0.97 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.

Evidence
first half 0.42, second half 0.97 (split 2020-01-30)
04.38

13 files still carry code deprecated more than two years ago

adequate

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

Evidence
client/v3/logger.go — deprecated since Mar 2021
client/v3/client.go — deprecated since May 2021
client/v3/maintenance.go — deprecated since Jun 2021
client/pkg/transport/limit_listen.go — deprecated since Aug 2022
pkg/expect/expect.go — deprecated since Aug 2022
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v3.7.2, is not on the branch this survey read; the newest release on it is v2.3.0. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v3.7.2

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs 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
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
contrib/lock/client/client.go:63 — outbound call without a timeout
etcdctl/ctlv3/command/util.go:116 — outbound call without a timeout
05.65

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

adequate

The newest was published on 2026-07-23. 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 3 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 2.3.0. Answer lives in: the release you run, set against each fixed version. GHSA-6vch-q96h-7gc3 (high), GHSA-xg4h-6gfc-h4m8 (high), GHSA-3wh4-j44w-pg92 (moderate) are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 14 records name etcd with nothing tying them to this repository (CVE-2023-46307, CVE-2024-4436, CVE-2024-4437, …).

Evidence
2026-07-23: GHSA-6vch-q96h-7gc3 (high), fixed in 3.5.33: etcd: `tlsListener.acceptLoop` spawns unbounded handshake goroutines with no deadline
2026-07-23: GHSA-xg4h-6gfc-h4m8 (high), fixed in 3.5.33: etcd: Watch API authorization bypass via open-ended range requests
2026-07-01: GHSA-3wh4-j44w-pg92 (moderate), fixed in 3.5.32: etcd: CRL enforcement bypass on gRPC listener when `--listen-client-http-urls` is configured
2026-05-01: GHSA-x35m-3gp4-4fh5 (low), fixed in 3.4.44: etcd RBAC bypass allows unauthorized data access via PrevKv/lease attachment in nested transaction Put requests
2026-03-20: GHSA-q8m4-xhhv-38mg (high), fixed in 3.4.42: etcd: Authorization bypasses in multiple APIs

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 etcd-io/etcd: 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.