Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Implement CredentialsReport, AccountSummary and AccountAuthorizationDetails#13845

Merged
dfangl merged 1 commit into
iam/moto-migrationfrom
daniel/unc-276
Feb 26, 2026
Merged

Implement CredentialsReport, AccountSummary and AccountAuthorizationDetails#13845
dfangl merged 1 commit into
iam/moto-migrationfrom
daniel/unc-276

Conversation

@dfangl

@dfangl dfangl commented Feb 25, 2026

Copy link
Copy Markdown
Member

Motivation

Migrating the IAM credentials reports, account summary and authorization details.

Changes

  • Migration from moto

Tests

  • Tests unskipped in this PR

Related

Closes UNC-276

@dfangl dfangl requested a review from pinzon as a code owner February 25, 2026 17:59
@dfangl dfangl added this to the 2026.03 milestone Feb 25, 2026
@dfangl dfangl added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Feb 25, 2026
@github-actions

Copy link
Copy Markdown

LocalStack Community integration with Pro

  2 files    2 suites   3m 7s ⏱️
520 tests 503 ✅ 11 💤 6 ❌
522 runs  503 ✅ 13 💤 6 ❌

For more details on these failures, see this check.

Results for commit f426f44.

@github-actions

Copy link
Copy Markdown

Test Results - Preflight, Unit

23 123 tests  +53   21 252 ✅ +73   6m 12s ⏱️ +11s
     1 suites ± 0    1 871 💤  - 20 
     1 files   ± 0        0 ❌ ± 0 

Results for commit f426f44. ± Comparison against base commit cf50738.

@github-actions

Copy link
Copy Markdown

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 2s ⏱️ -1s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit f426f44. ± Comparison against base commit cf50738.

@github-actions

Copy link
Copy Markdown

Test Results (amd64) - Integration, Bootstrap

  5 files  ±    0    5 suites  ±0   11m 54s ⏱️ - 2h 29m 42s
544 tests  - 5 495  523 ✅  - 4 966  11 💤  - 529  10 ❌ ±0 
550 runs   - 5 495  523 ✅  - 4 966  17 💤  - 529  10 ❌ ±0 

For more details on these failures, see this check.

Results for commit f426f44. ± Comparison against base commit cf50738.

@pinzon pinzon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍


@markers.aws.validated
def test_get_credential_report_before_generated(self, aws_client, create_user, snapshot):
"""This test can ONLY be executed once per account. Be careful!"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice warning. 👍

Comment on lines +5434 to +5438
# Check if a report already exists and is not older than 4 hours
if store.CREDENTIAL_REPORT is not None and datetime.now(
UTC
) - store.CREDENTIAL_REPORT.generated_at < timedelta(hours=4):
return GenerateCredentialReportResponse(State=ReportStateType.COMPLETE)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Question: Should we really emulate the 4 hours limitation? Maybe we could write a config var to disable this behavior. Of course, this should be fine for the migration but we should revisit this later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is a good question - I think we need to see what the user requirements are in the future. For now, I think choosing parity is a good idea. We could introduce a config to configure the timeout, or even add an endpoint resetting it!

@dfangl dfangl merged commit 8dcac73 into iam/moto-migration Feb 26, 2026
38 of 43 checks passed
@dfangl dfangl deleted the daniel/unc-276 branch February 26, 2026 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants