Skip to content

Apply search rate limits to search scope

John Mason requested to merge jm-search-rate-limited-scopes into master

What does this MR do and why?

The changes in this MR are behind the feature flag search_rate_limited_scopes

Because every search in the UI typically runs concurrent searches with different scopes to get counts, we apply rate limits on the search scope if it is present.

If an abusive search is detected, we have stricter limits and ignore the search scope.

👉 The thought behind this MR is once we have limits per scope, we then have the option to restrict the limits to a less generous number.

The default limit for authenticated requests is 300 searches / minute.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by John Mason

Merge request reports