Apply search rate limits to search scope
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 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.
-
I have evaluated the MR acceptance checklist for this MR.