The git work behind one source request is bounded only by the request deadline:
- `resolve` runs `ls-tree --long` once per path segment, up to the segment limit, each read up to the output bound, plus the final listing (`webui/server/source.go`).
- The log's `--skip` goes up to 1,000,000.
- `Reachable` runs `merge-base` over the history with no commit-graph (`webui/server/bundle.go`).
A few crafted requests hold every git slot, and every other source request then answers 503.
A fix: one output budget per request across all resolve steps; no `--long` while resolving; a lower skip cap; a commit-graph written when a repository is accepted; a per-client limit.
Also, unverified: `ValidObjectID` accepts 40 or 64 hex digits whatever the repository's object format (`webui/export/export.go`), and git reads 40 hex digits in a SHA-256 repository as an abbreviation. Reachability still holds, so nothing leaks, but it contradicts "full commit ID" in the docs and gives one page several URLs. Require the commit's length to match the source tip's, with a SHA-256 fixture to confirm.
Fixed when a source request's git work has a bound of its own, well under the deadline, and a crafted request cannot hold a git slot for long.
Source: 2026-10-26, review of the web UI as landed on main at `ac8c5f17`.
Comments
contributor2026-10-26 19:36 UTC
Change valley:the-valley/kmvzpxsoqvsnzrplxpxkyrskyuqrnymo landed: v6 as f5c9a830d01e49c095e007aa964533f507db60ee.