mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8338] [MERGED] fix(video): secure OpenRouter polling and content URLs #8304
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8338
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/openrouter-relative-video-polling📝 Commits (3)
14a6d83chore: start OpenRouter polling URL repair3e8f054fix(video): resolve OpenRouter polling URLs against trusted origin697e2b0fix(video): keep OpenRouter credentials off unsigned CDN downloads📊 Changes
2 files changed (+144 additions, -5 deletions)
View changed files
📝
packages/server/src/services/video/video-generation.ts(+24 -5)➕
scripts/regressions/openrouter-video-polling.regression.ts(+120 -0)📄 Description
Linked issue
Closes #8337. Related investigation: Pasta-Devs/Marinara-Agents#1706.
Why this change
OpenRouter documents relative polling URLs and can return video files on a public CDN. Engine rejected relative polls after submitting a job and unconditionally forwarded the saved API key to initial content URLs, including another origin.
What changed
Validation
Final
pnpm checkpassed. The 21-case async URL/header regression and existing OpenRouter model regression passed. Local committed CodeRabbit reviews completed with zero findings for the original repair and content-security follow-up.The direct-CDN regression first reproduced Bearer forwarding. A fresh disposable package-manager proof then installed Gacha Forge, restarted Engine and used its verified package/runtime, gallery adapter, queue and OpenRouter serializer: relative polling completed, CDN downloads had no authorization, cache reuse submitted zero jobs and explicit retry submitted one. All provider HTTP responses and credentials were synthetic.
This post-submission defect does not establish the separate report that no remote generation activity appears. No real paid-provider or physical-device validation is claimed.
CONTRIBUTING.md.Docs and release impact
No public capability, dependency, version, permission or storage-format changes. This repairs the existing provider URL and credential boundary; no user documentation changes are required.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.