Skip to content

Commit

Permalink
Add username for redis connection and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamy7 committed Jan 4, 2024
1 parent dac3a5c commit 0cda118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/redis/hooks/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_conn(self):
def get_ui_field_behaviour(cls) -> dict[str, Any]:
"""Returns custom field behaviour."""
return {
"hidden_fields": ["schema", "login", "extra"],
"hidden_fields": ["schema", "extra"],
"relabeling": {},
}

Expand Down Expand Up @@ -147,7 +147,7 @@ def get_connection_form_widgets(cls) -> dict[str, Any]:
validators=[Optional()],
default=None,
),
"ssl_cert_file": StringField(
"ssl_certfile": StringField(
lazy_gettext("Certificate path"),
widget=BS3TextFieldWidget(),
validators=[Optional()],
Expand Down
5 changes: 4 additions & 1 deletion docs/apache-airflow-providers-redis/connections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Host
Port
Specify the port to use for connecting the Redis cluster (Default is ``6379``).

Login
The user that will be used for authentication against the Redis cluster (only applicable in Redis 6.0 and above).

Password
The password of the user that will be used for authentication against the Redis cluster.

Expand All @@ -58,4 +61,4 @@ Certificate path
Path to an ssl certificate (Default is ``None``).

Enable hostname check
If set, match the hostname during the SSL handshake (Default is False).
If set, match the hostname during the SSL handshake (Default is ``False``).

0 comments on commit 0cda118

Please sign in to comment.