Read 2026-11-03
kubernetes-sigs/headlamp: technical due diligence, read from its repository
What Borehole read in kubernetes-sigs/headlamp's code and history at 622e4fe: 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 | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
CONTRIBUTING.md:3: names CNCFREADME.md:10: names OpenSSF
Architecture & Codebase — including AI provenance
strongbackend/cmd/headlamp.go is 3,668 lines, 33× this codebase's median file
adequateThe median source file here is 111 lines. 13 files exceed 1,110 lines, the largest being 3,668. 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.
backend/cmd/headlamp.go:1 — 3,668 lines (33× median) |
plugins/headlamp-plugin/bin/headlamp-plugin.js:1 — 2,381 lines (21× median) |
frontend/src/components/common/Resource/Resource.tsx:1 — 2,246 lines (20× median) |
app/electron/main.ts:1 — 2,154 lines (19× median) |
app/electron/plugin-management.ts:1 — 1,849 lines (16× median) |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (e2e-tests/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.
e2e-tests/playwright.config.ts:49 — test retry |
Product & Engineering Maturity
adequate105 direct dependencies in a single manifest
adequateplugins/headlamp-plugin/package.json declares 105 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.
plugins/headlamp-plugin/package.json — 105 declared |
frontend/package.json — 89 declared |
backend/go.mod — 40 declared |
app/package.json — 17 declared |
11 files still carry code deprecated more than two years ago
adequate11 files were marked deprecated over two years ago and still are, the oldest since Jun 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
frontend/src/lib/k8s/pod.ts — deprecated since Jun 2022 |
frontend/src/plugin/registry.tsx — deprecated since Jul 2022 |
frontend/src/components/common/Resource/Resource.tsx — deprecated since Sep 2023 |
frontend/src/lib/k8s/cluster.ts — deprecated since Oct 2023 |
frontend/src/components/App/Notifications/notificationsSlice.ts — deprecated since Nov 2023 |
Security & Reliability Posture
adequate1 Dockerfile runs the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
docker-extension/Dockerfile — runs as root |
2 of 3 Kubernetes workloads declare no resource limits
adequate2 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.
kubernetes-headlamp-monitoring.yaml — workload with no limits |
kubernetes-headlamp.yaml — workload with no limits |
11 locked dependencies have published vulnerabilities, 2 high or critical in what ships
adequate11 of 1,841 locked dependencies match 11 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.
app/package-lock.json — body-parser 2.3.0: GHSA-27r3-jxmh-p828 (high), fixed in 2.4.0 |
app/package-lock.json — zod 3.25.76: GHSA-mrhx-c7xc-m3w5 (high), fixed in 4.6.6 |
app/package-lock.json — @hono/node-server 2.1.1: GHSA-rmxm-3fg6-px4f (moderate), fixed in 2.1.3 |
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2025-07-10. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.
| 2025-07-10: GHSA-34rf-485x-g5h7 (high), fixed in 0.31.1: Arbitrary Command Injection Kubernetes Headlamp macOS Process headlamp@codeSign |
Observability & Operations
adequateNo 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 |
Readiness and liveness probes are identical in 2 of 2 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
charts/headlamp/templates/deployment.yaml — same probe endpoint twice |
kubernetes-headlamp.yaml — same probe endpoint twice |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on kubernetes-sigs/headlamp: 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.