mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #4115] [CLOSED] feat: Config class to handle secrets #21399
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/4115
Author: @michaelpoluektov
Created: 7/25/2024
Status: ❌ Closed
Base:
dev← Head:encrypt-secrets-2📝 Commits (10+)
75c5657wip: secret key to fernet4ddb8b6wip: add microsoft and oauth as secrets0672bc3wip: change encrypted to suffix394671cremove debub print57d46cccomment update603ade8refac: simplify config.pye2bd4fbfix walrus bug625bd7frefac: type hints and error message8c33e80undo refaccf9994bremove debug print📊 Changes
1 file changed (+104 additions, -53 deletions)
View changed files
📝
backend/config.py(+104 -53)📄 Description
Pull Request Checklist
Issue tracked here: https://github.com/open-webui/open-webui/issues/3831
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This could enable adding OAuth support directly from the admin panel at some point.
backend/config.pyAdded
SecretConfigclass to handle secret variables (for now, just OAuth), which are encrypted usingWEBUI_SECRET_KEYwhen saved.Changed
GOOGLE_CLIENT_SECRET,MICROSOFT_CLIENT_SECRETandOAUTH_CLIENT_SECRETare nowSecretConfig's.Deprecated
Security
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.