feat: add redis_password support#279
Closed
carlowahlstedt wants to merge 8 commits into
Closed
Conversation
Co-authored-by: Era Dorta <era.dorta@proton.me>
Allow users to configure a password for Redis authentication by adding an optional redis_password field to the storage config. - RedisStorage.__init__ now accepts an optional password parameter - Bot reads redis_password from config and passes it to RedisStorage - README documents the new redis_password config option Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
Closing in favor of a conflict-free PR based on upstream/main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional
redis_passwordsupport toRedisStorageso bots can connect to password-protected Redis instances.Changes
signalbot/storage.py:RedisStorage.__init__now accepts an optionalpassword: str | None = Noneparameter, which is forwarded toredis.Redis().signalbot/bot.py: Bot initialization readsredis_passwordfrom the storage config (via.get(), so it remains optional) and passes it toRedisStorage.README.md: Documents the newredis_passwordconfig option under the Persistent storage section.Usage
The field is optional — existing configs without
redis_passwordcontinue to work unchanged (password defaults toNone).🤖 Generated with Claude Code