-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rate limiting (per operation, per auth/ip) (#2640)
* 2347: Admin/Runtime: Rate limiting (per operation, per auth/ip) * Provided descriptions for key structs * Refactored according to PR comments * Limiter interface * Fixed formatting * Fixed tests * Updated func declarations according the lint * Changed LimiterHTTPHandler visibility * Made limit checks more explicit by materializing them in respective packages * Added a request to Metadata so that it is available in a handler * Fixed linter errors * Fixed linter errors * added zap.Error(err) * Reverted auto-IDE change * Added a comment * Simplified by using grpc_auth.UnaryServerInterceptor * Tripled rate limits before we have real numbers measured by a usage tracking * Reverted auto change * check if claims == nil --------- Co-authored-by: e.sevastyanov <[email protected]> Co-authored-by: Benjamin Egelund-Müller <[email protected]>
- Loading branch information
1 parent
3e8090a
commit 4a9b8e5
Showing
19 changed files
with
359 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.