Skip to content

Harden app-managed playwriter relay - #5

Open
KillianLucas wants to merge 1 commit into
bump-playwright-1.59.10from
fix/playwriter-app-managed-relay-hardening
Open

KillianLucas wants to merge 1 commit into
bump-playwright-1.59.10from
fix/playwriter-app-managed-relay-hardening

Conversation

@KillianLucas

Copy link
Copy Markdown
Contributor

Summary

  • add an app-managed relay mode that can disable /cli/* execution routes
  • make the relay Buffer inspect patch opt-in instead of mutating Buffer.prototype at module load
  • cover the hardened mode with a focused security test and release bump

Why

Interpreter uses playwriter as a local browser-tab CDP relay, not as a general CLI code-execution server. In that app-managed role we should not expose the standalone /cli/* executor surface, and we should avoid global Electron-host mutations at import time.

This PR is intentionally stacked on top of #4 because the app is currently pinned to that vendored Playwright branch.

Testing

  • pnpm --dir apps/interpreter-extension --filter playwriter exec vitest run test/security.test.ts

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