Skip to content

Commit

Permalink
satellite/console: remove user ID rate limiter for /daily-usage endpoint
Browse files Browse the repository at this point in the history
Removed rate limiter for this endpoint because we also removed caching for this endpoint so now it's causing errors to happen.

Change-Id: I85de3891bc2447ba256fd3a16048f1d4567f6abf
  • Loading branch information
VitaliiShpital authored and andriikotko committed Apr 15, 2024
1 parent 358d06f commit 045913e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satellite/console/consoleweb/server.go
Expand Up @@ -305,7 +305,7 @@ func NewServer(logger *zap.Logger, config Config, service *console.Service, oidc
usageLimitsController := consoleapi.NewUsageLimits(logger, service, server.config.AllowedUsageReportDateRange)
projectsRouter.Handle("/{id}/usage-limits", http.HandlerFunc(usageLimitsController.ProjectUsageLimits)).Methods(http.MethodGet, http.MethodOptions)
projectsRouter.Handle("/usage-limits", http.HandlerFunc(usageLimitsController.TotalUsageLimits)).Methods(http.MethodGet, http.MethodOptions)
projectsRouter.Handle("/{id}/daily-usage", server.userIDRateLimiter.Limit(http.HandlerFunc(usageLimitsController.DailyUsage))).Methods(http.MethodGet, http.MethodOptions)
projectsRouter.Handle("/{id}/daily-usage", http.HandlerFunc(usageLimitsController.DailyUsage)).Methods(http.MethodGet, http.MethodOptions)
projectsRouter.Handle("/usage-report", server.userIDRateLimiter.Limit(http.HandlerFunc(usageLimitsController.UsageReport))).Methods(http.MethodGet, http.MethodOptions)

badPasswords, err := server.loadBadPasswords()
Expand Down

0 comments on commit 045913e

Please sign in to comment.