Borehole · Project · free tier
galaxyproject/galaxy
Free reading: not for reliance
577c683 · 50,000 commits · 9,244 files
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.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

lib/galaxy/model/__init__.py is 13,686 lines, 148× this codebase's median file

adequate

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

Evidence
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)
01.25

1 base image floats: no version, or `latest`

adequate

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

Evidence
client/Dockerfile:1 — base image without a version
01.33

A move from JavaScript to TypeScript began 48 months ago and is 80% done

adequate

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

Evidence
148 old, 586 new

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

104 direct dependencies in a single manifest

adequate

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

Evidence
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

adequate
05.6

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

05.27

The build runs third-party code it does not pin

adequate

15 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/_build_client.yaml:25 — action pinned by tag
.github/workflows/api.yaml:76 — action pinned by tag
05.13

21 outbound calls can wait forever

adequate

21 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
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
05.21

9 shell commands built from strings

adequate

9 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
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
05.22

2 deserialisers that can run code

adequate

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

Evidence
lib/galaxy/util/yaml_util.py:27 — code-executing deserialiser
lib/galaxy/util/yaml_util.py:69 — code-executing deserialiser
05.34

1 of 1 Kubernetes workloads declare no resource limits

adequate

1 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
.ci/minikube-test-setup/deployment.yaml — workload with no limits
05.26

48 locked dependencies have published vulnerabilities, 42 high or critical in what ships

adequate

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

Evidence
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
05.48

12 places insert HTML from a variable without sanitising it

adequate

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

05.9

16 vendored components with no licence

adequate

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

Evidence
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

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,254 files for 10 structured logging libraries; 0 matched
06.33

1 of 1 deployments run a single replica

adequate

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

Evidence
.ci/minikube-test-setup/deployment.yaml — replicas: 1

Fit with the Acquirer

not assessable

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