Commit Graph
6 Commits
Author SHA1 Message Date
Yorgos SaslisandRūdolfs Ošiņš 9dd13264e0 httpd: Bound the diff in commit and diff responses
Commits with large or many files, like a vendored driver with 3,790
files, OOM-killed httpd at its 2 GiB limit. radicle-surf diffs every
file twice and its rename detection loads whole blobs, so its output
can't be bounded, and httpd now builds the diff itself.

Files over 1 MiB or 50,000 lines, or past the per-response budgets,
aren't diffed and come back as binary with `"tooLarge": true`. Files
after the first 3,000 are left out. The diff is then `"truncated"` and
takes its stats from `git diff --numstat`. This also fixes files shrunk
from over the limit showing up as empty.

`git2` becomes a direct dependency, at the version `radicle` already
uses, for the diff types `radicle::git::raw` doesn't re-export.

Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2026-12-01 16:30:56 +01:00
Daniel Norman 7ce7541051 explorer: Fix cargo audit advisories
- Bump libz-sys, tokio, zstd, zstd-safe and zstd-sys
- Allow zstd 0.13.4 and zstd-safe 7.4.0 inside the cooldown
- Fix RUSTSEC-2026-0386, 0391, 0395 to 0406 and 0410
- Fix RUSTSEC-2026-0418
- Drop expired cooldown exceptions
2026-11-06 11:36:09 +05:30
Daniel Norman 1d760abe96 Split releases into trusted and untrusted scopes
- Upgrade radicle-artifact to 0.23
- Use radicle-artifact Filters, Trust and Scope for releases
- Count only releases a user can browse: delegate + other
- Count releases only for a single repo, not in repo lists
- Add the scope=trusted|untrusted query
- Keep allAuthors for older clients until a major release
- Replace the All filter with Delegates and Others in the UI
- Open lists and releases on Delegates, also when empty
- Show the Others filter whenever it has content
- Name the scope in the empty artifacts message
- Filter by creator on older nodes, which ignore scope
- Page releases on the raw response length
- Warn on a release by a non-delegate
- Warn on a delegate's release while it shows others' artifacts
- Count only delegate attestations in a badge
- Warn about browser links added by non-delegates
- Say browser downloads are not checked against the CID
- Move the scope and warning logic to `src/lib/releases.ts`
- Test artifact scopes, scope routes, opening on Delegates and the
  warnings
2026-10-29 18:21:09 +01:00
Daniel Norman 86ba3917ea httpd: Release 0.30.0 2026-10-23 11:07:48 +02:00
Rūdolfs Ošiņš 543a7a03f9 explorer: Fix cargo audit advisories
rustls-webpki 0.103.16 and webpki-roots 1.0.10 are the first releases
with the fixes for RUSTSEC-2026-0382 and RUSTSEC-2026-0381, but are
still in the cooldown. We reviewed their diffs against upstream and
allow them until they're old enough.
2026-10-22 16:27:24 +02:00
Rūdolfs Ošiņš e37521c739 Move explorer into explorer/
Makes explorer and desktop sibling projects, as proposed in ADR 1.
This commit only moves files; paths in CI, scripts and docs are fixed
in the following commits.
2026-10-22 11:06:33 +02:00