Skip to content

Conversation

@MuneebUllahKhan222
Copy link
Contributor

Description:

Legacy S3 scanning previously tracked resumption state using only the bucket name. This caused incorrect behavior when multiple configured roles had access to the same bucket, but with different object-level permissions.
In such cases, resumption could not reliably determine which role’s progress was being resumed.

This PR updates the legacy resumption logic to store and retrieve state using both the bucket name and the role ARN, aligning behavior with the newer unit-scan implementation.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team December 11, 2025 11:07
@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team as a code owner December 11, 2025 11:07
@MuneebUllahKhan222 MuneebUllahKhan222 changed the title Add Role-Aware Resumption Support for Legacy S3 Scan [INS-207] Add Role-Aware Resumption Support for Legacy S3 Scan Dec 11, 2025
Copy link
Contributor

@amanfcp amanfcp left a comment

Choose a reason for hiding this comment

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

Looks fine to me..

Though I think an integration test is a must for this

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