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

AWS: IAM: Add access keys last used data, cleanup unattached nodes #1169

Merged
merged 2 commits into from May 10, 2023

Conversation

ramonpetgrave64
Copy link
Contributor

Redo of #1101

  1. Add access keys last used data
  2. cleanup unattached AccessKey nodes. This happens when the associated User no longer exists.

Testing

No unit tests, but I did test manually.

"__comment__": "cleanup access keys that are attached to users"
},
{
"query": "MATCH (n:AccountAccessKey) WHERE NOT (n)<-[:AWS_ACCESS_KEY]-(:AWSUser) AND n.lastupdated <> $UPDATE_TAG WITH n LIMIT $LIMIT_SIZE DETACH DELETE (n)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be improved when we refactor to the new model.

@achantavy achantavy merged commit f1b4948 into master May 10, 2023
5 checks passed
@achantavy achantavy deleted the ramonp-access-keys branch May 10, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants