Skip to content

[v17] Fix memory leak in access list reminder notifications#62664

Merged
tigrato merged 4 commits intobranch/v17from
bot/backport-62649-branch/v17
Jan 8, 2026
Merged

[v17] Fix memory leak in access list reminder notifications#62664
tigrato merged 4 commits intobranch/v17from
bot/backport-62649-branch/v17

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Jan 7, 2026

Backport #62649 to branch/v17

changelog: Fixed a memory leak in access list reminder notifications affecting clusters with more than 1000 pending Access List reviews.

* Fix memory leak in access list reminder notifications

Fixes a memory leak caused by variable shadowing where `nextKey` was
redeclared in the pagination loop instead of being assigned. This caused
the loop to always pass an empty pagination token, fetching the same
page repeatedly and never terminating for tenants with more than 1000
pending access list review notifications.

The fix renames the loop variable to `notificationsPageKey` to avoid
shadowing and properly updates it with the next page token.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* handle code review comments

* handle review feedback

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Same comment as on the branch/v18 backport about addressing
#62649 (comment).

This PR re-introduces access list read rate limiting removed in #62649.
The PR had merge enabled and was merged without addressing the feedback.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato
Copy link
Copy Markdown
Contributor Author

tigrato commented Jan 7, 2026

Same comment as on the branch/v18 backport about addressing #62649 (comment).

cherry picked from #62670

Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 left a comment

Choose a reason for hiding this comment

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

(Assuming the compilation error is fixed)

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kopiczko January 7, 2026 17:42
@rosstimothy rosstimothy dismissed their stale review January 7, 2026 17:48

Rate limiting has been restored.

@tigrato tigrato enabled auto-merge January 8, 2026 09:25
@tigrato tigrato force-pushed the bot/backport-62649-branch/v17 branch from 3d59714 to 46dced8 Compare January 8, 2026 17:24
@tigrato tigrato added this pull request to the merge queue Jan 8, 2026
Merged via the queue into branch/v17 with commit 1439e3c Jan 8, 2026
38 checks passed
@tigrato tigrato deleted the bot/backport-62649-branch/v17 branch January 8, 2026 18:02
fheinecke added a commit that referenced this pull request Jan 8, 2026
@fheinecke fheinecke mentioned this pull request Jan 8, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2026
* Release 17.7.13

* Update changelog for #62664
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.

4 participants