mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #21329] feat: Add SSL/TLS support for Redis Sentinel connections #49079
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/21329
Author: @NargiT
Created: 2/12/2026
Status: 🔄 Open
Base:
dev← Head:redis-ssl📝 Commits (6)
dca8832enable ssl option for sentinel202e39fadd test for redis parameters2c955c1fix ssl4207b2cavoid overiding username/password, just for clarity, no impact99cf0eaimprove args routing5ee7c46formating📊 Changes
2 files changed (+54 additions, -14 deletions)
View changed files
📝
backend/open_webui/test/util/test_redis.py(+17 -0)📝
backend/open_webui/utils/redis.py(+37 -14)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
This pull request adds comprehensive SSL/TLS support for Redis Sentinel connections, enabling secure communication with Redis Sentinel instances. The implementation allows users to configure secure connections using the
rediss://scheme and pass custom SSL parameters (such as certificate paths and verification settings) via query parameters in the connection URL. This is particularly useful for production environments requiring encrypted connections or self-signed certificates.Related discussion: #21274
Added
rediss://URL schemessl_cert_reqs,ssl_ca_certs,ssl_certfile,ssl_keyfile)sentinel_kwargsandconnection_kwargsto correctly apply SSL settings to both sentinel discovery and master/replica connectionsChanged
parse_redis_service_url()function to extract and return query parameters from Redis Sentinel URLsDeprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
This enhancement allows users to configure secure Redis Sentinel connections in production environments. Example connection strings:
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.