Borehole · Project · free tier
orientechnologies/orientdb
Free reading: not for reliance
861fdd0 · 27,290 commits · 5,071 files
Read 2026-11-07

orientechnologies/orientdb: technical due diligence, read from its repository

What Borehole read in orientechnologies/orientdb's code and history at 861fdd0: 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 & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • license.txt: Relicensed: Apache-2.0 → CDDL-1.0 (2014-06-24) → Apache-2.0 (2018-06-07)

Architecture & Codebase — including AI provenance

strong
01.6

core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/OAbstractPaginatedStorage.java is 6,452 lines, 86× this codebase's median file

adequate

The median source file here is 75 lines. 63 files exceed 1,000 lines, the largest being 6,452. 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.

01.7

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

adequate

9,960 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 39 files: client/src/main/java/com/orientechnologies/orient/client/remote/message/OAddClusterRequest.java, client/src/main/java/com/orientechnologies/orient/client/remote/message/OCloseQueryRequest.java, client/src/main/java/com/orientechnologies/orient/client/remote/message/OCloseRequest.java
identical 8-line block in 38 files: client/src/main/java/com/orientechnologies/orient/client/remote/message/OAddClusterRequest.java, client/src/main/java/com/orientechnologies/orient/client/remote/message/OCloseQueryRequest.java, client/src/main/java/com/orientechnologies/orient/client/remote/message/OCloseRequest.java
identical 8-line block in 35 files: core/src/main/java/com/orientechnologies/orient/core/sql/functions/coll/OSQLMethodMultiValue.java, core/src/main/java/com/orientechnologies/orient/core/sql/functions/conversion/OSQLMethodAsDate.java, core/src/main/java/com/orientechnologies/orient/core/sql/functions/conversion/OSQLMethodAsDateTime.java
identical 8-line block in 24 files: agent/src/main/java/com/orientechnologies/agent/functions/OSQLEnterpriseFunction.java, core/src/main/java/com/orientechnologies/orient/core/sql/functions/misc/OSQLFunctionStrcmpci.java, core/src/main/java/com/orientechnologies/orient/core/sql/functions/misc/OSQLStaticReflectiveFunction.java
identical 8-line block in 14 files: core/src/main/java/com/orientechnologies/orient/core/sql/executor/BatchStep.java, core/src/main/java/com/orientechnologies/orient/core/sql/executor/CheckSafeDeleteStep.java, core/src/main/java/com/orientechnologies/orient/core/sql/executor/CopyRecordContentBeforeUpdateStep.java
01.33

A move from JavaScript to TypeScript began 118 months ago and is 75% done

adequate

141 product files are in the new language and 47 are still in the old one, 118 months after the first new file appeared. The new language's share of the lines rose from 7% to 74%, and moved 0 percentage points in the last year. Two languages for one job doubles what an engineer has to know, and the unmoved half is usually what nobody wants to touch. Ask whether finishing it is planned, and what it costs.

Evidence
47 old, 141 new

Engineering Process & SDLC Maturity

adequate
02.15

167 tests are switched off

adequate

167 skip markers across 122 of 1524 test files. Each is a failure somebody chose to stop seeing; the question is whether anyone is tracking them.

Product & Engineering Maturity

strong
04.5

Effort is shifting from building to rewriting

adequate

Deleted lines per line added rose from 0.75 to 1.04 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.

Evidence
first half 0.75, second half 1.04 (split 2018-07-17)
04.38

47 files still carry code deprecated more than two years ago

adequate

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

04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, 3.2.57, is not on the branch this survey read; the newest release on it is 3.2.27. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag 3.2.57

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
AWS access key, where fakes are usual
05.5

2 credential-shaped strings added in the history 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
2 cited: AWS access key, where fakes are usual
05.6

2 Dockerfiles run 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.

Evidence
packages/community/docker/Dockerfile — runs as root
packages/tp3/docker/Dockerfile — runs as root
05.20

7 SQL statements built from strings

adequate

7 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

05.22

6 deserialisers that can run code

adequate

6 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.26

45 locked dependencies have published vulnerabilities, 56 high or critical

adequate

45 of 1,055 locked dependencies match 117 published advisories in OSV, 56 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
studio/yarn.lock — babel-traverse 6.26.0: GHSA-67hx-6x53-jw92 (critical)
studio/yarn.lock — loader-utils 0.2.16: GHSA-76p3-8jx3-jpfq (critical), fixed in 2.0.3
studio/yarn.lock — loader-utils 1.1.0: GHSA-76p3-8jx3-jpfq (critical), fixed in 1.4.1
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
studio/webpack.config.js:107 — source maps in a production build
05.9

2 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
studio/src/vendor/jquery-cron-min.js — 1 tracked files, no licence file
studio/src/vendor/moment-jdateformatparser.js — 1 tracked files, no licence file
05.60

Relicensed: Apache-2.0 → CDDL-1.0 (2014-06-24) → Apache-2.0 (2018-06-07)

adequate

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

Evidence
license.txt — Apache-2.0 from 2010-04-07
license.txt — CDDL-1.0 from 2014-06-24
license.txt — Apache-2.0 from 2018-06-07

Observability & Operations

adequate
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 4,798 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 orientechnologies/orientdb: 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.