[GH-ISSUE #1567] [Issue]: Provider error messages need Marinara-owned secret redaction #809

Closed
opened 2026-10-21 05:21:24 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1567

Originally assigned to: @Xelvanis on GitHub.

Summary

Provider and connection errors are surfaced without a Marinara-owned redaction pass, so returned error text can expose partial API keys or sensitive provider/payment details.

Expected behavior

All provider, connection-test, and message-send errors shown in the UI should be sanitized by Marinara before display. API keys, credential fragments, auth tokens, payment retrieval URLs, and other sensitive provider payload details should be redacted even if the upstream provider includes them in its error body.

Actual behavior

Jake's Connections / Runtime Behavior smoke test found that Marinara appears to pass provider error messages through mostly as returned. Some providers redact keys themselves, but Marinara is relying on provider behavior instead of enforcing its own redaction boundary.

Examples from the smoke test included:

  • OpenAI invalid-key errors include a provider-redacted key fragment.
  • xAI invalid-key errors include a provider-redacted key fragment.
  • NanoGPT null-key send returned a payment-related error that included payment/retrieval details.
  • Short synthetic keys may be fully exposed if a provider's partial-redaction strategy includes the whole value.

Steps to reproduce

  1. Open the Connections settings.
  2. Create a disposable provider connection with a synthetic invalid API key.
  3. Run the connection test and/or send a chat message with that connection.
  4. Repeat with a missing key where the UI permits it.
  5. Observe the user-facing error text.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor / 390990e
  • Run mode: Podman using the provided manifest + Vite/dist served through Caddy
  • OS + version: Alma Linux
  • Node + pnpm versions: Not specified
  • Rust version, if relevant: Not specified
  • Remote Runtime URL configured? Not specified
  • Provider, model, or integration, if relevant: OpenAI, Anthropic, Gemini, Vertex untested, Mistral, Cohere, OpenRouter, NanoGPT, xAI/Grok, custom OpenAI-compatible

Logs, screenshots, or video

Source smoke-test issue: #1481.

Do not paste real API keys or payment URLs into this issue. The important finding is that Marinara should redact error payloads before showing them, not that a specific provider exposed a specific test value.

Regression notes

Not specified.

Additional context

This is security-sensitive because the UI currently trusts provider error copy. Marinara should own a final redaction pass close to the shared provider/runtime error boundary so every caller benefits.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1567 Originally assigned to: @Xelvanis on GitHub. ## Summary Provider and connection errors are surfaced without a Marinara-owned redaction pass, so returned error text can expose partial API keys or sensitive provider/payment details. ## Expected behavior All provider, connection-test, and message-send errors shown in the UI should be sanitized by Marinara before display. API keys, credential fragments, auth tokens, payment retrieval URLs, and other sensitive provider payload details should be redacted even if the upstream provider includes them in its error body. ## Actual behavior Jake's Connections / Runtime Behavior smoke test found that Marinara appears to pass provider error messages through mostly as returned. Some providers redact keys themselves, but Marinara is relying on provider behavior instead of enforcing its own redaction boundary. Examples from the smoke test included: - OpenAI invalid-key errors include a provider-redacted key fragment. - xAI invalid-key errors include a provider-redacted key fragment. - NanoGPT null-key send returned a payment-related error that included payment/retrieval details. - Short synthetic keys may be fully exposed if a provider's partial-redaction strategy includes the whole value. ## Steps to reproduce 1. Open the Connections settings. 2. Create a disposable provider connection with a synthetic invalid API key. 3. Run the connection test and/or send a chat message with that connection. 4. Repeat with a missing key where the UI permits it. 5. Observe the user-facing error text. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` / `390990e` - Run mode: Podman using the provided manifest + Vite/dist served through Caddy - OS + version: Alma Linux - Node + pnpm versions: Not specified - Rust version, if relevant: Not specified - Remote Runtime URL configured? Not specified - Provider, model, or integration, if relevant: OpenAI, Anthropic, Gemini, Vertex untested, Mistral, Cohere, OpenRouter, NanoGPT, xAI/Grok, custom OpenAI-compatible ## Logs, screenshots, or video Source smoke-test issue: #1481. Do not paste real API keys or payment URLs into this issue. The important finding is that Marinara should redact error payloads before showing them, not that a specific provider exposed a specific test value. ## Regression notes Not specified. ## Additional context This is security-sensitive because the UI currently trusts provider error copy. Marinara should own a final redaction pass close to the shared provider/runtime error boundary so every caller benefits. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:21:24 +07:00
Sign in to join this conversation.
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
Pasta-Devs/Marinara-Engine#809
No description provided.