Ssl_wrap_socket_with_ocsp() got an unexpected keyword argument 'key_password' when using SAML in 9.9.0-alpha

Hi,

I am evaluating the self-hosted Docker version of Redash (latest version: 9.9.0-alpha) and am trying to connect it to the Keycloak Identity Management tool using SAML as described in: https://github.com/getredash/redash/issues/2977

However when I try the SAML login from the Redash login page I get the following error in the Redash server on http://localhost:5000/saml/login?next=%2F:

  Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)

[..]

File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 394, in connect
    ssl_context=context,
TypeError: ssl_wrap_socket_with_ocsp() got an unexpected keyword argument 'key_password'

Can someone maybe confirm if this is really a bug or maybe a misconfiguration on my side? If it is a bug I can create a Github issue for it.

I think it has to do with versions of requests and or urllib3 but not sure.

I will try as well with a stable version of Redash.

I’m developing an improvement to the Redshift connector and am getting the same error when using the boto3 library within the Redash docker environment. I’ll let you know if I find the solution.

I’m trying an update of the urllib3 library. If that works I’ll add the reference to the requirements.txt of the PR for my Redshift query runner changes.

I found that the version of the Snowflake python library needed updating and also pyopenssl. Updating these means that the SSL error goes away (because pyopenssl wraps normal SSL functionality). I’m updating other dependent libraries and will commit. This corrects the error I was having.

1 Like