-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-131050: Allow CPython test to handle TLS libraries lacking FFDHE ciphersuites #131051
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
Conversation
145d860
to
d4121d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly speaking, the (FF) part is usually used to distinguish between FF-based DH and elliptic curve DH. Rather than skipping the test, I think we should actually add a test for checking ECDHE in this case. The reason is that ADH and EDH/DHE do not contain EC-based DH.
Otherwise, it's as if we're skipping a test that shouldn't really be skipped (we're not testing loading of DH parameters). Are AWS-LC and BoringSSL only supporting EC-based DH?
Misc/NEWS.d/next/Tests/2025-03-10-18-58-03.gh-issue-131050.FMBAPN.rst
Outdated
Show resolved
Hide resolved
…APN.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
🤖 New build scheduled with the buildbot fleet by @picnixz for commit 9bf7e6c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131051%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Until the build bots are done, don't update the PR. TiA |
Some build bots may fail due to other issues (like the BigMem one as I think it doesn't contain the fix from yesterday) but I'm just interested in testing the various supported build bots. |
Hi @picnixz, do you think the buildbot failures are caused by this PR? Going by the buildbot logs, it doesn't look like the reference leaks are related to |
Click on "Update branch" and I'll rerun them! I don't think they are related though but some fixes were added recently. |
Ok, branch updated. Thanks @picnixz! |
🤖 New build scheduled with the buildbot fleet by @gpshead for commit 781d531 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131051%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a suggestion where we can remove the return tpe annotation and also extract supports_dhe
into a more general function of the form:
def supports_kx_alias(context, aliases):
for cipher in ctx.get_ciphers():
for alias in aliases:
if f"Kx={alias}" in cipher['description']:
return True
return False
Maybe we can use it later or in some other parts of the code. But first, let the build bots finish before committing (namely, don't touch this PR!)
Everything looks good now. Maybe you want to extract the little helper to help refactoring the test suite, otherwise we can let it like this. |
Sorry for the back-and-forth with the auto squash-merge but I changed the commit message quite a lot and since I can't preview it... |
Thanks @WillChilds-Klein for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…iphersuites (pythonGH-131051) (cherry picked from commit be2d218) Co-authored-by: Will Childs-Klein <willck93@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
GH-131874 is a backport of this pull request to the 3.13 branch. |
…iphersuites (pythonGH-131051) (cherry picked from commit be2d218) Co-authored-by: Will Childs-Klein <willck93@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
GH-131875 is a backport of this pull request to the 3.12 branch. |
|
…iphersuites (python#131051) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Notes
Please see #131050's description.
Testing