[GH-ISSUE #4009] Add safe host-rendered UI contribution slots for extensions #2163

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

Originally created by @SpicyMarinara on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4009

Originally assigned to: @SpicyMarinara on GitHub.

Why

Sandboxed extensions need a safe way to expose useful functionality through Marinara Engine without receiving DOM, React, HTML, CSS, navigation, or arbitrary host access.

Owner: @SpicyMarinara

Scope

  • Add a declarative, allowlisted contribution API for sandboxed Browser Personal Extensions.
  • Render extension action buttons and menu items inside a trusted Marinara Extensions menu.
  • Render extension panels inside the trusted Marinara right-panel shell.
  • Route activation and control events back to the originating sandbox only.
  • Remove contributions immediately when an extension is disabled, its approved hash changes, or policy gates close.
  • Keep extension-provided text bounded and treat all descriptors as untrusted data.
  • Document the API for Professor Mari and extension authors.

Security acceptance criteria

  • Extensions cannot provide markup, styles, component code, URLs, or host callbacks.
  • Contribution kinds, slots, icons, text lengths, identifiers, and panel controls use strict allowlists and quotas.
  • The host revalidates every contribution message after authenticating its iframe source.
  • Only enabled code with an exact approved hash can contribute UI.
  • External extensions remain invisible and unexecutable until both existing safety gates are open.

Verification

  • Run the extension security regression.
  • Run localization checks.
  • Run pnpm check.
  • Manually verify action, menu, and panel contributions on desktop and mobile.
  • Manually verify disabling or changing an extension removes all of its contributions.
Originally created by @SpicyMarinara on GitHub (Jul 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4009 Originally assigned to: @SpicyMarinara on GitHub. ## Why Sandboxed extensions need a safe way to expose useful functionality through Marinara Engine without receiving DOM, React, HTML, CSS, navigation, or arbitrary host access. Owner: @SpicyMarinara ## Scope - Add a declarative, allowlisted contribution API for sandboxed Browser Personal Extensions. - Render extension action buttons and menu items inside a trusted Marinara Extensions menu. - Render extension panels inside the trusted Marinara right-panel shell. - Route activation and control events back to the originating sandbox only. - Remove contributions immediately when an extension is disabled, its approved hash changes, or policy gates close. - Keep extension-provided text bounded and treat all descriptors as untrusted data. - Document the API for Professor Mari and extension authors. ## Security acceptance criteria - Extensions cannot provide markup, styles, component code, URLs, or host callbacks. - Contribution kinds, slots, icons, text lengths, identifiers, and panel controls use strict allowlists and quotas. - The host revalidates every contribution message after authenticating its iframe source. - Only enabled code with an exact approved hash can contribute UI. - External extensions remain invisible and unexecutable until both existing safety gates are open. ## Verification - [ ] Run the extension security regression. - [ ] Run localization checks. - [ ] Run `pnpm check`. - [ ] Manually verify action, menu, and panel contributions on desktop and mobile. - [ ] Manually verify disabling or changing an extension removes all of its contributions.
bsakaguchi 2026-10-21 05:45:54 +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#2163
No description provided.