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

Update cryptography to 35.0.0 and jwcrypto to 1.0 #131

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Oct 7, 2021

This PR updates cryptography from 3.4.7 to 35.0.0.

Changelog

35.0.0

~~~~~~~~~~~~~~~~~~~

* Changed the :ref:`version scheme <api-stability:versioning>`. This will
result in us incrementing the major version more frequently, but does not
change our existing backwards compatibility policy.
* **BACKWARDS INCOMPATIBLE:** The X.509 certificate parser no longer allows
negative serial numbers. :rfc:`5280` has always prohibited these.
* **BACKWARDS INCOMPATIBLE:** Invalid ASN.1 found during :doc:`/x509/index`
parsing will raise an error on initial parse rather than when the invalid
field is accessed.
* Rust is now required for building ``cryptography``, the
``CRYPTOGRAPHY_DONT_BUILD_RUST`` environment variable is no longer
respected.
* Parsers for :doc:`/x509/index` no longer use OpenSSL and have been
rewritten in Rust. This should be backwards compatible (modulo the items
listed above) and improve both security and performance.
* Added support for OpenSSL 3.0.0 as a compilation target.
* Added support for
:class:`~cryptography.hazmat.primitives.hashes.SM3` and
:class:`~cryptography.hazmat.primitives.ciphers.algorithms.SM4`,
when using OpenSSL 1.1.1. These algorithms are provided for compatibility
in regions where they may be required, and are not generally recommended.
* We now ship ``manylinux_2_24`` and ``musllinux_1_1`` wheels, in addition to
our ``manylinux2010`` and ``manylinux2014`` wheels. Users on distributions
like Alpine Linux should ensure they upgrade to the latest ``pip`` to
correctly receive wheels.
* Added ``rfc4514_attribute_name`` attribute to :attr:`x509.NameAttribute
<cryptography.x509.NameAttribute.rfc4514_attribute_name>`.
* Added :class:`~cryptography.hazmat.primitives.kdf.kbkdf.KBKDFCMAC`.

.. _v3-4-8:

3.4.8

~~~~~~~~~~~~~~~~~~

* Updated Windows, macOS, and ``manylinux`` wheels to be compiled with
OpenSSL 1.1.1l.

.. _v3-4-7:
Links

This PR updates jwcrypto from 0.9.1 to 1.0.

Changelog

1.0.0

Cutting 1.0 as we reached a very stable code base and API now.

Simo Sorce (11):

1.0.dev1

* Create SECURITY.md
* Show Code Scan button and exclude trivial pulls
* Allow empty payloads in JWS tokens
* Add tests to check empty payload support
* Drop python2 compatibility
* Fix python3 pylint issues
* Add explicit support to check 'typ' in JWT
* Drop support for importing old MutableMapping
* Disable annoying pep8 naming checks
* Version 1.0
Links

@thekaveman thekaveman added this to the October 2021 milestone Oct 7, 2021
@thekaveman thekaveman added the dependencies [auto] Pull requests that update 3rd party software libraries and requirements label Oct 7, 2021
@machikoyasuda machikoyasuda changed the title Update cryptography to 35.0.0 Update cryptography to 35.0.0 and jwcrypto to 1.0 Oct 27, 2021
@machikoyasuda
Copy link
Member

Tested this PR in conjunction with cal-itp/eligibility-server#39

  1. In server, checkout the branch with the dependency updates, and docker compose build server
  2. In benefits, checkout the branch with the dependency updates, and docker compose build client
  3. In benefits, update the server.image in docker compose file to point to the local eligibility_server:latest
  4. Rebuild and Reopen devcontainer. Run app in Debugger mode.
  5. Open benefits app client to admin and ensure this is correct
  6. Test flow for an eligible user and an ineligible user

@machikoyasuda
Copy link
Member

Now that cal-itp/eligibility-server#39 is merged, testing with https://github.com/cal-itp/eligibility-server/pkgs/container/eligibility-server/9484551?tag=main

@machikoyasuda machikoyasuda merged commit 2eaf498 into dev Oct 27, 2021
@machikoyasuda machikoyasuda deleted the pyup-update-cryptography-3.4.7-to-35.0.0 branch October 27, 2021 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies [auto] Pull requests that update 3rd party software libraries and requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants