Borehole · Project · free tier
projectcalico/calico
Free reading: not for reliance
1ecee8f · 40,916 commits · 5,622 files
Read 2026-11-03

projectcalico/calico: technical due diligence, read from its repository

What Borehole read in projectcalico/calico's code and history at 1ecee8f: 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 provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

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

Architecture & Codebase — including AI provenance

adequate
01.6

felix/dataplane/linux/bpf_ep_mgr.go is 6,180 lines, 51× this codebase's median file

adequate

The median source file here is 119 lines. 45 files exceed 1,190 lines, the largest being 6,180. 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
felix/dataplane/linux/bpf_ep_mgr.go:1 — 6,180 lines (51× median)
libcalico-go/lib/apis/internalapi/generated.openapi.go:1 — 3,580 lines (30× median)
felix/dataplane/linux/int_dataplane.go:1 — 3,347 lines (28× median)
libcalico-go/lib/ipam/ipam.go:1 — 2,803 lines (23× median)
felix/bpf-gpl/tc.c:1 — 2,517 lines (21× median)
01.25

1 base image floats: no version, or `latest`

adequate

1 of 20 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
whisker/docker-image/Dockerfile:17 — base image without a version

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

139 direct dependencies in a single manifest

adequate

go.mod declares 139 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 — 139 declared
whisker/package.json — 35 declared
api/go.mod — 10 declared
lib/httpmachinery/go.mod — 8 declared
04.17

Python 3.8 is past end of life

adequate

The code is pinned to Python 3.8 (end of life 2024-10-07). None of these receives security fixes any more; the first stopped on 2024-10-07. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.

Evidence
networking-calico/Dockerfile — Python 3.8, end of life 2024-10-07
04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag v3.33.0

Security & Reliability Posture

adequate
05.6

7 Dockerfiles run the application as root

adequate

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

Evidence
.oss-scanner/Dockerfile — runs as root
felix/docker-image/Dockerfile — runs as root
goldmane/docker/flowgen/Dockerfile — runs as root
networking-calico/Dockerfile — runs as root
05.25

2 environment files are committed

adequate

whisker/.env, whisker/.env.production are tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
whisker/.env — committed environment file
whisker/.env.production — committed environment file
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
cni-plugin/pkg/plugin/plugin.go:124 — outbound call without a timeout
felix/k8sfv/metric.go:28 — outbound call without a timeout
goldmane/cmd/health/main.go:38 — outbound call without a timeout
05.21

2 shell commands built from strings

adequate

2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

05.26

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

adequate

7 of 1,227 locked dependencies match 10 published advisories in OSV, 3 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 — go.etcd.io/etcd/client/pkg/v3 v3.7.0: GO-2026-6107 (high), fixed in 3.7.1
go.mod — github.com/go-jose/go-jose/v4 v4.1.4: GHSA-mgcc-cww5-fp2q (high), fixed in 4.1.6
whisker/yarn.lock — source-map-js 1.2.1: GHSA-68fv-2mgg-jv7q (high), fixed in 1.2.2
05.45

14 workload settings give a container the host

adequate

14 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.

05.9

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

Evidence
third_party/envoy-gateway — 3 tracked files, no licence file
third_party/envoy-proxy — 2 tracked files, no licence file
third_party/envoy-ratelimit — 3 tracked files, no licence file
05.65

6 advisories against this project in the last 24 months, 2 high or critical

adequate

The newest was published on 2026-07-30. 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 commit. GHSA-9p7w-w5q6-mxj3 (moderate), GHSA-m67g-87rx-v42c (moderate) are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 1 record names calico with nothing tying it to this repository (CVE-2022-28224).

Evidence
2026-07-30: CVE-2026-41186 (moderate): When Calico's shared debug server is enabled (disabled by default), the Calico kube-controllers and Goldmane components bind their Go pprof debug listener to 0.
2026-07-30: CVE-2026-41187 (moderate): Calico's apiserver wraps tier-scoped resources so that every operation runs through AuthorizeTierOperation, but the Delete override on NetworkPolicy, GlobalNetw
2026-07-30: CVE-2026-6540 (high): Calico's Application Layer Policy (disabled by default), which enforces HTTP rules through Dikastes, fails to perform URL path normalization. As a result, HTTP
2026-05-28: GHSA-9p7w-w5q6-mxj3 (moderate), fixed in 3.31.6: Calico Inserts Sensitive Information into Log File
2026-05-28: GHSA-m67g-87rx-v42c (moderate), fixed in 3.31.6: Calico Inserts Sensitive Information into Log File

Observability & Operations

adequate
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.35

Sends usage data to usage.projectcalico.org by default

adequate

felix/usagerep/usagerep.go sends to usage.projectcalico.org, and felix/config/config_params.go leaves reporting on as shipped. Every installation reports to the vendor unless its operator turns this off. For a buyer running it inside their own product, that is an outbound data flow to a third party: ask what is sent, how often, and whether the buyer's customers were told.

Evidence
felix/usagerep/usagerep.go:34 — reports to usage.projectcalico.org
felix/config/config_params.go:462 — the reporting setting is on by default
06.18

7 of 17 deployed images carry no version, or `latest`

adequate

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

Evidence
charts/calico/values.yaml:7 — image without a version
charts/calico/values.yaml:10 — image without a version
charts/calico/values.yaml:13 — image without a version

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on projectcalico/calico: 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.