Borehole · Project · free tier
ory/keto
Free reading: not for reliance
f50b489 · 1,993 commits · 3,179 files
Read 2026-10-23

ory/keto: technical due diligence, read from its repository

What Borehole read in ory/keto's code and history at f50b489: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • CONTRIBUTING.md:212: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.3

Commit messages are templated rather than written

adequate

33% of commit subjects are exact repeats of another subject, and subject length varies by only 17.7 characters. A log written by someone explaining their reasoning to a future reader does not look like this. The log is therefore weak evidence of intent, whatever the code is like.

Evidence
348× 'autogen(docs): regenerate and update changelog'
48× 'autogen(docs): generate and format documentation'
40× 'chore: update docusaurus template'
01.6

internal/httpclient/api_permission.go is 1,068 lines, 1068× this codebase's median file

adequate

The median source file here is 1 lines. 1 file exceed 1,000 lines, the largest being 1,068. 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
internal/httpclient/api_permission.go:1 — 1,068 lines (1068× median)

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

85 test files against 2,045 source files (4.2%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.

Evidence
85 test files / 2,045 source files

Product & Engineering Maturity

adequate
04.3

89 direct dependencies in a single manifest

adequate

oryx/go.mod declares 89 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
oryx/go.mod — 89 declared
go.mod — 39 declared
gen/go/go.mod — 4 declared
contrib/docs-code-samples/package.json — 3 declared
04.19

18% of bug fixes add or change a test

adequate

Of 94 fixes in the last 24 months, 17 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.

Evidence
17 of 94
04.38

10 files still carry code deprecated more than two years ago

adequate

10 files were marked deprecated over two years ago and still are, the oldest since Mar 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.

Security & Reliability Posture

adequate
05.27

The build runs third-party code it does not pin

adequate

20 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 4 steps pipe a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/ci.yaml:21 — action pinned by tag
.github/workflows/ci.yaml:37 — action pinned by tag
install.sh:42 — download piped into a shell
05.20

2 SQL statements built from strings

adequate

2 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
oryx/popx/migrator.go:217 — SQL built from a string
oryx/popx/migrator.go:540 — SQL built from a string
05.26

6 locked dependencies have published vulnerabilities, 2 high or critical in what ships

adequate

6 of 357 locked dependencies match 8 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.

Evidence
contrib/docs-code-samples/package-lock.json — @grpc/grpc-js 1.14.4: GHSA-m9gg-hp2v-232j (high), fixed in 1.14.5
contrib/docs-code-samples/package-lock.json — @grpc/grpc-js 1.9.16: GHSA-m9gg-hp2v-232j (high), fixed in 1.13.6
oryx/go.mod — go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0: GHSA-8wmf-6v46-5gfg (low), fixed in 1.45.0
05.65

1 advisory against this project in the last 24 months, 1 high or critical

adequate

The newest was published on 2026-03-20. 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. The record is incomplete: NVD: 1 record names keto with nothing tying it to this repository (CVE-2025-61117).

Evidence
2026-03-20: GHSA-c38g-mx2c-9wf2 (high), fixed in 0.14.1-0.20260320140104-e4393662cd2e: Ory Keto has a SQL injection via forged pagination tokens

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 ory/keto: 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.