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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongngui/ui/src/graphql/__generated__/hooks/restapi.ts is 4,779 lines, 199× this codebase's median file
adequateThe 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.
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) |
786 errors caught and discarded in product code
adequate786 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.
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
strongNo finding.
Product & Engineering Maturity
adequate2 pinned runtimes are past end of life
adequateThe 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.
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 |
14% of bug fixes add or change a test
adequateOf 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.
| 25 of 173 |
Security & Reliability Posture
adequate1 credential-shaped string in the tree sit in tests, examples, documentation or local development settings
adequateStrings 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.
| AWS access key, where fakes are usual |
63 Dockerfiles run 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.
auth/Dockerfile — runs as root |
bi_exporter/Dockerfile — runs as root |
bumischeduler/Dockerfile — runs as root |
bumiworker/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate1 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.
.github/workflows/test_auth.yaml:23 — action pinned by tag |
rest_api/prepare_clickhouse_local.sh:9 — download piped into a shell |
1 SQL statement built from strings
adequate1 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.
docker_images/cleaninfluxdb/clean-influx-db.py:26 — SQL built from a string |
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.
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 |
53 of 57 Kubernetes workloads declare no resource limits
adequate53 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.
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 |
92 locked dependencies have published vulnerabilities, 89 high or critical in what ships
adequate92 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.
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 |
6 workload settings give a container the host
adequate6 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.
optscale-deploy/ansible/roles/k8s-configure/files/nginx-ingress/values.yaml:108 — privileged or host namespace |
optscale-deploy/ansible/roles/k8s-init/templates/weave-daemonset-k8s-1.11.yaml:128 — privileged or host namespace |
optscale-deploy/ansible/roles/k8s-init/templates/weave-daemonset-k8s-1.11.yaml:165 — privileged or host namespace |
73 places insert HTML from a variable without sanitising it
adequate73 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.
auth/auth_server/swagger/swagger-ui-bundle.js:24 — HTML from a variable |
auth/auth_server/swagger/swagger-ui-bundle.js:24 — HTML from a variable |
auth/auth_server/swagger/swagger-ui-bundle.js:24 — HTML from a variable |
Observability & Operations
adequateNo 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 6,045 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 |
Readiness and liveness probes are identical in 1 of 9 workloads
adequateBoth 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.
optscale-deploy/ansible/roles/k8s-configure/files/nginx-ingress/values.yaml — same probe endpoint twice |
Fit with the Acquirer
not assessableNot 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.