Read 2026-11-03
grafana/pyroscope: technical due diligence, read from its repository
What Borehole read in grafana/pyroscope's code and history at 99626c0: 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 | adequate |
| Security & Reliability Posture | strong |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
LICENSE: Relicensed: Apache-2.0 → AGPL-3.0 (2023-03-15)
Architecture & Codebase — including AI provenance
strongpkg/phlaredb/block_querier.go is 2,223 lines, 20× this codebase's median file
adequateThe median source file here is 106 lines. 10 files exceed 1,060 lines, the largest being 2,223. 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.
pkg/phlaredb/block_querier.go:1 — 2,223 lines (20× median) |
pkg/phlaredb/tsdb/index/index.go:1 — 2,089 lines (19× median) |
pkg/pprof/pprof.go:1 — 1,629 lines (15× median) |
pkg/distributor/distributor.go:1 — 1,570 lines (14× median) |
pkg/phlaredb/query/iters.go:1 — 1,290 lines (12× median) |
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:10 — test retry |
Product & Engineering Maturity
adequate82 direct dependencies in a single manifest
adequatego.mod declares 82 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 — 82 declared |
api/go.mod — 10 declared |
ui/package.json — 5 declared |
lidia/go.mod — 1 declared |
19 files still carry code deprecated more than two years ago
adequate19 files were marked deprecated over two years ago and still are, the oldest since Jan 2023. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
api/gen/proto/go/push/v1/push.pb.go — deprecated since Jan 2023 |
api/gen/proto/go/status/v1/status.pb.go — deprecated since Jan 2023 |
api/gen/proto/go/querier/v1/querier.pb.go — deprecated since Jan 2023 |
api/gen/proto/go/ingester/v1/ingester.pb.go — deprecated since Jan 2023 |
pkg/frontend/frontendpb/frontend.pb.go — deprecated since Feb 2023 |
Security & Reliability Posture
strong4 outbound calls can wait forever
adequate4 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.
pkg/frontend/frontend.go:320 — outbound call without a timeout |
pkg/frontend/frontend.go:321 — outbound call without a timeout |
pkg/frontend/frontend.go:377 — outbound call without a timeout |
4 locked dependencies have published vulnerabilities, 5 high or critical
adequate4 of 570 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
ui/yarn.lock — undici 8.10.2: GHSA-2m5v-pch6-74hx (high), fixed in 8.12.2 |
ui/yarn.lock — zod 4.4.3: GHSA-mrhx-c7xc-m3w5 (high), fixed in 4.6.6 |
ui/yarn.lock — minimatch 10.2.6: GHSA-g3hv-75wg-m249 (moderate), fixed in 11.0.1 |
4 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
operations/pyroscope/jsonnet/pyroscope-mixin/vendor/github.com — 32 tracked files, no licence file |
operations/pyroscope/jsonnet/pyroscope-mixin/vendor/grafana-builder — 1 tracked files, no licence file |
operations/pyroscope/jsonnet/pyroscope-mixin/vendor/grafonnet — 1 tracked files, no licence file |
operations/pyroscope/jsonnet/pyroscope-mixin/vendor/mixin-utils — 1 tracked files, no licence file |
Relicensed: Apache-2.0 → AGPL-3.0 (2023-03-15)
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.
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-04-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 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 2.4.2. Answer lives in: the release you run, set against each fixed version.
| 2026-04-15: CVE-2025-41118 (critical): Pyroscope is an open-source continuous profiling database. The database supports various storage backends, including Tencent Cloud Object Storage (COS). If the |
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 |
1 of 6 deployed images carry no version, or `latest`
adequate1 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
operations/monitoring/helm/pyroscope-monitoring/lgtm.yaml:39 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on grafana/pyroscope: 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.