Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more debugging of users being sent to the gateway #258

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/aws-iam-check-keys/find_stale_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,14 @@ def check_key(key_num: int, last_rotated_key: str, user: Threshold, row: dict, a
days_since_rotation = calc_days_since_rotation(last_rotated_key)
user_dict = {"user":row["user"], "key_num": key_num, "user_type": user.account_type, "account": account, "days_since_rotation": days_since_rotation, "last_rotated":last_rotated_key}
if days_since_rotation >= user.violation and user.account_type:
print(f"about to send user: {user_dict['user']}")
send_key(user_dict, "violation")
elif days_since_rotation >= user.warn:
print(f"about to send user: {user_dict['user']}")
send_key(user_dict, "warn")
else:
# print(f"about to send rotated for user: {user}")
print(f"about to del user: {user_dict['user']}")
del_key(user_dict)


Expand Down
Loading