mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:03:05 -05:00
[GH-ISSUE #17437] feat: Add SQLCipher support to official Docker image + application-level file encryption for data/ #72888
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 @Lyhtande on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17437
Check Existing Issues
Problem Description
Motivation
Currently, Open WebUI stores all user data (database, uploads, cache, vector DB) in the mounted
data/directory as plain files.Even though
data/can be protected at the host level (e.g. with gocryptfs, LUKS, or encrypted storage volumes), this is not true "application-level" encryption. Anyone with root access to the host while the system is running can still see the unencrypted files.For environments where sensitive user data, documents, or audio files are processed, this is a significant concern. "At rest" encryption is needed beyond the database.
Requested Enhancements
SQLCipher support in the official Docker image
DATABASE_TYPE=sqlite+sqlcipher).sqlite+sqlcipherleads to module errors.DATABASE_TYPE,DATABASE_PASSWORD) without custom builds.Application-level file encryption for the
data/directoryWEBUI_SECRET_KEY.Why not only rely on host encryption?
While host-level encryption (e.g., gocryptfs/LUKS) protects against storage theft or provider-level leaks, it does not protect against attackers or administrators with runtime access to the system. True security for sensitive data requires application-level encryption.
Benefits
Desired Solution you'd like
Request
Please consider:
data/.Alternatives Considered
No response
Additional Context
No response
@traumschule commented on GitHub (Oct 19, 2025):
nice to have
@Classic298 commented on GitHub (Oct 19, 2025):
@traumschule
https://docs.openwebui.com/getting-started/env-configuration#database_type