mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4294] [MERGED] Restrict private image results to the provider origin #6322
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#6322
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/4294
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:security/restrict-image-result-urls📝 Commits (1)
ba89762security: restrict private image result URLs📊 Changes
7 files changed (+216 additions, -21 deletions)
View changed files
📝
CHANGELOG.md(+2 -4)📝
docs/CONFIGURATION.md(+1 -1)📝
docs/media/image-providers.md(+2 -0)📝
package.json(+2 -1)📝
packages/server/src/services/image/image-generation.ts(+87 -15)📝
packages/server/src/utils/security.ts(+15 -0)➕
scripts/regressions/image-result-url-security.regression.ts(+107 -0)📄 Description
Linked issue
Closes #4288
Why this change
An image provider controls the result URL that Marinara Engine fetches. Private-provider support should authorize only that configured service, not arbitrary private hosts or ports selected by a response or redirect.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated proof completed before publication:
pnpm regression:image-result-securitypnpm checkpnpm version:checkgit diff --check staging...security/restrict-image-result-urlsManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English documentation and
CHANGELOG.mdare updated. Translation follow-up: #4289.UI evidence (if applicable)
Not applicable; this changes server-side outbound fetching and provider configuration behavior.
Summary by CodeRabbit
Security
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.