feat(ratelimit): Create rate limits from configs

This commit is contained in:
Timothy Messier committed 2023-12-04 16:20:44 +00:00
1 parent 61fcd857ec
commit 6da47443fd
6 files changed
+684 -11

No files matched your search

+2
View File
@@ -32,6 +32,7 @@ import (
"github.com/hashicorp/boundary/internal/host/plugin"
"github.com/hashicorp/boundary/internal/iam"
"github.com/hashicorp/boundary/internal/kms"
"github.com/hashicorp/boundary/internal/ratelimit"
"github.com/hashicorp/boundary/internal/scheduler"
"github.com/hashicorp/boundary/internal/server"
"github.com/hashicorp/boundary/internal/session"
@@ -656,6 +657,7 @@ func TestControllerConfig(t testing.TB, ctx context.Context, tc *TestController,
}
}
opts.Config.Controller.Scheduler.JobRunIntervalDuration = opts.SchedulerRunJobInterval
opts.Config.Controller.ApiRateLimiterMaxEntries = ratelimit.DefaultLimiterMaxEntries()
if opts.EnableEventing {
opts.Config.Eventing = &event.EventerConfig{