feat: Fix Playground admin signup: proxy OpenWebUI /workspace+/auth and route /api/v1 via dashboard#884
Merged
Conversation
…orkspace+/auth, and route OpenWebUI /api/v1 Signed-off-by: Liav Weiss <lweiss@lweiss-thinkpadx1carbongen11.raanaii.csb>
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
👥 vLLM Semantic Team NotificationThe following members have been identified for the changed files in this PR and have been automatically assigned: 📁
|
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.

Context
This PR is follow-up work for Issue #849 and builds on the previously-merged fix in PR #850.
After pulling #850, testing showed a remaining issue: clicking Create Admin Account consistently fails with a 500 on the
/signupAPI.Root cause
OpenWebUI is not fully base-path aware when embedded. In the Playground flow it navigates and/or calls root paths (e.g.
/workspace,/auth) and related OpenWebUI APIs. Without explicit dashboard backend routing for these root routes + OpenWebUI API endpoints, requests can fall through to the dashboard SPA or a different upstream, resulting in broken signup/admin creation.Fix
/workspace) rather than a base-path mount./workspace,/auth) to OpenWebUI./api/v1/*and/api/config) to OpenWebUI even when the Referer is a root route like/workspace.Authorizationheaders when proxying OpenWebUI (forward auth) so authenticated/signup flows work correctly.Testing
http://localhost:8700/playgroundloads OpenWebUI correctly.Files changed
semantic-router/dashboard/frontend/src/pages/PlaygroundPage.tsxsemantic-router/dashboard/backend/router/router.go