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

[v15] firestoreevents: enforce limits when reading query ranges #42967

Merged
merged 3 commits into from
Jun 14, 2024

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Jun 14, 2024

Backport #42902 to branch/v15

changelog: Enforce limits when reading events from Firestore for large time windows to prevent OOM events.

tigrato and others added 3 commits June 14, 2024 12:47
This PR enforces that `firestoreevents.SearchEvents` always limits the
amount of data to read from Firestore.

Prior to this PR, the query was unbounded and every single record was
read into memory even if they weren't required.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log backport size/sm labels Jun 14, 2024
@tigrato tigrato enabled auto-merge June 14, 2024 13:02
@tigrato tigrato added this pull request to the merge queue Jun 14, 2024
Merged via the queue into branch/v15 with commit 6a46374 Jun 14, 2024
32 checks passed
@tigrato tigrato deleted the bot/backport-42902-branch/v15 branch June 14, 2024 13:30
This was referenced Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit-log Issues related to Teleports Audit Log backport size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants