You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SSL hostname verification bug and update env var names
This commit addresses two issues:
1. **SSL Hostname Verification Bug**: Fixed the error "Cannot set verify_mode
to CERT_NONE when check_hostname is enabled" by adding support for the
`ssl_check_hostname` parameter. When `REDIS_SSL_CERT_REQS=none` is set,
hostname checking is now automatically disabled by default, matching the
behavior of redis-cli's --insecure flag. This is essential for scenarios
like AWS SSM port forwarding where the connection goes to localhost but
the certificate is issued for the actual hostname.
2. **Environment Variable Naming**: Fixed inconsistencies in documentation
(.env.example, README.md, smithery.yaml) where SSL-related environment
variables were missing the "SSL_" prefix. Updated:
- REDIS_CA_PATH → REDIS_SSL_CA_PATH
- REDIS_CERT_REQS → REDIS_SSL_CERT_REQS
- REDIS_CA_CERTS → REDIS_SSL_CA_CERTS
Changes:
- Added REDIS_SSL_CHECK_HOSTNAME configuration option
- Automatically sets check_hostname=False when cert_reqs="none"
- Added ssl_check_hostname support in parse_redis_uri()
- Passed ssl_check_hostname to both Redis and RedisCluster connections
- Added comprehensive tests for the new functionality
- Updated documentation to reflect correct variable names
0 commit comments