Skip to content

Conversation

@cgalibern
Copy link
Contributor

No description provided.

- Enable rate limiter for lsnrhttpinet
- Introduced `RateLimiterWithConfig` middleware for controlling request rates across listener endpoints.
- Updated context to include rate limiter configuration support with `WithListenRateLimiterMemoryStoreConfig`.
- Added Prometheus metrics to track denied requests and internal errors from the rate limiter.
…ment

- Centralized token use constants in `daemonauth/jwt.go` for better maintainability.
- Updated middleware to dynamically exclude proxy tokens from rate limiting.
- Adjusted middleware initialization order in `lsnrhttpinet` to reintroduce the rate limiter after auth middleware.
- Refactored rate limiter logger initialization for cleaner code reuse.
- Ensured consistent token use constant usage across the API implementation to reduce hardcoding.
- Introduced `RateLimiterConfig` in `cluster` for managing request rate, burst, and expiration.
- Integrated rate limiter settings into listener configuration and context.
- Updated listener startup and restart logic to include rate limiter changes.
- Refactored and replaced deprecated rate limiter configuration methods with `WithListenRateLimiterConfig`.
@cvaroqui cvaroqui merged commit c8aa0e6 into opensvc:main Jan 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants