mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #21571] issue: SWAGGER API is accessible without token with disabled API #58187
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?
Originally created by @Atrocraz on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21571
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.8.3
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Actual Behavior
Swagger API endpoints can be executed just by going /docs#/ endpoint while you are authorized in OWUI no matter if "Admin panel-> Settings -> General -> Enable API Keys" is on or off and user doesn't have permission to use API Keys.
I guess it doesnt check API key since user is authorized in OWUI.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@pr-validator-bot commented on GitHub (Feb 18, 2026):
⚠️ Invalid Issue Title
Hey @Atrocraz, please provide a descriptive title for your issue. Titles that are empty, very short (under 10 characters), or generic (like "issue:" or "feat:") make it difficult for volunteer contributors to understand and triage issues.
Please update the title to reflect the content of your issue.
⚠️ Missing Issue Title Prefix
@Atrocraz, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@Classic298 commented on GitHub (Feb 18, 2026):
intended, JWT can execute swagger endpoints, since you are authenticated with JWT
@Atrocraz commented on GitHub (Feb 18, 2026):
Thanks for answer!
Can you explain then, please, what exactly does "Enable API Keys" option do? It sounds like it should enable\disable all API requests, but they are still available in swagger?
@Classic298 commented on GitHub (Feb 18, 2026):
The Enable API Keys toggle only controls the use of static sk-... tokens. It does not shut down the API or block access to /docs.
Open WebUI is a "headless" application; the frontend is a SvelteKit app that talks to the FastAPI backend via the same API you see in Swagger. If the API were disabled, the website itself would break.
Key Points:
@Atrocraz commented on GitHub (Feb 19, 2026):
Thanks for explaining it for me, really appreciate it!