diff --git a/docs/docs/lock-stores.mdx b/docs/docs/lock-stores.mdx index 5889d953eac8..6f97a37e8e93 100644 --- a/docs/docs/lock-stores.mdx +++ b/docs/docs/lock-stores.mdx @@ -156,6 +156,8 @@ The `ConcurrentRedisLockStore` recreates the `TicketLock` from the persisted `Ti - `key_prefix` (default: `None`): The prefix to prepend to lock store keys. Must be alphanumeric + - `username` (default: `None`): Username used for authentication + - `password` (default: `None`): Password used for authentication (`None` equals no authentication) diff --git a/rasa/core/lock_store.py b/rasa/core/lock_store.py index b7d495b3f1f5..e8baff134a2e 100644 --- a/rasa/core/lock_store.py +++ b/rasa/core/lock_store.py @@ -200,6 +200,7 @@ def __init__( host: Text = "localhost", port: int = 6379, db: int = 1, + username: Optional[Text] = None, password: Optional[Text] = None, use_ssl: bool = False, ssl_certfile: Optional[Text] = None, @@ -215,6 +216,8 @@ def __init__( port: The port of the redis server. db: The name of the database within Redis which should be used by Rasa Open Source. + username: The username which should be used for authentication with the + Redis database. password: The password which should be used for authentication with the Redis database. use_ssl: `True` if SSL should be used for the connection to Redis. @@ -232,6 +235,7 @@ def __init__( host=host, port=int(port), db=int(db), + username=username, password=password, ssl=use_ssl, ssl_certfile=ssl_certfile,