Proxy authenticated file explorer downloads and previews

This commit is contained in:
2026-11-07 01:51:12 +00:00
parent 54ffb5d022
commit b33970182c
3 changed files with 62 additions and 3 deletions
@@ -44,3 +44,12 @@ No physical-device verification or installation was performed. PDF external
handlers and media playback are not claimed as verified on physical devices.
Deployment receipts belong in the installation's private rollback directory;
source integration, checks, installed runtime and APK publication are separate.
Live delivery verification caught an omitted authenticated web-proxy route:
`/files?path=...` returned the SPA instead of file bytes. `web/serve.mjs` now
forwards the exact `/files` path after authentication, retaining query strings,
Range requests, HEAD and response disposition. A proxy integration regression
in `web/test/serve.test.mjs` verifies sign-in enforcement and forwarding;
`node --test web/test/*.test.mjs` passes all five proxy tests. The existing
`npm test --prefix web` directory invocation fails on this Node 22 setup;
explicit test-file selection is the verified command.