Skip to content

chore(deps): allow cryptography 51 - #8953

Open
itzzdev09 wants to merge 1 commit into
aws-powertools:developfrom
itzzdev09:deps/allow-cryptography-51
Open

itzzdev09 wants to merge 1 commit into
aws-powertools:developfrom
itzzdev09:deps/allow-cryptography-51

Conversation

@itzzdev09

Copy link
Copy Markdown

Issue number: closes #8952

Summary

Changes

Raise the cryptography cap from <51.0.0 to <52.0.0 in the jwt and all extras, and in the two matching requires-dist specifiers in uv.lock. The locked version is unchanged (50.0.2), so uv lock --check passes and nothing else in the lock moves.

User experience

Before: pip install "aws-lambda-powertools[jwt]" (or [all]) holds cryptography below 51 and conflicts with packages that require 51.
After: cryptography 51.x installs alongside Powertools.

Verification

In python:3.12 (Docker), uv sync --frozen --all-extras --all-groups, then cryptography forced to each version:

cryptography pytest -n 4 tests/unit/data_masking tests/functional/auth tests/functional/data_masking
50.0.2 628 passed
51.0.1 628 passed

uv lock --check passes. I did not run this against a real AWS service: the change is a version range, and the JWT and data masking code paths that use cryptography are covered by the tests above.

I used an AI assistant (Claude) to write this PR and run the checks. I reviewed the diff and the test output.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@itzzdev09
itzzdev09 requested a review from a team as a code owner December 4, 2026 08:47
@boring-cyborg

boring-cyborg Bot commented Dec 4, 2026

Copy link
Copy Markdown

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

@boring-cyborg boring-cyborg Bot added the dependencies Pull requests that update a dependency file label Dec 4, 2026
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: allow cryptography 51 in the jwt and all extras

1 participant