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

Fixes detection of report generation after the v2 SDK update #1196

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

adamnfish
Copy link
Contributor

Since the AWS v2 Java SDK update, the test of whether the report has finished being generated was broken. We correct this here so that we will detect a finished report.

This will stop us getting rate limit errors, and restore IAM remediation functionality.

What does this change?

The v1 SDK used a String for the status field, but in v2 this is an enum called ReportType. We had a type error warning, but because this projefct does not have fatal warnings enabled it was easy to miss. This incorrect equality check means we will be constantly retrying the report generation check instead of proceeding to load the report.

Since the AWS v2 Java SDK update, the test of whether the report has
finished being generated was broken. We correct this here so that we
will detect a finished report.

This will stop us getting rate limit errors, and restore IAM
remediation functionality.
@adamnfish adamnfish requested a review from a team January 30, 2025 12:43
Copy link
Contributor

@tjsilver tjsilver left a comment

Choose a reason for hiding this comment

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

Good spot!!

@adamnfish adamnfish merged commit 0dbb84d into main Jan 30, 2025
4 checks passed
@adamnfish adamnfish deleted the fix-credentials-report-refresh-job branch January 30, 2025 13:11
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.

2 participants