From 03fbeb741ef06ceb3e3d963ae2546272fffd949e Mon Sep 17 00:00:00 2001 From: based Date: Fri, 16 Feb 2024 15:53:04 +1000 Subject: [PATCH] mark quarantined keys with bedrock already set up as valid --- AWS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AWS.py b/AWS.py index fb4bf66..aa57f69 100644 --- a/AWS.py +++ b/AWS.py @@ -82,7 +82,7 @@ def check_aws(key: APIKey): continue # Admin keys will never expose this policy even if they are quarantined. - if "AWSCompromisedKeyQuarantine" in policy["PolicyName"]: + if "AWSCompromisedKeyQuarantine" in policy["PolicyName"] and not key.bedrock_enabled: key.useless = True key.useless_reasons.append('Quarantined Key') break