Read 2026-10-23
restatedev/restate: technical due diligence, read from its repository
What Borehole read in restatedev/restate's code and history at 4b2fb2c: 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
LICENSE:1: The licence is BUSL-1.1: source available, not open source
Architecture & Codebase — including AI provenance
strongcrates/worker/src/partition/state_machine/mod.rs is 5,615 lines, 38× this codebase's median file
adequateThe median source file here is 145 lines. 28 files exceed 1,450 lines, the largest being 5,615. 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.
crates/worker/src/partition/state_machine/mod.rs:1 — 5,615 lines (38× median) |
crates/storage-api/src/protobuf_types.rs:1 — 4,804 lines (33× median) |
crates/types/src/schema/metadata/updater/tests.rs:1 — 3,458 lines (23× median) |
crates/invoker-impl/src/lib.rs:1 — 2,883 lines (19× median) |
crates/types/src/invocation/mod.rs:1 — 2,085 lines (14× median) |
Engineering Process & SDLC Maturity
strongAlmost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 1,515 tracked files |
Product & Engineering Maturity
adequate5% of bug fixes add or change a test
adequateOf 236 fixes in the last 24 months, 12 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.
| 12 of 236 |
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.
| checked 5 kinds of guard rail across 1,515 tracked files; 0 present |
27 dependencies float, and no lockfile is committed
adequateDependency versions are declared as ranges and no lockfile is committed, so a build today does not necessarily produce what a build last month produced. That matters twice over in a transaction: the thing being bought cannot be reproduced exactly, and a compromised upstream release arrives without anyone choosing to take it.
npm/restate-server/package.json:25 — ^1.4.0 |
npm/restate-server/package.json:31 — ^22.13.14 |
npm/restate-server/package.json:32 — ^5.48.0 |
npm/restate-server/package.json:33 — ^5.48.0 |
npm/restate-server/package.json:34 — ^8.31.0 |
1 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/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate29 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; 2 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.yml:27 — action pinned by tag |
.github/workflows/ci.yml:29 — action pinned by tag |
.github/workflows/release.yml:67 — download piped into a shell |
6 locked dependencies have published vulnerabilities
adequate6 of 979 locked dependencies match 6 published advisories in OSV. 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.
Cargo.lock — protobuf 2.28.0: GHSA-2gh3-rmm4-6rq5 (moderate), fixed in 3.7.2 |
Cargo.lock — ctutils 0.4.2: RUSTSEC-2026-0385 (unrated), fixed in 0.4.4 |
Cargo.lock — fxhash 0.2.1: RUSTSEC-2025-0057 (unrated) |
The licence is BUSL-1.1: source available, not open source
adequateLICENSE grants BUSL-1.1: source available, not open source; production use restricted until the change date. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE:1 — 120 lines, BUSL-1.1 |
Observability & Operations
adequateOne request cannot be followed through the logs
adequateNothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.
| no request id, correlation id or tracing found |
No 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 restatedev/restate: 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.