Repository navigation
Conversation
…tics Move remote-browser automation onto the Playwright context the Manager already owns instead of a broker-side raw CDP client: bootstrap_profile imports allowlisted cookies, navigates to the start URL, and fills the Instagram login form (incl. TOTP) when present; an origin route guard blocks top-level navigation outside the allowlist; set_file_input restricts uploads to files resolving inside AUTOMATION_UPLOAD_DIR. Replace VNC tickets with short-lived, hashed, single-use-per-session viewer grants (new viewer_grants table) that scope an iframe viewer to one profile via /api/scoped/* endpoints, bypassing the normal AUTH_TOKEN middleware for just that scoped surface. Surface proxy-auth capability instead of failing silently: log a loud warning when a credentialed HTTP(S) proxy is about to fall back to Playwright's CDP auth interceptor (broken by the automation route guard above) instead of Chrome's native --proxy-server auth, and expose proxy_auth_inline_supported on GET /api/status so it's visible without reading logs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…tics
Move remote-browser automation onto the Playwright context the Manager already owns instead of a broker-side raw CDP client: bootstrap_profile imports allowlisted cookies, navigates to the start URL, and fills the Instagram login form (incl. TOTP) when present; an origin route guard blocks top-level navigation outside the allowlist; set_file_input restricts uploads to files resolving inside AUTOMATION_UPLOAD_DIR.
Replace VNC tickets with short-lived, hashed, single-use-per-session viewer grants (new viewer_grants table) that scope an iframe viewer to one profile via /api/scoped/* endpoints, bypassing the normal AUTH_TOKEN middleware for just that scoped surface.
Surface proxy-auth capability instead of failing silently: log a loud warning when a credentialed HTTP(S) proxy is about to fall back to Playwright's CDP auth interceptor (broken by the automation route guard above) instead of Chrome's native --proxy-server auth, and expose proxy_auth_inline_supported on GET /api/status so it's visible without reading logs.