Borehole · Project · free tier
openimsdk/open-im-server
Free reading: not for reliance
a5b427a · 1,748 commits · 686 files
Read 2026-10-23

openimsdk/open-im-server: technical due diligence, read from its repository

What Borehole read in openimsdk/open-im-server's code and history at a5b427a: 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 provenanceadequate
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: Apache-2.0 → Apache-2.0 with a commercial-licence condition (2025-02-04) → Apache-2.0 (2025-04-22)

Architecture & Codebase — including AI provenance

adequate
01.6

internal/rpc/group/group.go is 1,975 lines, 26× this codebase's median file

adequate

The median source file here is 74 lines. 3 files exceed 1,000 lines, the largest being 1,975. 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/rpc/group/group.go:1 — 1,975 lines (26× median)
pkg/common/storage/database/mgo/msg.go:1 — 1,245 lines (16× median)
internal/rpc/group/notification.go:1 — 1,049 lines (14× median)
01.25

1 base image floats: no version, or `latest`

adequate

1 of 2 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
Dockerfile:16 — base image without a version

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

40 test files against 413 source files (9.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
40 test files / 413 source files

Product & Engineering Maturity

adequate
04.19

2% of bug fixes add or change a test

adequate

Of 126 fixes in the last 24 months, 3 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
3 of 126
04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag v3.8.3

Security & Reliability Posture

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

Evidence
Dockerfile — runs as root
05.25

1 environment file is committed

adequate

.env is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
.env — committed environment file
05.27

The build runs third-party code it does not pin

adequate

10 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. 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/auto-invite-comment.yml:15 — action pinned by tag
.github/workflows/auto-invite-comment.yml:32 — action pinned by tag
05.13

2 outbound calls can wait forever

adequate

2 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

Evidence
pkg/common/ginprometheus/ginprometheus.go:230 — outbound call without a timeout
pkg/common/ginprometheus/ginprometheus.go:256 — outbound call without a timeout
05.34

15 of 16 Kubernetes workloads declare no resource limits

adequate

15 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
deployments/deploy/minio-statefulset.yml — workload with no limits
deployments/deploy/mongo-statefulset.yml — workload with no limits
deployments/deploy/openim-api-deployment.yml — workload with no limits
05.26

5 locked dependencies have published vulnerabilities

adequate

5 of 213 locked dependencies match 5 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.

Evidence
go.mod — github.com/gorilla/websocket v1.5.1: GHSA-w67g-5rqw-f597 (moderate), fixed in 1.5.3
go.mod — go.mongodb.org/mongo-driver v1.14.0: GHSA-cp6g-7hqx-qxhp (moderate), fixed in 1.17.7
go.mod — github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1: GHSA-xmrv-pmrh-hhx2 (moderate), fixed in 1.7.8
05.60

Relicensed: Apache-2.0 → Apache-2.0 with a commercial-licence condition (2025-02-04) → Apache-2.0 (2025-04-22)

adequate

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

Evidence
LICENSE — Apache-2.0 from 2023-06-29
LICENSE — Apache-2.0 with a commercial-licence condition from 2025-02-04
LICENSE — Apache-2.0 from 2025-04-22

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 openimsdk/open-im-server: 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.