Repository navigation
fix(docker): playground config type + monitor websocket auth dep - #2063
Merged
ntohidi merged 1 commit intoJul 11, 2026
Conversation
Playground Advanced Config always 400'd because /config/dump requires type but pyConfigToJson only sent code. Include #cfg-type, align stream fallback with dump shape, and teach shouldUseStream both nestings. Monitor dashboard WS /monitor/ws 500'd because router-level token_dep is HTTP Request-only and cannot inject into WebSocket scopes. Auth remains on AuthGateMiddleware; admin routes keep require_admin. Fixes #2059 Fixes #2060
Collaborator
|
Thanks for the fix, @Pitchfork-and-Torch. |
ntohidi
added a commit
that referenced
this pull request
Jul 11, 2026
The router-level token_dep was intentionally removed (PR #2063) because it broke WebSocket upgrades. Update the structural test to assert the dependency is absent — auth is enforced by AuthGateMiddleware.
Pitchfork-and-Torch
deleted the
fix/docker-playground-type-and-monitor-ws
branch
September 6, 2026 23:18
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.
Summary
Two Docker UI server bugs with confirmed root causes on
develop.Fixes #2059 — Playground Advanced Config always 400
pyConfigToJson()POSTed{ code }to/config/dump, but the server requirestype(CrawlerRunConfig|BrowserConfig). Every custom Advanced Config failed with:{"detail":"type must be 'CrawlerRunConfig' or 'BrowserConfig'"}Change: send
typefrom#cfg-typewith the code.Also tightens the related stream-path follow-up from the issue:
{ type, params: { stream: true } }shouldUseStream()reads bothcrawler_config.params.streamand top-levelcrawler_config.streamFixes #2060 — Dashboard
/monitor/ws500token_depis HTTPRequest-only. FastAPI applies router-level deps to the WebSocket route; inject fails with:The WS handler already documents that
AuthGateMiddlewareowns auth; destructive routes keepDepends(require_admin).Change:
app.include_router(monitor_router)without the HTTP-only dependency.Test plan
CrawlerRunConfig), Run →/config/dumpreturns 200 and crawl succeedsBrowserConfigtemplate → dump + run succeed/monitor/wsupgrades (101) and streams health/requests JSONNotes
develop(collaborator convention).