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

Feed the correct next page token to ListAllAccessListsMembers #41043

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Apr 30, 2024

This PR fixes a typo when listing all members across all Access Lists because when the number of members is bigger than the default page size (200), nextToken is not empty but we always pass the an empty value to the ListResources call. This results in the callers to constantly call ListAllAccessListMembers until they run out of memory.

Changelog: Fix a memory leak caused by incorrectly passing the offset when paginating all Access Lists' members. Memory leak only occurs when there are more than the default pagesize (200) Access Lists.

This PR fixes a typo when listing all members across all Access Lists
because when the number of members is bigger than the default page size
(1000), `nextToken` is not empty but we always pass the an empty value
to the `ListResources` call. This results in the callers to constantly
call `ListAllAccessListMembers` until they run out of memory.

Signed-off-by: Tiago Silva <[email protected]>
@tigrato tigrato enabled auto-merge April 30, 2024 11:34
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from justinas April 30, 2024 11:35
@tigrato tigrato added this pull request to the merge queue Apr 30, 2024
Merged via the queue into master with commit a9ebad1 Apr 30, 2024
43 checks passed
@tigrato tigrato deleted the tigrato/fix-list-access-list-members-cache branch April 30, 2024 12:06
@public-teleport-github-review-bot

@tigrato See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants