Borehole · Project · free tier
openspug/spug
Free reading: not for reliance
5d4b286 · 1,286 commits · 555 files
Read 2026-11-03

openspug/spug: technical due diligence, read from its repository

What Borehole read in openspug/spug's code and history at 5d4b286: 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

  • LICENSE: Relicensed: MIT → AGPL-3.0 (2020-05-30)

Architecture & Codebase — including AI provenance

strong
01.3

Commit messages are templated rather than written

adequate

39% of commit subjects are exact repeats of another subject, and subject length varies by only 10.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.

Evidence
113× 'fix issue'
56× 'fix issues'
43× 'A web update'

Engineering Process & SDLC Maturity

adequate
02.3

Tests are absent or token

adequate

0 test files against 391 source files (0.0%). 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
0 test files / 391 source files
02.5

28% of commit subjects say nothing about the change

adequate

355 of 1,251 subjects are either under twelve characters or one of the standard placeholders — wip, fix, update. The history is therefore not usable for reconstructing why a decision was taken, which is the main thing an inheriting engineer needs it for. It says nothing about code quality and a great deal about how much context transfers with the asset.

Evidence
355/1,251 low-content subjects (28.4%)
'U web fix'
'A web fix'
'A web fix'
'A add docs'
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 555 tracked files

Product & Engineering Maturity

strong
04.17

Node.js 20 is past end of life

adequate

The code is pinned to Node.js 20 (end of life 2026-04-30). None of these receives security fixes any more; the first stopped on 2026-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
Dockerfile — Node.js 20, end of life 2026-04-30

Security & Reliability Posture

adequate
05.3

50 dependencies float, and no lockfile is committed

adequate

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

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

The build runs third-party code it does not pin

adequate

7 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/docker-image.yml:68 — action pinned by tag
.github/workflows/docker-image.yml:77 — action pinned by tag
05.13

3 outbound calls can wait forever

adequate

3 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
spug_api/apps/account/management/commands/update.py:16 — outbound call without a timeout
spug_api/libs/helper.py:49 — outbound call without a timeout
spug_api/libs/helper.py:60 — outbound call without a timeout
05.21

4 shell commands built from strings

adequate

4 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

Evidence
spug_api/apps/app/models.py:74 — command run through a shell
spug_api/apps/deploy/helper.py:451 — command run through a shell
spug_api/apps/schedule/executors.py:18 — command run through a shell
05.60

Relicensed: MIT → AGPL-3.0 (2020-05-30)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

Evidence
LICENSE — MIT from 2020-01-22
LICENSE — AGPL-3.0 from 2020-05-30
05.65

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

adequate

The newest was published on 2026-10-12. 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 spug with nothing tying it to this repository (CVE-2026-108540).

Evidence
2026-10-12: GHSA-x6jp-w26q-5hr4 (high), fixed in 4.1.1: Spug exposes the global open-service api_key to users with a read permission, and the open API does not authorize target hosts
2026-10-12: GHSA-38w6-cxg9-rmgc (high), fixed in 4.1.1: Spug file distribution does not authorize the source host and interpolates paths into shell commands
2026-10-12: GHSA-cpvp-p8jv-vhxg (moderate), fixed in 4.1.1: Spug host API returns the per-host SSH private key in cleartext to users granted the host
2026-10-12: GHSA-xp2v-72m9-wqfv (high), fixed in 4.1.1: Spug credential check endpoint passes a user-supplied git URL to a shell, allowing OS command injection on the server
2026-10-12: GHSA-qxj2-xqmr-5wp8 (high), fixed in 4.1.1: Spug monitor process check builds the remote command with repr(), allowing OS command injection on the target host

Observability & Operations

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 428 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 428 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 428 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 openspug/spug: 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.