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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
LICENSE: Relicensed: MIT → AGPL-3.0 (2020-05-30)
Architecture & Codebase — including AI provenance
strongCommit messages are templated rather than written
adequate39% 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.
| 113× 'fix issue' |
| 56× 'fix issues' |
| 43× 'A web update' |
Engineering Process & SDLC Maturity
adequateTests are absent or token
adequate0 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.
| 0 test files / 391 source files |
28% of commit subjects say nothing about the change
adequate355 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.
| 355/1,251 low-content subjects (28.4%) |
| 'U web fix' |
| 'A web fix' |
| 'A web fix' |
| 'A add docs' |
Almost 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 555 tracked files |
Product & Engineering Maturity
strongNode.js 20 is past end of life
adequateThe 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.
Dockerfile — Node.js 20, end of life 2026-04-30 |
Security & Reliability Posture
adequate50 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.
spug_api/requirements.txt:2 — >=4.2.0, |
spug_api/requirements.txt:4 — >=4.0.0, |
spug_api/requirements.txt:5 — >=4.0.0, |
spug_api/requirements.txt:6 — >=21.0.0 |
spug_api/requirements.txt:7 — >=4.1.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.
Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate7 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.
.github/workflows/docker-image.yml:68 — action pinned by tag |
.github/workflows/docker-image.yml:77 — action pinned by tag |
3 outbound calls can wait forever
adequate3 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.
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 |
4 shell commands built from strings
adequate4 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.
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 |
Relicensed: MIT → AGPL-3.0 (2020-05-30)
adequateThe 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.
7 advisories against this project in the last 24 months, 6 high or critical
adequateThe 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).
| 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
adequateNo telemetry or error reporting is wired in anywhere
adequateNone 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.
| 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 |
No structured logging library is in use
adequateNothing 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.
| searched 428 files for 10 structured logging libraries; 0 matched |
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 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.