summaryrefslogtreecommitdiff
path: root/community/aws-cli/aws-cli-v2-8838.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/aws-cli/aws-cli-v2-8838.patch')
-rw-r--r--community/aws-cli/aws-cli-v2-8838.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/aws-cli/aws-cli-v2-8838.patch b/community/aws-cli/aws-cli-v2-8838.patch
new file mode 100644
index 00000000000..5dfbcf7cfec
--- /dev/null
+++ b/community/aws-cli/aws-cli-v2-8838.patch
@@ -0,0 +1,23 @@
+From b5f19fe136ab0752cd5fcab21ff0ab59bddbea99 Mon Sep 17 00:00:00 2001
+From: fossdd <fossdd@pwned.life>
+Date: Fri, 2 Aug 2024 08:25:09 +0000
+Subject: [PATCH] Use higher key size for TestSha256RSADigestValidator
+
+cryptography 43.0.0 requires bumped the minimum key size to 1024
+---
+ tests/unit/customizations/cloudtrail/test_validation.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/unit/customizations/cloudtrail/test_validation.py b/tests/unit/customizations/cloudtrail/test_validation.py
+index c520ab57e940..96bee0ff7d5a 100644
+--- a/tests/unit/customizations/cloudtrail/test_validation.py
++++ b/tests/unit/customizations/cloudtrail/test_validation.py
+@@ -362,7 +362,7 @@ def setUp(self):
+ self._digest_data['_signature'] = 'aeff'
+
+ def test_validates_digests(self):
+- private_key = rsa.generate_private_key(65537, 512, default_backend())
++ private_key = rsa.generate_private_key(65537, 1024, default_backend())
+ sha256_hash = hashlib.sha256(self._inflated_digest)
+ string_to_sign = "%s\n%s/%s\n%s\n%s" % (
+ self._digest_data['digestEndTime'],