Borehole · Project · free tier
hystax/optscale
Free reading: not for reliance
5046517 · 2,162 commits · 6,361 files
Read 2026-11-03

hystax/optscale: technical due diligence, read from its repository

What Borehole read in hystax/optscale's code and history at 5046517: 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 Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

ngui/ui/src/graphql/__generated__/hooks/restapi.ts is 4,779 lines, 199× this codebase's median file

adequate

The median source file here is 24 lines. 16 files exceed 1,000 lines, the largest being 4,779. 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
ngui/ui/src/graphql/__generated__/hooks/restapi.ts:1 — 4,779 lines (199× median)
ngui/ui/src/api/restapi/actionCreators.ts:1 — 2,779 lines (115× median)
ngui/server/graphql/__generated__/types/restapi.ts:1 — 2,187 lines (91× median)
rest_api/rest_api_server/controllers/expense.py:1 — 2,035 lines (84× median)
rest_api/rest_api_server/handlers/v2/expenses.py:1 — 1,966 lines (81× median)
01.15

786 errors caught and discarded in product code

adequate

786 places catch an error and do nothing with it, across 56 files (1.7 per thousand lines). Each is a failure the system will not report. They surface later as problems nobody can explain, and they are cheap to fix now.

Evidence
auth/auth_server/controllers/user.py:126 — error caught and discarded
auth/auth_server/swagger/swagger-ui-bundle.js:1 — error caught and discarded
auth/auth_server/swagger/swagger-ui-bundle.js:1 — error caught and discarded

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.17

2 pinned runtimes are past end of life

adequate

The code is pinned to Go 1.24 (end of life 2026-02-10); Node.js 18 (end of life 2025-04-30). None of these receives security fixes any more; the first stopped on 2025-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
docker_images/etcd/Dockerfile — Go 1.24, end of life 2026-02-10
docker_images/optscale_app/Dockerfile — Node.js 18, end of life 2025-04-30
04.19

14% of bug fixes add or change a test

adequate

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

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. 2 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
AWS access key, where fakes are usual
05.6

63 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
auth/Dockerfile — runs as root
bi_exporter/Dockerfile — runs as root
bumischeduler/Dockerfile — runs as root
bumiworker/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

1 third-party CI action is referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. 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/test_auth.yaml:23 — action pinned by tag
rest_api/prepare_clickhouse_local.sh:9 — download piped into a shell
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.

Evidence
docker_images/cleaninfluxdb/clean-influx-db.py:26 — SQL built from a string
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
herald/modules/email_sender/sender.py:78 — command run through a shell
herald/run.py:9 — command run through a shell
herald/run.py:12 — command run through a shell
05.34

53 of 57 Kubernetes workloads declare no resource limits

adequate

53 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
optscale-deploy/optscale/templates/auth.yaml — workload with no limits
optscale-deploy/optscale/templates/bailiff.yaml — workload with no limits
optscale-deploy/optscale/templates/bi_exporter.yaml — workload with no limits
05.26

92 locked dependencies have published vulnerabilities, 89 high or critical in what ships

adequate

92 of 2,296 locked dependencies match 208 published advisories in OSV, 114 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.

Evidence
subspector/uv.lock — anyio 4.11.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
bi_exporter/uv.lock — certifi 2025.10.5: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.18
subspector/uv.lock — certifi 2025.11.12: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.18
05.45

6 workload settings give a container the host

adequate

6 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.

05.48

73 places insert HTML from a variable without sanitising it

adequate

73 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

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 6,045 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
06.14

Readiness and liveness probes are identical in 1 of 9 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on hystax/optscale: 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.