Borehole · Project · free tier
juanfont/headscale
Free reading: not for reliance
53113e2 · 4,556 commits · 1,499 files
Read 2026-10-04

juanfont/headscale: technical due diligence, read from its repository

What Borehole read in juanfont/headscale's code and history at 53113e2: 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 Maturityadequate
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • AI_POLICY.md:1: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.6

hscontrol/state/state.go is 3,553 lines, 18× this codebase's median file

adequate

The median source file here is 190 lines. 3 files exceed 1,900 lines, the largest being 3,553. 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
hscontrol/state/state.go:1 — 3,553 lines (18× median)
hscontrol/policy/v2/types.go:1 — 3,360 lines (17× median)
hscontrol/policy/v2/policy.go:1 — 1,913 lines (10× median)

Engineering Process & SDLC Maturity

adequate
02.17

CI runs tests that cannot fail the build

adequate

1 test command in CI ends in `|| true` or an equivalent, so the pipeline passes whatever the tests say. A green build then means the tests ran, not that they passed.

Evidence
.github/workflows/test-integration.yaml:56 — a test command that cannot fail

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v0.29.4, is not on the branch this survey read; the newest release on it is v0.29.0. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v0.29.4

Security & Reliability Posture

adequate
05.3

6 dependencies float, and no lockfile is committed

adequate

Dependency versions are declared as ranges and no lockfile is committed, so a build today does not necessarily produce what a build last month produced. That matters twice over in a transaction: the thing being bought cannot be reproduced exactly, and a compromised upstream release arrives without anyone choosing to take it.

05.13

2 outbound calls can wait forever

adequate

2 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
gen/client/v1/client.gen.go:445 — outbound call without a timeout
gen/client/v2/client.gen.go:354 — outbound call without a timeout
05.26

3 locked dependencies have published vulnerabilities, 1 high or critical in what ships

adequate

3 of 219 locked dependencies match 5 published advisories in OSV, 2 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
go.mod — github.com/docker/docker v28.5.2+incompatible: GO-2026-4887 (high)
go.mod — github.com/opencontainers/runc v1.3.2: GHSA-cgrx-mc8f-2prm (high), fixed in 1.3.3
go.mod — go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0: GHSA-8wmf-6v46-5gfg (low), fixed in 1.45.0

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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on juanfont/headscale: 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.