Skip to content

fix: enforce preview resource and action boundaries - #156

Merged
squidfunk merged 5 commits into
masterfrom
fix/studio-security
Nov 17, 2026
Merged

squidfunk merged 5 commits into
masterfrom
fix/studio-security

Conversation

@squidfunk

Copy link
Copy Markdown
Member

No description provided.

Resolve physical targets through a read-only resource provider instead of
granting workspace and external parent directories to the webview loader.
Limit external declarations to exact regular files, revoke obsolete grants
and identify external preview resources as read-only.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Replay the retained update after the webview installs its listener so a fast
native response cannot leave the initial preview blank. Add revision keys
to workspace images so edits refresh without rotating the document mount.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Decode bounded webview messages and bind actions to the current session,
document and render generation. Reject invalid source offsets and recheck
context after asynchronous work.

Resolve local navigation before opening files, require explicit confirmation
for outside targets and keep executable schemes from navigating the webview.
Generate CSP nonces with cryptographic randomness.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Preserve the in-progress native preview policy and resource-delivery integration for coordinated reconciliation with Studio App. The paired preview security work remains incomplete and unmerged.

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
@squidfunk
squidfunk merged commit 7894c26 into master Nov 17, 2026
9 checks passed
@squidfunk
squidfunk deleted the fix/studio-security branch November 17, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant