mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
mark quarantined keys with bedrock already set up as valid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user