mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #7322] [CLOSED] Feat: API Keys allow limited endpoints vs all endpoints (configurable) #37672
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/7322
Author: @DmitriyAlergant
Created: 11/25/2024
Status: ❌ Closed
Base:
dev← Head:feat/api_key_limited_endpoints📝 Commits (4)
f8f3ceaFeat: API Keys allow limited endpoints vs all endpoints (configurable)9f802d2Frontend formatted (fix to the previous commit, failed formatting CI)fd3c880Adding code formatting to PR template checkliste49341bFix to previous: npm run i18n:parse (after adding API_KEY_ALLOW_ALL_ENDPOINTS option)📊 Changes
56 files changed (+147 additions, -7 deletions)
View changed files
📝
.github/pull_request_template.md(+1 -0)📝
backend/open_webui/apps/audio/main.py(+5 -5)📝
backend/open_webui/apps/webui/main.py(+3 -0)📝
backend/open_webui/apps/webui/routers/auths.py(+6 -0)📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/constants.py(+3 -0)📝
backend/open_webui/main.py(+4 -0)📝
backend/open_webui/utils/utils.py(+13 -1)📝
src/app.css(+0 -1)📝
src/lib/components/admin/Settings/General.svelte(+14 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+2 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+2 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+2 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+2 -0)📝
src/lib/i18n/locales/ceb-PH/translation.json(+2 -0)📝
src/lib/i18n/locales/cs-CZ/translation.json(+2 -0)📝
src/lib/i18n/locales/da-DK/translation.json(+2 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+2 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+2 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+2 -0)...and 36 more files
📄 Description
By default, only allow API keys authentication to /chat/completions and /models endpoints (LLM invocation). Admin can configure the app to allow API Keys for All Endpoints (default: false) - but this has security implications that are likely unwanted in many contexts. See https://github.com/open-webui/open-webui/discussions/7018 for justification.
Also adding [ ] Code formatting step to the default GitHub PR template, based on recent experience of a new contributor (failed formatting CIs on backend and frontend) - it would be better to be informed of the formatting requirements via this checklist rather then failing CIs.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Security
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.