Read 2026-10-04
hashicorp/consul: technical due diligence, read from its repository
What Borehole read in hashicorp/consul's code and history at 668c758: 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 | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE:1: The licence is BUSL-1.1: source available, not open sourceLICENSE: Relicensed: MPL-2.0 → BUSL-1.1 (2023-08-11)
Architecture & Codebase — including AI provenance
strongagent/consul/state/catalog.go is 5,449 lines, 89× this codebase's median file
adequateThe median source file here is 61 lines. 53 files exceed 1,000 lines, the largest being 5,449. 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.
agent/consul/state/catalog.go:1 — 5,449 lines (89× median) |
agent/agent.go:1 — 4,873 lines (79× median) |
agent/structs/structs.go:1 — 3,416 lines (56× median) |
agent/xds/listeners.go:1 — 3,338 lines (54× median) |
agent/config/builder.go:1 — 3,039 lines (49× median) |
Engineering Process & SDLC Maturity
adequateTests are retried until they pass
adequateThe suite is configured to retry failing tests (ui/packages/consul-ui/e2e-tests/playwright.config.js). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
ui/packages/consul-ui/e2e-tests/playwright.config.js:30 — test retry |
6% of recent commits change more than 2,000 lines
adequate24 of 415 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.
| 24 commits over 2,000 lines |
Product & Engineering Maturity
adequate106 direct dependencies in a single manifest
adequatego.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.
go.mod — 106 declared |
api/go.mod — 10 declared |
envoyextensions/go.mod — 8 declared |
sdk/go.mod — 7 declared |
35 files still carry code deprecated more than two years ago
adequate35 files were marked deprecated over two years ago and still are, the oldest since Aug 2021. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
command/registry.go — deprecated since Aug 2021 |
ui/packages/consul-ui/app/services/repository.js — deprecated since Sep 2021 |
ui/packages/consul-ui/app/services/ui-config.js — deprecated since Sep 2021 |
agent/intentions_endpoint.go — deprecated since Nov 2021 |
sdk/freeport/freeport.go — deprecated since Nov 2021 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v2.0.4, is not on the branch this survey read; the newest release on it is v1.7.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v2.0.4 |
Security & Reliability Posture
adequate16 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.
| 5 cited: private key block, where fakes are usual |
The build runs third-party code it does not pin
adequate5 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.
.github/workflows/build-artifacts.yml:55 — action pinned by tag |
.github/workflows/build.yml:39 — action pinned by tag |
7 locked dependencies have published vulnerabilities, 5 high or critical
adequate7 of 2,011 locked dependencies match 11 published advisories in OSV, 5 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. None of the high or critical ones is in what the product ships: they are development dependencies.
ui/pnpm-lock.yaml — brace-expansion 5.0.9: GHSA-6j4f-fj2g-mc7p (high), fixed in 5.0.10; a development dependency |
ui/pnpm-lock.yaml — braces 3.0.3: GHSA-vfj7-8cjw-p6xm (high); a development dependency |
ui/pnpm-lock.yaml — engine.io 6.6.9: GHSA-2gc4-cqfq-p2gv (high), fixed in 6.6.10; a development dependency |
The licence is BUSL-1.1: source available, not open source
adequateLICENSE grants BUSL-1.1: source available, not open source; production use restricted until the change date. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE:1 — 92 lines, BUSL-1.1 |
Relicensed: MPL-2.0 → BUSL-1.1 (2023-08-11)
adequateThe root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.
6 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-03-12. 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 1 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 1.7.0. Answer lives in: the release you run, set against each fixed version. GHSA-7g3r-8c6v-hfmr (moderate), GHSA-qh7p-pfq3-677h (moderate), GHSA-99wr-c2px-grmh (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: its keyword search for 'consul' is too broad to read whole (13,711 records).
| 2026-03-12: GHSA-cpfq-66p2-336j (moderate), fixed in 1.18.21: Consul is vulnerable to arbitrary file read when configured with Kubernetes authentication |
| 2025-10-28: GHSA-7g3r-8c6v-hfmr (moderate), fixed in 1.22.0: Consul key/value endpoint is vulnerable to denial of service |
| 2025-10-28: GHSA-qh7p-pfq3-677h (moderate), fixed in 1.22.0: Consul event endpoint is vulnerable to denial of service |
| 2024-10-30: GHSA-99wr-c2px-grmh (moderate), fixed in 1.20.0: Hashicorp Consul Cross-site Scripting vulnerability |
| 2024-10-30: GHSA-5c4w-8hhh-3c3h (moderate), fixed in 1.20.1: Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability |
Observability & Operations
strongNo 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 |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on hashicorp/consul: 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.