Read 2026-11-03
galaxyproject/galaxy: technical due diligence, read from its repository
What Borehole read in galaxyproject/galaxy's code and history at 577c683: 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 | adequate |
| 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
adequatelib/galaxy/model/__init__.py is 13,686 lines, 148× this codebase's median file
adequateThe median source file here is 92 lines. 81 files exceed 1,000 lines, the largest being 13,686. 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.
lib/galaxy/model/__init__.py:1 — 13,686 lines (148× median) |
lib/tool_shed/webapp/frontend/src/schema/schema.ts:1 — 7,290 lines (79× median) |
client/src/libs/jquery/jstree.js:1 — 6,744 lines (73× median) |
lib/galaxy/datatypes/binary.py:1 — 5,997 lines (65× median) |
lib/galaxy/schema/schema.py:1 — 4,785 lines (52× median) |
1 base image floats: no version, or `latest`
adequate1 of 7 `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.
client/Dockerfile:1 — base image without a version |
A move from JavaScript to TypeScript began 48 months ago and is 80% done
adequate586 product files are in the new language and 148 are still in the old one, 48 months after the first new file appeared. The new language's share of the lines rose from 0% to 95%, and moved 2 percentage points in the last year. Two languages for one job doubles what an engineer has to know, and the unmoved half is usually what nobody wants to touch. Ask whether finishing it is planned, and what it costs.
| 148 old, 586 new |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate104 direct dependencies in a single manifest
adequatepyproject.toml declares 104 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
pyproject.toml — 104 declared |
packages/app/pyproject.toml — 50 declared |
packages/web_apps/pyproject.toml — 35 declared |
packages/data/pyproject.toml — 34 declared |
Security & Reliability Posture
adequate4 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.
client/Dockerfile — runs as root |
lib/galaxy/tool_util/deps/dockerfiles.py — runs as root |
lib/galaxy/web/proxy/js/Dockerfile — runs as root |
packages/job_execution/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate15 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/_build_client.yaml:25 — action pinned by tag |
.github/workflows/api.yaml:76 — action pinned by tag |
21 outbound calls can wait forever
adequate21 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.
cron/build_chrom_db.py:41 — outbound call without a timeout |
cron/parse_builds.py:16 — outbound call without a timeout |
cron/parse_builds_3_sites.py:24 — outbound call without a timeout |
9 shell commands built from strings
adequate9 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.
lib/galaxy/datatypes/sequence.py:843 — command run through a shell |
lib/galaxy/datatypes/tabular.py:863 — command run through a shell |
lib/galaxy/job_execution/container_monitor.py:28 — command run through a shell |
2 deserialisers that can run code
adequate2 places read data with a deserialiser that executes what it reads (`yaml.load` without a safe loader). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
lib/galaxy/util/yaml_util.py:27 — code-executing deserialiser |
lib/galaxy/util/yaml_util.py:69 — code-executing deserialiser |
1 of 1 Kubernetes workloads declare no resource limits
adequate1 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.
.ci/minikube-test-setup/deployment.yaml — workload with no limits |
48 locked dependencies have published vulnerabilities, 42 high or critical in what ships
adequate48 of 1,901 locked dependencies match 144 published advisories in OSV, 74 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.
uv.lock — pillow 12.3.0: GHSA-332p-7hrc-92wf (critical), fixed in 13.0.0 |
client/pnpm-lock.yaml — dompurify 3.4.16: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17 |
lib/tool_shed/webapp/frontend/pnpm-lock.yaml — tinypool 1.1.1: GHSA-5gmw-xhrv-c9v3 (critical), fixed in 2.1.1; a development dependency |
12 places insert HTML from a variable without sanitising it
adequate12 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.
client/src/components/Libraries/LibraryFolder/TopToolbar/import-to-history/import-dataset.js:124 — HTML from a variable |
client/src/components/Workflow/Editor/Comments/MarkdownComment.vue:56 — HTML from a variable |
client/src/composables/formattedToolHelp.js:31 — HTML from a variable |
16 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
lib/galaxy/tool_util/deps/commands.py — 1 tracked files, no licence file |
lib/galaxy/tool_util/deps/conda_compat.py — 1 tracked files, no licence file |
lib/galaxy/tool_util/deps/conda_util.py — 1 tracked files, no licence file |
lib/galaxy/tool_util/deps/container_classes.py — 1 tracked files, no licence file |
lib/galaxy/tool_util/deps/container_resolvers — 2 tracked files, no licence file |
lib/galaxy/tool_util/deps/container_volumes.py — 1 tracked files, no licence file |
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,254 files for 10 structured logging libraries; 0 matched |
1 of 1 deployments run a single replica
adequate1 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.
.ci/minikube-test-setup/deployment.yaml — replicas: 1 |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on galaxyproject/galaxy: 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.