in connectors/sources/redis.py [0:0]
def get_default_configuration(cls):
return {
"host": {"label": "Host", "order": 1, "type": "str"},
"port": {"label": "Port", "order": 2, "type": "int"},
"username": {
"label": "Username",
"order": 3,
"required": False,
"type": "str",
},
"password": {
"label": "Password",
"order": 4,
"required": False,
"sensitive": True,
"type": "str",
},
"database": {
"display": "textarea",
"label": "Comma-separated list of databases",
"order": 5,
"tooltip": "Databases are ignored when Advanced Sync Rules are used.",
"type": "list",
"value": "*",
},
"ssl_enabled": {
"display": "toggle",
"label": "SSL/TLS Connection",
"order": 6,
"tooltip": "This option establishes a secure connection to Redis using SSL/TLS encryption. Ensure that your Redis deployment supports SSL/TLS connections.",
"type": "bool",
"value": False,
},
"mutual_tls_enabled": {
"depends_on": [{"field": "ssl_enabled", "value": True}],
"display": "toggle",
"label": "Mutual SSL/TLS Connection",
"order": 7,
"tooltip": "This option establishes a secure connection to Redis using mutual SSL/TLS encryption. Ensure that your Redis deployment supports mutual SSL/TLS connections.",
"type": "bool",
"value": False,
},
"tls_certfile": {
"depends_on": [{"field": "mutual_tls_enabled", "value": True}],
"label": "client certificate file for SSL/TLS",
"order": 8,
"required": False,
"tooltip": "Specifies the client certificate from the Certificate Authority. The value of the certificate is used to validate the certificate presented by the Redis instance.",
"type": "str",
},
"tls_keyfile": {
"depends_on": [{"field": "mutual_tls_enabled", "value": True}],
"label": "client private key file for SSL/TLS",
"order": 9,
"required": False,
"tooltip": "Specifies the client private key from the Certificate Authority. The value of the key is used to validate the connection in the Redis instance.",
"type": "str",
},
}