mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2433] [Issue]: 11-PROV-ERROR-url-secret-redaction-policy image/TTS provider URL safety gap #1190
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#1190
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?
Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2433
Originally assigned to: @SpicyMarinara on GitHub.
Summary
11-PROV-ERROR-url-secret-redaction-policy: refactor image and TTS provider transports do not consistently enforce the outbound URL safety policy that legacy applied throughsafeFetch.Expected behavior
Live provider requests should block private, LAN, metadata, reserved, and unsafe outbound URLs unless the relevant local-provider flag explicitly allows them. Provider errors and diagnostics should remain redacted.
Actual behavior
Refactor LLM/model paths have URL policy and redaction controls, but image and TTS provider paths build raw
reqwest::Clients and send configuredbaseUrlor returned image URLs without the same URL validation. This leaves image/TTS provider calls with weaker URL safety than legacy.Steps to reproduce
11-PROV-ERROR-url-secret-redaction-policyfrom #2410.safeFetchagainst refactor image/TTS Rust provider calls.reqwest::Client.Impact area
Environment
Logs, screenshots, or video
Proof used: static trace only; no live provider calls and no real secrets.
Legacy behavior:
main:packages/server/src/services/image/image-generation.ts:28importssafeFetch.main:packages/server/src/services/image/image-generation.ts:249routes image provider fetch throughsafeFetchwith local URL policy.main:packages/server/src/routes/tts.routes.ts:17importssafeFetch.main:packages/server/src/routes/tts.routes.ts:445,:498, and:632route TTS voice/speech provider fetches throughsafeFetchwith local URL policy.Refactor behavior:
src-tauri/crates/security/src/lib.rs:83and:99contain shared outbound URL checks.src-tauri/crates/llm/src/lib.rs:395validates LLM provider URLs before constructing the client, with negative-control tests at:4767,:4778, and:4896.src-tauri/src/commands/storage/llm.rs:1491validates model URLs, with credential/redaction tests at:2200and:2265.src-tauri/src/commands/storage/images/providers.rs:276accepts imagebaseUrl, but provider calls use raw clients at:429,:690, and:722.src-tauri/src/commands/storage/integrations/tts.rs:230,:355, and:605build raw clients for TTS voice/speech calls; redaction is covered for one provider-error path at:1021.Regression notes
Legacy used the shared
safeFetchURL policy for the same image and TTS provider surfaces. Refactor preserves stronger LLM/model safety, but the image/TTS transport owner paths do not consistently apply it.Additional context
Source tracker: #2410.
Acceptance criteria:
11-PROV-ERROR-url-secret-redaction-policycan be rescanned as no-gap for image, TTS, and LLM/model safety paths.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed in refactor with commit 8cd200c4.
Behavior changed:
Verification: