This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 05f1ca3fda2 Migrate redis connection UI metadata to YAML (#62670)
05f1ca3fda2 is described below

commit 05f1ca3fda23cfdde849351557de386381a2ab31
Author: yuseok89 <[email protected]>
AuthorDate: Wed Mar 11 19:52:53 2026 +0900

    Migrate redis connection UI metadata to YAML (#62670)
    
    Co-authored-by: Amogh Desai <[email protected]>
---
 providers/redis/provider.yaml                      | 57 ++++++++++++++++++++++
 .../airflow/providers/redis/get_provider_info.py   | 26 +++++++++-
 2 files changed, 82 insertions(+), 1 deletion(-)

diff --git a/providers/redis/provider.yaml b/providers/redis/provider.yaml
index dcce1c15c27..5cd172b2662 100644
--- a/providers/redis/provider.yaml
+++ b/providers/redis/provider.yaml
@@ -98,6 +98,63 @@ hooks:
 connection-types:
   - hook-class-name: airflow.providers.redis.hooks.redis.RedisHook
     connection-type: redis
+    ui-field-behaviour:
+      hidden-fields:
+        - schema
+        - extra
+      relabeling: {}
+    conn-fields:
+      db:
+        label: DB
+        schema:
+          type:
+            - integer
+            - 'null'
+          default: 0
+      ssl:
+        label: Enable SSL
+        schema:
+          type:
+            - boolean
+            - 'null'
+          default: false
+      ssl_cert_reqs:
+        label: SSL verify mode
+        description: "Must be one of: required, optional, none."
+        schema:
+          type:
+            - string
+            - 'null'
+          default: required
+          enum:
+            - required
+            - optional
+            - none
+      ssl_ca_certs:
+        label: CA certificate path
+        schema:
+          type:
+            - string
+            - 'null'
+      ssl_keyfile:
+        label: Private key path
+        schema:
+          type:
+            - string
+            - 'null'
+      ssl_certfile:
+        label: Certificate path
+        schema:
+          type:
+            - string
+            - 'null'
+      ssl_check_hostname:
+        label: Enable hostname check
+        schema:
+          type:
+            - boolean
+            - 'null'
+          default: false
 
 logging:
   - airflow.providers.redis.redis_task_handler.RedisTaskHandler
diff --git a/providers/redis/src/airflow/providers/redis/get_provider_info.py 
b/providers/redis/src/airflow/providers/redis/get_provider_info.py
index aeca9e7119b..d93d7d7bea3 100644
--- a/providers/redis/src/airflow/providers/redis/get_provider_info.py
+++ b/providers/redis/src/airflow/providers/redis/get_provider_info.py
@@ -58,7 +58,31 @@ def get_provider_info():
         ],
         "hooks": [{"integration-name": "Redis", "python-modules": 
["airflow.providers.redis.hooks.redis"]}],
         "connection-types": [
-            {"hook-class-name": 
"airflow.providers.redis.hooks.redis.RedisHook", "connection-type": "redis"}
+            {
+                "hook-class-name": 
"airflow.providers.redis.hooks.redis.RedisHook",
+                "connection-type": "redis",
+                "ui-field-behaviour": {"hidden-fields": ["schema", "extra"], 
"relabeling": {}},
+                "conn-fields": {
+                    "db": {"label": "DB", "schema": {"type": ["integer", 
"null"], "default": 0}},
+                    "ssl": {"label": "Enable SSL", "schema": {"type": 
["boolean", "null"], "default": False}},
+                    "ssl_cert_reqs": {
+                        "label": "SSL verify mode",
+                        "description": "Must be one of: required, optional, 
none.",
+                        "schema": {
+                            "type": ["string", "null"],
+                            "default": "required",
+                            "enum": ["required", "optional", "none"],
+                        },
+                    },
+                    "ssl_ca_certs": {"label": "CA certificate path", "schema": 
{"type": ["string", "null"]}},
+                    "ssl_keyfile": {"label": "Private key path", "schema": 
{"type": ["string", "null"]}},
+                    "ssl_certfile": {"label": "Certificate path", "schema": 
{"type": ["string", "null"]}},
+                    "ssl_check_hostname": {
+                        "label": "Enable hostname check",
+                        "schema": {"type": ["boolean", "null"], "default": 
False},
+                    },
+                },
+            }
         ],
         "logging": 
["airflow.providers.redis.redis_task_handler.RedisTaskHandler"],
     }

Reply via email to