Borehole · Project · free tier
grafana/pyroscope
Free reading: not for reliance
99626c0 · 6,038 commits · 2,851 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Posturestrong
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: Apache-2.0 → AGPL-3.0 (2023-03-15)

Architecture & Codebase — including AI provenance

strong
01.6

pkg/phlaredb/block_querier.go is 2,223 lines, 20× this codebase's median file

adequate

The 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.

Evidence
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

strong
02.16

Tests are retried until they pass

adequate

The 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.

Evidence
ui/playwright.config.ts:10 — test retry

Product & Engineering Maturity

adequate
04.3

82 direct dependencies in a single manifest

adequate

go.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.

Evidence
go.mod — 82 declared
api/go.mod — 10 declared
ui/package.json — 5 declared
lidia/go.mod — 1 declared
04.38

19 files still carry code deprecated more than two years ago

adequate

19 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.

Evidence
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

strong
05.13

4 outbound calls can wait forever

adequate

4 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.

Evidence
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
05.26

4 locked dependencies have published vulnerabilities, 5 high or critical

adequate

4 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.

Evidence
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
05.9

4 vendored components with no licence

adequate

Third-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.

05.60

Relicensed: Apache-2.0 → AGPL-3.0 (2023-03-15)

adequate

The 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.

Evidence
LICENSE — Apache-2.0 from 2020-12-09
LICENSE — AGPL-3.0 from 2023-03-15
05.65

1 advisory against this project in the last 24 months, 1 high or critical

adequate

The 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.

Evidence
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

strong
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised
06.18

1 of 6 deployed images carry no version, or `latest`

adequate

1 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.

Fit with the Acquirer

not assessable

Not 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.