mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-17 23:52:29 +00:00
User valves (per-user API keys/config for tools and functions) were stored as plaintext JSON in the database. This adds Fernet symmetric encryption at the model layer so valve data is encrypted at rest. - Uses WEBUI_SECRET_KEY for encryption (no extra env var needed) - Add valve_encryption.py with encrypt/decrypt helpers using Fernet - Wire encrypt/decrypt in tools and functions model get/update methods - Add migration 019 to encrypt existing plaintext valve data - Backward compatible: decrypt_user_valves handles legacy plaintext dicts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| access_grants.py | ||
| auths.py | ||
| automations.py | ||
| channels.py | ||
| chat_messages.py | ||
| chats.py | ||
| feedbacks.py | ||
| files.py | ||
| folders.py | ||
| functions.py | ||
| groups.py | ||
| knowledge.py | ||
| memories.py | ||
| messages.py | ||
| models.py | ||
| notes.py | ||
| oauth_sessions.py | ||
| prompt_history.py | ||
| prompts.py | ||
| skills.py | ||
| tags.py | ||
| tools.py | ||
| users.py | ||