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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
CONTRIBUTING.md:212: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
strongCommit messages are templated rather than written
adequate33% 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.
| 348× 'autogen(docs): regenerate and update changelog' |
| 48× 'autogen(docs): generate and format documentation' |
| 40× 'chore: update docusaurus template' |
internal/httpclient/api_permission.go is 1,068 lines, 1068× this codebase's median file
adequateThe 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.
internal/httpclient/api_permission.go:1 — 1,068 lines (1068× median) |
Engineering Process & SDLC Maturity
adequateTests cover a thin slice of the codebase
adequate85 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.
| 85 test files / 2,045 source files |
Product & Engineering Maturity
adequate89 direct dependencies in a single manifest
adequateoryx/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.
oryx/go.mod — 89 declared |
go.mod — 39 declared |
gen/go/go.mod — 4 declared |
contrib/docs-code-samples/package.json — 3 declared |
18% of bug fixes add or change a test
adequateOf 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.
| 17 of 94 |
10 files still carry code deprecated more than two years ago
adequate10 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.
proto/ory/keto/relation_tuples/v1alpha2/expand_service.pb.go — deprecated since Mar 2022 |
proto/ory/keto/relation_tuples/v1alpha2/read_service.pb.go — deprecated since Mar 2022 |
proto/ory/keto/relation_tuples/v1alpha2/write_service.pb.go — deprecated since Mar 2022 |
proto/ory/keto/relation_tuples/v1alpha2/relation_tuples.pb.go — deprecated since Mar 2022 |
proto/ory/keto/relation_tuples/v1alpha2/version.pb.go — deprecated since Mar 2022 |
Security & Reliability Posture
adequateThe build runs third-party code it does not pin
adequate20 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.
.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 |
2 SQL statements built from strings
adequate2 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.
oryx/popx/migrator.go:217 — SQL built from a string |
oryx/popx/migrator.go:540 — SQL built from a string |
6 locked dependencies have published vulnerabilities, 2 high or critical in what ships
adequate6 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.
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 |
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe 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).
| 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
strongNo 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 |
Fit with the Acquirer
not assessableNot 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.