make limiting features consistent across Gateway-MT and Link Sharing Service
Goal
Gateway-MT has the per-macaroon head rate limiter and linksharing has a limit on the total number of requests as well as the ability to block certain paths. It would be valuable to make these options consistent.
Acceptance Criteria
- Implement the limit on the total number of requests in GW-MT
- Implement the per-macaroon head rate limiter in linksharing
- Make the per-macaroon head rate limiter have the ability to rate limit project IDs as well
- Make limiting options consistent under the same configuration key (e.g.,
--limits.[…])
Links
Change pkg/{minio,server/middleware}: use project for concurrent req limiter mentions this issue.
Change pkg/linksharing: add limiter middleware mentions this issue.
Change pkg/server: rename --concurrent-allowed mentions this issue.
Change pkg/linksharing/sharing: remove concurrent request limiter mentions this issue.
This looks like it's done. There's some follow-up work I raised an issue for here: https://github.com/storj/edge/issues/569