Render job routing, worker lockdown. Release 0.5.0. #3

Closed
oliver.maklott wants to merge 0 commits from oliver.maklott/review-fixes-2026-11 into main AGit

Fixes from the November review.

  • The app records each job's destination when it submits it and reads it back from that record; the worker's reply only selects the record. Unknown job ids are dropped. Results are read from the one key the job owns, with a size cap (RENDER_RESULT_MAX_BYTES, 64 MiB).
  • The browser process no longer inherits REDIS_URL or the sidecar key.
  • Render pages: no Worker, SharedWorker, service worker or window.open; child targets are attached paused; --block-new-web-contents; worker-src 'none' on the render origin. Checked against Chromium 125 with a full render (SVG and PNG).
  • Blocking stream reads use their own Redis connection.
  • The health port is published on loopback (WEB_RENDER_HOST_BIND).

Update the worker image together with the pack; render jobs in flight across the upgrade are dropped and re-queued by the next view.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2

Fixes from the November review. - The app records each job's destination when it submits it and reads it back from that record; the worker's reply only selects the record. Unknown job ids are dropped. Results are read from the one key the job owns, with a size cap (`RENDER_RESULT_MAX_BYTES`, 64 MiB). - The browser process no longer inherits `REDIS_URL` or the sidecar key. - Render pages: no `Worker`, `SharedWorker`, service worker or `window.open`; child targets are attached paused; `--block-new-web-contents`; `worker-src 'none'` on the render origin. Checked against Chromium 125 with a full render (SVG and PNG). - Blocking stream reads use their own Redis connection. - The health port is published on loopback (`WEB_RENDER_HOST_BIND`). Update the worker image together with the pack; render jobs in flight across the upgrade are dropped and re-queued by the next view. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
Render jobs are routed by the app's own record, not by the worker's reply; result size cap; the browser process gets no Redis URL or sidecar key; workers, popups and child targets are blocked in render pages; the health port is published on loopback. Release 0.5.0.
Some checks failed
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Failing after 44s
Publish / pack-and-publish (pull_request) Has been skipped
Publish / build-sidecar (pull_request) Has been skipped
ab9d826a26
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
Type the render Redis clients by their configured shape (node-redis 6 carries the RESP version in the client type); a stream read may answer null.
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 42s
Publish / pack-and-publish (pull_request) Has been skipped
Publish / build-sidecar (pull_request) Has been skipped
77f88bf7fa
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
oliver.maklott closed this pull request 2026-11-22 16:03:34 +01:00
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 42s
Publish / pack-and-publish (pull_request) Has been skipped
Publish / build-sidecar (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc-plugins/web-render!3
No description provided.