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

[v14] Feed the correct next page token to ListAllAccessListsMembers #41044

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Apr 30, 2024

Backport #41043 to branch/v14

changelog: Fixed a memory leak caused by incorrectly passing the offset when paginating all Access Lists' members 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 <tiago.silva@goteleport.com>
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from avatus April 30, 2024 13:15
@tigrato tigrato added this pull request to the merge queue Apr 30, 2024
Merged via the queue into branch/v14 with commit 9408d78 Apr 30, 2024
26 checks passed
@tigrato tigrato deleted the bot/backport-41043-branch/v14 branch April 30, 2024 13:35
@camscale camscale mentioned this pull request May 1, 2024
This was referenced Aug 6, 2024
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