Open vikramsubramanian opened 6 months ago
initialize_redis_connection
function in the http_service/bugbug_http/app.py
file to disable SSL certificate verification when connecting to the Redis instance with a self-signed certificate.ssl_cert_reqs
parameter from 'required'
to 'none'
to disable SSL certificate verification.def initialize_redis_connection(host, port, ssl_cert_required):
connection = redis.Redis(
host=host,
port=port,
ssl=True,
ssl_cert_reqs='none' # Disable SSL certificate verification
)
return connection
redis_conn
initialization in both http_service/bugbug_http/app.py
and http_service/bugbug_http/worker.py
to use the modified initialize_redis_connection
function with the appropriate parameters for host, port, and SSL certificate requirement.# In http_service/bugbug_http/app.py and http_service/bugbug_http/worker.py
redis_conn = initialize_redis_connection('ec2-44-194-67-42.compute-1.amazonaws.com', 32269, False)
Heroku switched our Redis instance to SSL, and they are using self-signed certificates so we fail to validate them.