Read 2026-10-23
dragonflydb/dragonfly: technical due diligence, read from its repository
What Borehole read in dragonflydb/dragonfly's code and history at d8cd94b: 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 | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE.md:1: The licence is BUSL-1.1: source available, not open sourceLICENSE: Relicensed: Apache-2.0 → Apache-2.0 with the Commons Clause and an attribution term (2021-12-20) → BUSL-1.1 (2022-05-29).gitmodules:1: 1 submodule(s) this survey does not read: helio
Architecture & Codebase — including AI provenance
strongsrc/server/search/search_family_test.cc is 10,936 lines, 67× this codebase's median file
adequateThe median source file here is 162 lines. 41 files exceed 1,620 lines, the largest being 10,936. 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.
src/server/search/search_family_test.cc:1 — 10,936 lines (67× median) |
src/facade/dragonfly_connection.cc:1 — 4,476 lines (27× median) |
src/server/search/search_family.cc:1 — 4,420 lines (27× median) |
src/core/search/search_test.cc:1 — 4,386 lines (27× median) |
src/server/stream_family.cc:1 — 4,352 lines (26× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, v2.0.2, is not on the branch this survey read; the newest release on it is v2.0.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v2.0.2 |
Security & Reliability Posture
adequate1 credential-shaped string committed to the tree
adequateMatches for private key block appear in tracked files outside test and fixture paths. They stay in the history even after they leave the tree, so what matters is whether each was rotated. 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. Every match is in CI configuration, where the usual reason is a throwaway service container's credential. Worth confirming; not a leak on its own.
| private key block pattern matched |
The build runs third-party code it does not pin
adequate16 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/benchmark.yml:60 — action pinned by tag |
.github/workflows/benchmark.yml:148 — action pinned by tag |
5 locked dependencies have published vulnerabilities, 1 high or critical
adequate5 of 225 locked dependencies match 14 published advisories in OSV, 1 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
uv.lock — certifi 2026.7.22: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19; a development dependency |
uv.lock — multidict 6.7.1: GHSA-54p9-h82j-f925 (moderate), fixed in 6.9.1; a development dependency |
contrib/charts/dragonfly/go.mod — golang.org/x/crypto v0.52.0: GO-2026-5932 (unrated) |
The licence is BUSL-1.1: source available, not open source
adequateLICENSE.md 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.md:1 — 59 lines, BUSL-1.1 |
Relicensed: Apache-2.0 → Apache-2.0 with the Commons Clause and an attribution term (2021-12-20) → BUSL-1.1 (2022-05-29)
adequateThe root licence changed 2 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.
11 advisories against this project in the last 24 months, 2 high or critical
adequateThe newest was published on 2026-10-15. 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 5 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.0.0. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 29 records name dragonfly with nothing tying them to this repository (CVE-2005-0914, CVE-2005-2220, CVE-2005-2221, …).
| 2026-10-15: CVE-2026-111279 (high): Dragonfly through 2.0.2 contains an unbounded memory allocation vulnerability that allows unauthenticated clients to exhaust memory by passing a negative COUNT |
| 2026-09-23: GHSA-pmgx-g74v-v37g (moderate): Malformed hash/zset listpack in an RDB image crashes the server and can leak heap memory |
| 2026-09-20: GHSA-9q98-cx72-pg45 (moderate): Unauthenticated remote code execution in DragonflyDB (memcached reply-builder heap overflow) |
| 2026-09-20: GHSA-f4g8-vhw4-36xm (low): Unauthenticated remote code execution in DragonflyDB (stack buffer overflow in `CompactObj::HashCode()`) |
| 2026-09-20: GHSA-cg35-6jf4-crfh (moderate): DragonflyDB stream RDB deserialization double-free (CWE-415) |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| C source is not searched: C programs log through printf-style calls unless they take a library, and none of the 10 searched for is referenced |
One request cannot be followed through the logs
adequateNothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.
| no request id, correlation id or tracing found |
No 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 dragonflydb/dragonfly: 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.