Skip to content

native: make isolated secure preview origins the Linux default #6282

Closed

Description

@tlgimenes

Context

#5556 intentionally leaves Linux on the plain http://127.0.0.1:43121 preview fallback by default. DECOCMS_LINUX_SECURE_ORIGIN=1 enables per-handle HTTPS hosts, but the current desktop self-test is pinned to plain localhost.

The fallback is functional, but all sandbox previews share one browser origin and therefore origin-scoped cookies, local storage, caches, and service workers. That is not an acceptable GA boundary if sandbox content is treated as untrusted.

Done when

  • Define and document the sandbox-preview trust model.
  • Extend the Linux desktop self-test to boot the secure control/preview path without deadlocking the WebKitGTK main-thread callback.
  • Exercise certificate registration before preview URL publication, including concurrent requests and failure/timeout behavior.
  • Add coverage for HTTPS navigation and the websocket path used by previews.
  • Make isolated per-handle HTTPS origins the Linux default.
  • Remove the shared HTTP fallback or constrain it to an explicit development-only mode.
  • Verify cookie/storage/service-worker isolation between two sandbox handles on a real WebKitGTK session.

Release policy

Until this is complete, document Linux as beta and call out the shared-origin limitation explicitly.

Activity

  1. tlgimenes commented on Aug 19, 2026

    @tlgimenes
    ContributorAuthor

    The first Linux artifact and rolling updater entry are now live at native-v4.242.0; release validation is tracked in #6281. This issue remains the security boundary for moving isolated secure preview origins from opt-in to the Linux default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions