Borehole · Project · free tier
unkeyed/unkey
Free reading: not for reliance
837586e · 6,133 commits · 7,803 files
Read 2026-11-08

unkeyed/unkey: technical due diligence, read from its repository

What Borehole read in unkeyed/unkey's code and history at 837586e: 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

  • LICENSE: Relicensed: GPL-3.0 → AGPL-3.0 (2024-02-05)

Architecture & Codebase — including AI provenance

strong
01.6

svc/api/openapi/gen.go is 7,773 lines, 127× this codebase's median file

adequate

The median source file here is 61 lines. 11 files exceed 1,000 lines, the largest being 7,773. 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
svc/api/openapi/gen.go:1 — 7,773 lines (127× median)
pkg/db/querier_generated.go:1 — 3,678 lines (60× median)
svc/ctrl/internal/db/querier_generated.go:1 — 2,468 lines (40× median)
internal/services/ratelimit/db/models_generated.go:1 — 1,788 lines (29× median)
web/apps/dashboard/app/api/webhooks/stripe/route.ts:1 — 1,384 lines (22× median)
01.7

4% of code blocks appear verbatim in more than one file

adequate

9,009 distinct 8-line blocks appear in two or more files. Copy-paste is the cheapest thing a generator does and among the more expensive things to inherit: a fix has to be applied everywhere the block landed, and nothing in the repository records where that is. Tests, fixtures and documentation examples are excluded — those repeat by design — so this is duplication in code that ships. Blocks are matched after normalising whitespace and only across different files.

Evidence
identical 8-line block in 92 files: internal/services/ratelimit/db/global_counters_imported.sql_generated.go, internal/services/ratelimit/db/global_counters_list_all.sql_generated.go, pkg/db/api_find_by_key_auth_ids.sql_generated.go
identical 8-line block in 82 files: internal/services/ratelimit/db/global_counters_imported.sql_generated.go, internal/services/ratelimit/db/global_counters_list_all.sql_generated.go, pkg/db/api_find_by_key_auth_ids.sql_generated.go
identical 8-line block in 82 files: internal/services/ratelimit/db/global_counters_imported.sql_generated.go, internal/services/ratelimit/db/global_counters_list_all.sql_generated.go, pkg/db/api_find_by_key_auth_ids.sql_generated.go
identical 8-line block in 82 files: internal/services/ratelimit/db/global_counters_imported.sql_generated.go, internal/services/ratelimit/db/global_counters_list_all.sql_generated.go, pkg/db/api_find_by_key_auth_ids.sql_generated.go
identical 8-line block in 78 files: svc/api/routes/v2_analytics_get_verifications/handler.go, svc/api/routes/v2_apis_create_api/handler.go, svc/api/routes/v2_apis_delete_api/handler.go

Engineering Process & SDLC Maturity

adequate
02.24

8% of recent commits change more than 2,000 lines

adequate

228 of 2755 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
228 commits over 2,000 lines

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.1

1 credential-shaped string in the tree 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
JWT, where fakes are usual
05.5

1 credential-shaped string exists in the history

adequate

Matches for private key block were committed at some point across 5,769 commits examined. The files that held them are no longer in the working tree — but removal from a file is not removal from the history, and the history is what transfers with the asset. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when.

Evidence
private key block pattern added here
05.13

9 outbound calls can wait forever

adequate

9 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
cmd/healthcheck/main.go:44 — outbound call without a timeout
pkg/circuitbreaker/doc.go:26 — outbound call without a timeout
pkg/retry/retry.go:39 — outbound call without a timeout
05.20

1 SQL statement built from strings

adequate

1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
pkg/clickhouse/flush.go:26 — SQL built from a string
05.49

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
web/apps/dashboard/next.config.js:131 — source maps in a production build
05.60

Relicensed: GPL-3.0 → AGPL-3.0 (2024-02-05)

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 — GPL-3.0 from 2023-06-09
LICENSE — AGPL-3.0 from 2024-02-05

Observability & Operations

strong
06.17

The code branches on the environment's name at 15 places

adequate

15 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.

Evidence
gen/proto/hydra/v1/github_status.pb.go:103 — branch on the environment name
gen/proto/hydra/v1/github_status.pb.go:103 — branch on the environment name
gen/proto/hydra/v1/github_status.pb.go:103 — branch on the environment name

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on unkeyed/unkey: 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.