From 8b2e2f1b1052a89c9f63ded59833ecb816bdce1c Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Thu, 17 Sep 2026 01:53:36 +0800 Subject: [PATCH] Allow the File library byte routes in table-file-transport The File library serves its bytes through /api/library-file-uploads and /api/library-files, mirroring the table-file routes beside them (CMS ADR 0183). ConnectRPC carries neither a resumable chunk nor a range-streamed body, so the same file keeps three more exact-target allowances. Co-Authored-By: Claude Opus 5 (1M context) --- frontend.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend.go b/frontend.go index 0834d08..2421dc3 100644 --- a/frontend.go +++ b/frontend.go @@ -85,6 +85,9 @@ var allowedNonProtoFetches = []nonProtoFetchAllowance{ {file: "lib/table-file-transport.ts", target: "/api/table-file-uploads/${sessionId}", reason: "bounded resumable binary chunks with durable offsets; controls use generated RPC hooks"}, {file: "lib/table-file-transport.ts", target: "/api/table-files/${attachmentId}/content?version=${versionId}", reason: "authenticated exact-version binary download; access is rechecked at open"}, {file: "lib/table-file-transport.ts", target: "/api/table-files/${attachmentId}/preview?version=${versionId}", reason: "bounded safe binary/text preview; no raw document embedding"}, + {file: "lib/table-file-transport.ts", target: "/api/library-file-uploads/${sessionId}", reason: "bounded resumable binary chunks for the File library store; controls use generated RPC hooks"}, + {file: "lib/table-file-transport.ts", target: "/api/library-files/${attachmentId}/content?version=${versionId}", reason: "authenticated exact-version Library file download; access is rechecked at open"}, + {file: "lib/table-file-transport.ts", target: "/api/library-files/${attachmentId}/preview?version=${versionId}", reason: "bounded safe binary/text preview of a Library file; no raw document embedding"}, { file: "components/admin/backups/restore-new-instance-dialog.tsx", target: "/api/push/upload?account_id=${encodeURIComponent(accountId)}",