Skip to content

Fix use_ssl: True on Python 3.10#1496

Merged
pquentin merged 6 commits intoelastic:masterfrom
pquentin:use-ssl-310
Jun 1, 2022
Merged

Fix use_ssl: True on Python 3.10#1496
pquentin merged 6 commits intoelastic:masterfrom
pquentin:use-ssl-310

Conversation

@pquentin
Copy link
Copy Markdown
Member

Rally is a client, so its purpose is to authenticate servers. This means
that we should use ssl.Purpose.SERVER_AUTH instead of CLIENT_AUTH, with
or without client certs. This is super confusing, see
python/cpython#73996. Anyway, in 3.10 making this mistake isn't possible
anymore due python/cpython#26646.

To make sure this does not break in the future, we also add tests for
the IP and client certs cases.

pquentin added 5 commits May 20, 2022 16:02
Rally is a client, so its purpose is to authenticate servers. We
also add tests for the IP and client certs cases to make sure this
change does not break them.
@pquentin pquentin added the bug Something's wrong label May 20, 2022
@pquentin pquentin added this to the 2.5.0 milestone May 20, 2022
@pquentin pquentin self-assigned this May 20, 2022
Copy link
Copy Markdown
Member

@inqueue inqueue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@pquentin pquentin merged commit 6bd1b6c into elastic:master Jun 1, 2022
@pquentin pquentin deleted the use-ssl-310 branch June 1, 2022 07:20
@pquentin pquentin changed the title Fix use_ssl: True on Python 3.10 (second try) Fix use_ssl: True on Python 3.10 Jun 23, 2022
@pquentin pquentin added the highlight A substantial improvement that is worth mentioning separately in release notes label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something's wrong highlight A substantial improvement that is worth mentioning separately in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants