bpo-23033: consider wildcard in left most segment only for domain names#937
bpo-23033: consider wildcard in left most segment only for domain names#937Mariatta merged 10 commits intopython:masterfrom
Conversation
|
Looks like there is a relevant failing |
|
@alex review now. |
alex
left a comment
There was a problem hiding this comment.
I have a few small comments.
Thanks for working on this! This is a great improvement to making match_hostname behave more like the rest of the PKI infrastructure.
There was a problem hiding this comment.
Nit: Please use a # style comment. """ is for docstrings.
There was a problem hiding this comment.
This comment still doesn't fell right, there is a wildcard in the left-most segment. I think it should say something like "only match wildcards when they are the only thing in the left-most segment". What do you think?
There was a problem hiding this comment.
Sounds much better, pushing the changes.
|
Doc failures are not your fault, sphinx-doc/sphinx#3597 is the cause. |
|
@alex anything else needed from my side ? |
|
This looks good to me. I'll probably ask for another review before landing. Thanks so much! |
reaperhulk
left a comment
There was a problem hiding this comment.
Looks good to me. Wildcards should be honored iff they are the leftmost fragment and are the only character in that fragment.
|
You are almost there! Please add a |
tiran
left a comment
There was a problem hiding this comment.
versionchanged in documentation is missing.
|
@tiran version changed docs added. Should that go in |
31c911b to
2416d6a
Compare
berkerpeksag
left a comment
There was a problem hiding this comment.
I think we also need to add an entry to Misc/NEWS.
There was a problem hiding this comment.
I'd change :meth:`match_hostname` to :meth:`ssl.match_hostname`. This would create a link to the ssl.match_hostname() documentation.
There was a problem hiding this comment.
@berkerpeksag thanks for review. I have pushed a fix.
There was a problem hiding this comment.
Please add "Patch by Mandeep Singh."
|
Please add yourself to Misc/ACKS, resolve the conflict and update Misc/NEWS. |
|
@Mariatta changes pushed. |
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
|
@Mariatta will update the PR tonight. |
|
@Mariatta I have rebased the PR and added news entry in Misc/NEWS.d/ |
|
Thanks. I made minor changes and added you to Misc/ACKs. Waiting until CI is done. |
|
Thanks again @daxlab and congrats on your first contribution to CPython 🌮 |
https://bugs.python.org/issue23033