[BUG] - SSL Certificate Verification Failure in Dask Gateway Unit Tests #2744
Labels
area: CI/CD 👷🏽♀️
area: testing ✅
Testing
needs: triage 🚦
Someone needs to have a look at this issue and triage
type: bug 🐛
Something isn't working
Describe the bug
Our unit tests have begun failing due to SSL certificate verification errors when connecting to the Dask Gateway. Specifically, we encounter an SSLCertVerificationError caused by a self-signed certificate.
We've been using a monkey patch to disable SSL verification as a temporary workaround, which has allowed tests to pass so far; however, this does not work anymore.
nebari/tests/tests_deployment/utils.py
Lines 115 to 132 in b2afe1a
My guess, based on a similar encounter, is that aiohttp the base lib used by dask to handle the connections has changed something internally regarding the TCPConnector default behavior (this happens internally within the requests, and is decided by a combination of parameters that dask handles based on the provided proxy schema, which in our case we were passing for jupyterhub authentication)
To address this adequately, I propose overriding the
dask_gateway.Gateway
class usingself._request_kwargs
object above to allow the TLS parameter to be disabled within our test context.Expected behavior
OS and architecture in which you are running Nebari
Linux (CI/GHA)
How to Reproduce the problem?
https://github.com/nebari-dev/nebari/actions/runs/11022572877/job/30612182623?pr=2739
Command output
No response
Versions and dependencies used.
No response
Compute environment
kind
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: