Skip to content

Use AWS CRT instead of cryptography for Cloudfront url signing #9423

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

Open
wants to merge 8 commits into
base: v2
Choose a base branch
from

Conversation

kdaily
Copy link
Member

@kdaily kdaily commented Apr 4, 2025

Issue #, if available:

Description of changes:

Fixes issue from #9258 to support PKCS8-formatted private key PEM files. The support for this was added directly to awscrt==0.25.6 (awslabs/aws-crt-python#638).

Added a test to prevent regression for support of this format. I also manually ran aws cloudfront sign commands and confirmed that the expected signature is generated using both a PKCS1 and PKCS8 pem file.

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

@kdaily kdaily force-pushed the crt-cryptography-cloudfront-signing branch from 69d3886 to fffc73b Compare April 4, 2025 17:10
@ashovlin
Copy link
Member

ashovlin commented Apr 8, 2025

Does this still need the changes to cloudfront.py that were originally in #9109, since we reverted to all of the cryptography.hazmat?

@kdaily
Copy link
Member Author

kdaily commented Apr 8, 2025

Does this still need the changes to cloudfront.py that were originally in #9109, since we reverted to all of the cryptography.hazmat?

Yeah. Not sure how I missed pushing that commit.

@kdaily
Copy link
Member Author

kdaily commented Apr 8, 2025

Does this still need the changes to cloudfront.py that were originally in #9109, since we reverted to all of the cryptography.hazmat?

Yeah. Not sure how I missed pushing that commit.

Fixed in 53c3b0e

@kdaily kdaily requested a review from ashovlin April 8, 2025 20:44
@kdaily kdaily closed this Apr 8, 2025
@kdaily kdaily reopened this Apr 8, 2025
@kdaily kdaily force-pushed the crt-cryptography-cloudfront-signing branch 3 times, most recently from f7650cf to 533be41 Compare April 8, 2025 21:52
@kdaily kdaily force-pushed the crt-cryptography-cloudfront-signing branch from 533be41 to 50007b9 Compare April 8, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants