From 30af437ae2e36b33bc6bbc54bbdeef956f9131e9 Mon Sep 17 00:00:00 2001 From: Bastian Machek <16717398+bmachek@users.noreply.github.com> Date: Fri, 30 Oct 2026 20:38:46 +0100 Subject: [PATCH 1/2] deps: bump rustls to 0.23.46 for four security advisories Fixes Dependabot alerts #79-#82, all in rustls < 0.23.46, which the backend pulls in only through reqwest/hyper-rustls/tokio-rustls: - GHSA-c8m5-c952-6cm4 (medium): Debug formatting of a session exposes TLS master secrets and resumption PSKs - GHSA-h2v8-394m-p7vv (low): Brotli certificate decompression can allocate up to 1 GiB before authentication - GHSA-w44r-93j7-qv28 (low): an unauthenticated ServerHello poisons the key-exchange record, so later ClientHellos send only X25519 - GHSA-vp88-798v-h67f (low): ECH rejection can expose buffered data to the outer server Lockfile change is rustls alone; cargo update also re-resolved tempfile's getrandom (0.4.3 -> 0.3.4), which was dropped as unrelated. Builds with --locked. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HaMMvuCsggAAAZqFC3FdDX --- server-rs/Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-rs/Cargo.lock b/server-rs/Cargo.lock index c469b5b0..10525c59 100644 --- a/server-rs/Cargo.lock +++ b/server-rs/Cargo.lock @@ -6118,9 +6118,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.45" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "once_cell", "ring", From 5648347cb2d0e399a6e4d38676ab65d24db840c6 Mon Sep 17 00:00:00 2001 From: Bastian Machek <16717398+bmachek@users.noreply.github.com> Date: Fri, 30 Oct 2026 21:04:42 +0100 Subject: [PATCH 2/2] docs: regenerate Dev-Server-README.md from server-rs/README.md #460 added the paragraph on the upsert write ceiling (UPSERT_CHUNK_BYTES) to server-rs/README.md without rerunning scripts/build-wiki-pages.sh, so check-docs.py has failed on main since. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HaMMvuCsggAAAZqFC3FdDX --- docs/wiki/Dev-Server-README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/wiki/Dev-Server-README.md b/docs/wiki/Dev-Server-README.md index 1a4dee9b..bb36fe73 100644 --- a/docs/wiki/Dev-Server-README.md +++ b/docs/wiki/Dev-Server-README.md @@ -666,6 +666,12 @@ in MiB: | `GENIUSAI_LANCE_INDEX_CACHE_MB` | 128 | | `GENIUSAI_LANCE_METADATA_CACHE_MB` | 128 | +Writes have a ceiling of their own. Once the `id` index covers a table, +LanceDB's `merge_insert` loads its whole input into a fixed 150 MB pool it +cannot spill out of, so `Store::upsert` splits anything over 32 MB +(`UPSERT_CHUNK_BYTES`) into several commits. Face clustering, which writes +every face back at once, is the caller that reaches it: about 60,000 faces. + Indexing reads and normalises several photos at once, which is the other place a batch can grow its peak: that many originals — 25-50 MB apiece for raw — are resident before any of them has been shrunk to a normalised JPEG.