mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 00:13:40 -05:00
[PR #12433] [MERGED] fix: API Key Endpoint Restrictions for Dynamic Paths #22912
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/12433
Author: @gaby
Created: 4/4/2025
Status: ✅ Merged
Merged: 4/4/2025
Merged by: @tjbck
Base:
dev← Head:fix-allowed-endpoints📝 Commits (1)
1c57e3eFix API_KEY_ALLOWED_ENDPOINTS📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/auth.py(+5 -1)📄 Description
Description
GET /api/v1/files, any request to a dynamic endpoint likeGET /api/v1/files/{id}would not match and would be incorrectly rejected.Fixed / Changed
Reasoning:
ENABLE_API_KEY_ENDPOINT_RESTRICTIONSfeature. We added/api/v1/files, and/api/v1/files/to the allowed list, but users couldn't call any of the dynamic routes like/api/v1/files/{id}.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.