Skip to content

feat: native automation, scoped viewer grants, and proxy-auth diagnos… - #58

Closed
waxei wants to merge 1 commit into
CloakHQ:mainfrom
waxei:feat/user-access
Closed

waxei wants to merge 1 commit into
CloakHQ:mainfrom
waxei:feat/user-access

Conversation

@waxei

@waxei waxei commented Sep 16, 2026

Copy link
Copy Markdown

…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.

…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>
@waxei waxei closed this Sep 16, 2026
@waxei
waxei deleted the feat/user-access branch September 16, 2026 11:48
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