Borehole · Project · free tier
theonedev/onedev
Free reading: not for reliance
8f64006 · 7,682 commits · 6,089 files
Read 2026-10-23

theonedev/onedev: technical due diligence, read from its repository

What Borehole read in theonedev/onedev's code and history at 8f64006: 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 & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • license.txt: Relicensed: proprietary → MIT (2017-07-12) → proprietary (2017-07-13) → MIT (2018-11-06)
  • .gitmodules:1: 1 submodule(s) this survey does not read: server-ee

Architecture & Codebase — including AI provenance

strong
01.6

server-core/src/main/java/io/onedev/server/web/asset/es6/pdfjs/pdf.mjs is 26,391 lines, 471× this codebase's median file

adequate

The median source file here is 56 lines. 69 files exceed 1,000 lines, the largest being 26,391. 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.

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

292 test files against 4,338 source files (6.7%). 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
292 test files / 4,338 source files
02.6

Almost no process scaffolding exists in the repository

adequate

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

Evidence
1 of 5 markers present across 6,089 tracked files
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (e2e-test/playwright.config.js). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
e2e-test/playwright.config.js:31 — test retry

Product & Engineering Maturity

adequate
04.17

Node.js 10 is past end of life

adequate

The code is pinned to Node.js 10 (end of life 2021-04-30). None of these receives security fixes any more; the first stopped on 2021-04-30. 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
server-plugin/server-plugin-buildspec-node/Dockerfile — Node.js 10, end of life 2021-04-30
04.19

12% of bug fixes add or change a test

adequate

Of 401 fixes in the last 24 months, 48 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
48 of 401

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

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

Evidence
checked 5 kinds of guard rail across 6,089 tracked files; 0 present
05.6

1 Dockerfile runs 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.

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.

05.22

1 deserialiser that can run code

adequate

1 places read data with a deserialiser that executes what it reads (Java object streams). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

05.34

1 of 1 Kubernetes workloads declare no resource limits

adequate

1 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.

Evidence
server-product/helm/templates/statefulset.yaml — workload with no limits
05.60

Relicensed: proprietary → MIT (2017-07-12) → proprietary (2017-07-13) → MIT (2018-11-06)

adequate

The root licence changed 3 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
license.txt — proprietary from 2016-12-14
license.txt — MIT from 2017-07-12
license.txt — proprietary from 2017-07-13
license.txt — MIT from 2018-11-06
05.65

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

adequate

The newest was published on 2026-10-18. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 4 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 16.9.7. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 1 record names onedev with nothing tying it to this repository (CVE-2026-60018).

Evidence
2026-10-18: GHSA-f9rv-8qpc-j4mv (high), fixed in 16.8.5: Arbitrary server file read via untrusted CI/CD job
2026-09-12: GHSA-c296-25jw-hc2x (high), fixed in 16.5.8: Stored XSS in Maven package page via unescaped POM `packaging` element
2026-09-12: GHSA-4g92-hmfv-3f9h (critical), fixed in 16.5.7: Authenticated pre-authorization Groovy RCE via settings validation
2026-09-12: GHSA-f544-q7fq-359r (high), fixed in 16.5.10: A Package Writer can read server-local files through Maven POM XXE
2026-08-07: GHSA-p3rv-f672-8x57 (moderate), fixed in 16.0.0: Sensitive CI/CD job secrets exposure through /forks endpoint

Observability & Operations

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 5,081 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.

Evidence
searched 5,081 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 5,081 files for 10 structured logging libraries; 0 matched
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 theonedev/onedev: 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.