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

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

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

2 credential-shaped strings added in the history sit in tests, examples, documentation or local development settings

adequate

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

Evidence
2 cited: private key block, where fakes are usual
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.23

TLS certificate checks can be switched off by the user in 2 places

adequate

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

Evidence
cmd/headscale/cli/oauth_client.go:213 — verification off behind an opt-in
cmd/headscale/cli/utils.go:265 — verification off behind an opt-in

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.