Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use_ssl: True on Python 3.10 #1496

Merged
merged 6 commits into from
Jun 1, 2022
Merged

Conversation

pquentin
Copy link
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.

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
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