Read 2026-11-08
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.2, 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.2 |
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 |
3 credential-shaped strings exist in the history
adequateMatches for private key block were committed at some point across 20,000 commits examined (the scan stopped at its limit, so older history was not read). The files that held them are no longer in the working tree — but removal from a file is not removal from the history, and the history is what transfers with the asset. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. 4 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.
| 3 cited: private key block pattern added here |
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 |
TLS certificate checks can be switched off by the user in 1 place
adequate1 places disable certificate verification only when a setting named for it asks: inside a branch on it, such as an `--insecure` flag, or in a client that such a branch picks, or in a probe the service runs against itself. That is an opt-in for self-signed or test servers, not verification switched off. Worth knowing whether production can reach the setting.
command/healthcheck/pki_enable_acme_issuance.go:152 — verification off behind an opt-in |
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.
35 advisories against this project in the last 24 months, 18 high or critical
adequateThe newest was published on 2026-10-29. 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 30 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: 139 records name vault with nothing tying them to this repository (CVE-2004-2777, CVE-2007-4785, CVE-2010-4449, …).
| 2026-10-29: CVE-2026-13303 (high): HashiCorp Boundary and Boundary Enterprise are vulnerable to a server-side request forgery in the Vault credential store integration that may allow an authentic |
| 2026-10-07: CVE-2026-105816 (high): Vault and Vault Enterprise did not consistently verify that stored plugin catalog entries reference binaries within the configured plugin directory. When Vault |
| 2026-10-07: CVE-2026-105818 (moderate): Vault's PKI secrets engine ACME server did not restrict certificate identities that ACME challenges do not validate when issuing certificates under the default |
| 2026-10-07: CVE-2026-105820 (moderate): Vault's ACL policy cache allowed namespace traversal when policy names contained path traversal constructs. This may allow a token assigned specially crafted po |
| 2026-10-07: CVE-2026-89322 (high): Vault and Vault Enterprise did not consistently evaluate ACL policies against the canonical form of resource and policy names. This may allow an authenticated u |
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.