You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aws-encryption-sdk v3.1.0 (python hook runtime dependency) has a dependency on cryptogrpahy>2.5 (see https://github.com/aws/aws-encryption-sdk-python/blob/7950abd73ee333407d2dadd02ef2d57c3df464cf/requirements.txt#L2). This causes python hooks to be bundled with the latest version of cryptography (40.0.1), however the cryptography package has recently fully deprecated a method used by aws-encryption-sdk v3.1.0 (utils.verify_instance). This is resulting in a runtime exception for python hooks bundled with cloudformation-cli-python-lib v2.1.15:
Unable to import module 'x.handlers': cannot import name 'verify_interface' from 'cryptography.utils' (/var/task/cryptography/utils.py)
Hi @jsonmart and @kremerpatrick - new versions of the plugin and the lib, cloudformation-cli-python-plugin-2.1.8 and cloudformation-cli-python-lib-2.1.16 are now available updates from pip as of yesterday, and include the merged PR mentioned above. You should now be able to expunge the temporary workaround, upgrade your local copies of the plugin and lib from pip, package your extension(s) as usual, and test without having the related error. Let us know!
Activity
kremerpatrick commentedon Apr 17, 2023
Is there an easy way around this while we wait for the fix to be merged?
jsonmart commentedon Apr 18, 2023
@kremerpatrick - you can add
cryptography<40.0.0torequirements.txtin your generated hook package as a temporary workaround.kremerpatrick commentedon Apr 18, 2023
That worked, thank you!
mrinaudo-aws commentedon Apr 21, 2023
Hi @jsonmart and @kremerpatrick - new versions of the plugin and the lib,
cloudformation-cli-python-plugin-2.1.8andcloudformation-cli-python-lib-2.1.16are now available updates frompipas of yesterday, and include the merged PR mentioned above. You should now be able to expunge the temporary workaround, upgrade your local copies of the plugin and lib frompip, package your extension(s) as usual, and test without having the related error. Let us know!kremerpatrick commentedon Apr 25, 2023
That worked, thanks!