mark quarantined keys with bedrock already set up as valid

This commit is contained in:
based
2024-02-16 15:53:04 +10:00
parent 6372f929d4
commit 03fbeb741e
+1 -1
View File
@@ -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