Skip to content

Which Electron Fuses to set #365

Done

Description

@jtklein-agents

Question

Given the Fuses research and the electron-builder 26 upgrade path, which fuses does raxmlGUI set, and how are they verified in CI or the release-candidate check?

From Electron Fuses for raxmlGUI: the Forge-template set looks safe (runAsNode, enableNodeOptionsEnvironmentVariable, enableNodeCliInspectArguments off; enableCookieEncryption, enableEmbeddedAsarIntegrityValidation, onlyLoadAppFromAsar on). Open: is grantFileProtocolExtraPrivileges: false attempted (needs a packaged smoke test that the Vite renderer still loads over file://, or a custom protocol first)? And does cookie encryption, which can't be undone once shipped, go in?

Activity

  1. added
    wayfinder:grilling
    on Nov 24, 2026
  2. jtklein-agents commented on Nov 24, 2026

    @jtklein-agents
    OwnerAuthor

    Resolution

    Fuses set via electronFuses in the package.json build block (electron-builder 26, so after the 24→26 bump):

    "electronFuses": {
      "runAsNode": false,
      "enableCookieEncryption": true,
      "enableNodeOptionsEnvironmentVariable": false,
      "enableNodeCliInspectArguments": false,
      "enableEmbeddedAsarIntegrityValidation": true,
      "onlyLoadAppFromAsar": true
    }
    • Cookie encryption goes in: one-way, but the app stores no cookies, so nothing is lost; matches Electron's checklist and the Forge template.
    • grantFileProtocolExtraPrivileges stays at its default (enabled). Turning it off likely needs the page served from a custom protocol first; ruled out of scope for this map.
    • loadBrowserProcessSpecificV8Snapshot unset; wasmTrapHandlers default.

    Verification

    • A unit test asserts the electronFuses block in package.json (same pattern as src/main/pageWindowPreferences.test.ts).
    • The manual release-candidate check runs npx @electron/fuses read --app … on the app after auto-updating from 2.0.19.
    • No per-OS CI fuse-read step.

    e2e keeps launching out/main/index.js on the unfused dev Electron; Playwright's forced --inspect=0 can't drive a fused build. Moving e2e to the packaged app is out of scope.

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

Metadata

Metadata

Labels

wayfinder:grilling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions