Read 2026-10-04
hashicorp/vault: technical due diligence, read from its repository
What Borehole read in hashicorp/vault's code and history at ae26954: 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 | adequate |
| Engineering Process & SDLC Maturity | strong |
| 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
adequatevault/logical_system.go is 7,965 lines, 94× this codebase's median file
adequateThe median source file here is 84 lines. 68 files exceed 1,000 lines, the largest being 7,965. 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.
vault/logical_system.go:1 — 7,965 lines (94× median) |
vault/core.go:1 — 5,177 lines (61× median) |
vault/logical_system_paths.go:1 — 5,069 lines (60× median) |
vault/token_store.go:1 — 4,496 lines (53× median) |
vault/activity_log.go:1 — 3,631 lines (43× median) |
1 base image floats: no version, or `latest`
adequate1 of 3 `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.
Dockerfile:142 — base image without a version |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (ui/playwright.config.ts). 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/playwright.config.ts:39 — test retry |
Product & Engineering Maturity
adequate209 direct dependencies in a single manifest
adequatego.mod declares 209 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 — 209 declared |
sdk/go.mod — 55 declared |
internalshared/go.mod — 52 declared |
ui/lib/pki/package.json — 31 declared |
33 files still carry code deprecated more than two years ago
adequate33 files were marked deprecated over two years ago and still are, the oldest since Sep 2021. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
sdk/database/dbplugin/database_grpc.pb.go — deprecated since Sep 2021 |
sdk/plugin/pb/backend.pb.go — deprecated since Oct 2021 |
builtin/credential/approle/path_role.go — deprecated since Oct 2021 |
helper/identity/types.pb.go — deprecated since Oct 2021 |
sdk/helper/pluginutil/multiplexing.pb.go — deprecated since Feb 2022 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v2.1.1, is not on the branch this survey read; the newest release on it is v1.2.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v2.1.1 |
Security & Reliability Posture
adequate39 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. 3 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.
| 5 cited: AWS access key, where fakes are usual |
1 environment file is committed
adequateui/.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.
ui/.env — committed environment file |
The build runs third-party code it does not pin
adequate1 third-party CI action is referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 2 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.
.github/workflows/mend-pr-scan.yml:25 — action pinned by tag |
.github/scripts/install-cob.sh:42 — download piped into a shell |
3 outbound calls can wait forever
adequate3 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.
api/auth/gcp/gcp.go:166 — outbound call without a timeout |
builtin/credential/cert/backend.go:188 — outbound call without a timeout |
sdk/helper/testcluster/blackbox/session_ops.go:25 — outbound call without a timeout |
24 SQL statements built from strings
adequate24 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.
physical/cockroachdb/cockroachdb.go:126 — SQL built from a string |
physical/cockroachdb/cockroachdb.go:129 — SQL built from a string |
physical/cockroachdb/cockroachdb.go:130 — SQL built from a string |
33 locked dependencies have published vulnerabilities, 13 high or critical in what ships
adequate33 of 2,340 locked dependencies match 82 published advisories in OSV, 51 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.
ui/pnpm-lock.yaml — websocket-driver 0.7.4: GHSA-xv26-6w52-cph6 (critical), fixed in 0.7.5; a development dependency |
ui/pnpm-lock.yaml — brace-expansion 1.1.15: GHSA-3jxr-9vmj-r5cp (high), fixed in 1.1.16 |
ui/pnpm-lock.yaml — brace-expansion 2.1.1: GHSA-3jxr-9vmj-r5cp (high), fixed in 2.1.2 |
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.
30 advisories against this project in the last 24 months, 15 high or critical
adequateThe newest was published on 2026-10-01. 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 25 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.2.0. Answer lives in: the release you run, set against each fixed version. GHSA-9g4h-h484-3578 (high), GHSA-8f82-53h8-2p34 (high), GHSA-g233-2p4r-3q7v (high) 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: 116 records name vault with nothing tying them to this repository (CVE-2004-2777, CVE-2007-4785, CVE-2010-4449, …).
| 2026-10-01: CVE-2026-15911 (high): Confluent Kafka Python client's HashiCorp Vault KMS integration could allow a remote attacker to obtain sensitive information due to improper TLS certificate va |
| 2026-09-23: CVE-2026-63131 (moderate): OpenBao is an open source identity-based secrets management system. Prior to 2.6.0, OpenBao's vault/policy/acl.go could evaluate a broader wildcard ACL grant be |
| 2026-09-10: CVE-2026-87993 (high): The consul-template library is vulnerable to an information disclosure issue in its error handling path that may allow Vault secret values to appear in template |
| 2026-08-24: CVE-2026-5006 (moderate): A vulnerability was identified in HashiCorp Vault and Vault Enterprise (“Vault”) such that an authenticated attacker may manipulate an identity value referenced |
| 2026-08-13: CVE-2026-8715 (critical): Vault Secrets Operator 1.3.0 up to 1.4.1 is vulnerable to an arbitrary file read and credential exfiltration issue in the AppRole authentication configuration t |
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/vault: 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.