Skip to content

Commit a5b8c4a

Browse files
committed
updating to ensure that this doesn't get flagged as a security warning as this is only used for generating a string for saving in cache
1 parent 2523bee commit a5b8c4a

File tree

1 file changed

+1
-1
lines changed
  • src/lambda/chat_with_document_resolver

1 file changed

+1
-1
lines changed

src/lambda/chat_with_document_resolver/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def handler(event, context):
6868
# Call Bedrock Runtime to get Python code based on the prompt
6969
if (len(objectKey)):
7070
encoded_string = objectKey.encode()
71-
md5_hash = hashlib.md5(encoded_string)
71+
md5_hash = hashlib.md5(encoded_string, usedforsecurity=False)
7272
hex_representation = md5_hash.hexdigest()
7373

7474
# full text key

0 commit comments

Comments
 (0)