| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
cc @picnixz (cryptography expert) |
Sorry, something went wrong.
…e-128192.02mEhD.rst Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
There was a problem hiding this comment.
A preliminary round of comments. You can also update "RFC 2617" to "RFC 2617/7616" in the AbstractDigestAuthHandler comment.
Sorry, something went wrong.
| handler = AbstractDigestAuthHandler() | ||
| class TestDigestAlgorithms(unittest.TestCase): | ||
| def setUp(self): | ||
| self.handler = AbstractDigestAuthHandler() |
There was a problem hiding this comment.
In a follow-up PR (or this one), if you want/can, we can add tests for a full communication round where we request HTTP digest authentication.
Sorry, something went wrong.
There was a problem hiding this comment.
yep, next time!
Sorry, something went wrong.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
We are still missing the What's New entry and the modified NEWS entry. |
Sorry, something went wrong.
…e-128192.02mEhD.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
my bad, fixed |
Sorry, something went wrong.
There was a problem hiding this comment.
We may also need an additional .. versionchanged:: next in the docs to mention SHA-256 in https://docs.python.org/3/library/urllib.request.html#urllib.request.AbstractDigestAuthHandler.
I think we'll also need a follow-up PR to update the docs because they are lacking IMO.
Sorry, something went wrong.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
added
what docs were you thinking of? i can make a new gh issue for it, as well as the complete end-to-end http digest auth test |
Sorry, something went wrong.
None of the methods of AbstractDigestAuthHandler are actually documented so we may want to document them. If someone wants to subclass this interface, they need to know its usage. For now, let's wait for Gregory's feedback. |
Sorry, something went wrong.
|
Thank you for your contribution Calvin and Gregory for the merge/2nd review. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x has failed when building commit f9a5a3a. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/469/builds/9772 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_urllib2.py", line 1972, in test_md5_algorithm
self.assertEqual(H("foo"), "acbd18db4cc2f85cedef654fccc4a4d8")
~^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/urllib/request.py", line 1182, in <lambda>
H = lambda x: hashlib.md5(x.encode("ascii")).hexdigest()
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS
|
Sorry, something went wrong.
|
i'm not surprised at that buildbot error. it is running in an unrealistic config without critical hash functions. we'll ultimately just need to decorate the test to indicate that it requires md5, sha1, and sha256 - skipping it otherwise. (see test_hashlib) |
Sorry, something went wrong.
|
I'll do it tomorrow (it's almost midnight here and I'm no more on my dev session) or someone else somewhere else can add the decorators. However, maybe we should revert the commit just to avoid other PRs to have the buildbot failure in the meantime? |
Sorry, something went wrong.
|
No worries. That buildbot is an unstable unsupported configuration, no need to revert anything. It's there solely so that we can use it to identify and clean up test dependency declaration issues eventually. It doesn't block anything. |
Sorry, something went wrong.
…C-7617 (pythonGH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
| Back | FazBrowse Home | New Git URL |
as mentioned in the issue, other authentication exist, but i don't see them supported out of the box in hashlib.
this all depends if python wishes to support rfc7616