sky-uk / osprey

Kubernetes OIDC CLI login
BSD 3-Clause "New" or "Revised" License
50 stars 18 forks source link

Fix the SSL certificates in the tests #65

Closed aecay closed 3 years ago

aecay commented 3 years ago

Currently the tests need the setting GODEBUG=x509ignoreCN=0. That's because without that, on newer versions of go, the tests give the following error:

Post \"https://localhost:12984/access-token\": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

So ideally, the test suite needs to be updated so that it provisions certs that work with the expectations of the new versions of go (using SAN instead of CN, presumably). Then we can remove the GODEBUG workaround from the makefile.

ModelNaoe commented 3 years ago

tough