mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23059] [CLOSED] fix: prevent API key exposure in terminal server verification #27003
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23059
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: ❌ Closed
Base:
main← Head:fix-terminal-server-api-exposure📝 Commits (3)
efb0f9afix: add pagination to chat list endpoints to prevent OOMdb10981fix: clear stale Redis tasks on startup949cf59fix: use backend proxy for terminal server verification📊 Changes
6 files changed (+134 additions, -34 deletions)
View changed files
📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/models/chats.py(+19 -9)📝
backend/open_webui/routers/chats.py(+15 -6)📝
backend/open_webui/routers/configs.py(+42 -0)📝
backend/open_webui/tasks.py(+31 -0)📝
src/lib/apis/configs/index.ts(+24 -19)📄 Description
Issue
Fixes #23048
Problem
Terminal server verification was performed directly from the browser, exposing API keys in network traffic and browser dev tools.
Solution
/api/v1/configs/terminal_servers/verifythat performs the verification server-sidedetectTerminalServerTypeto use the backend proxy instead of direct browser fetchSecurity Impact
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.