Skip to content

Allow WebAssembly compilation in all Lodge app frames - #116

Merged
frostyard-machines merged 2 commits into
mainfrom
feat/wasm-app-frames
Nov 24, 2026
Merged

frostyard-machines merged 2 commits into
mainfrom
feat/wasm-app-frames

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

All Lodge app frames can compile WebAssembly. The gateway adds the CSP token for Wasm compilation to the frame script policy. A manifest flag is unnecessary. The app still loads JavaScript only from its installed assets. This enables the FrostNotes NSGo preview.

Risk tier

Risk tier: 3. The change to internal/gateway/headers.go (L1) gives trusted frontend code permission to compile Wasm bytes. The exact header tests cover Notes, Mail, a plain app, and the separate policies for the shell and content. The change grants no JavaScript string evaluation, new script origins, worker permissions or network access.

Verification

  • Passed make check and built the Lodge development gateway.
  • Ran the packaged FrostNotes preview inside the Lodge shell in Firefox. The browser saved to notesd, received an edit from its Unix client, retained a draft through a node disconnect, and recovered the draft by the version shown in its conflict notice. This used the development build’s fixed WhoIs identity and normal allow-lists.

@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 24, 2026
@frostyard-machines
frostyard-machines merged commit 12408e7 into main Nov 24, 2026
9 checks passed
@frostyard-machines
frostyard-machines deleted the feat/wasm-app-frames branch November 24, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants