Skip to content

Add optional rate limiting support for health/ping endpoints#92

Open
endelwar wants to merge 1 commit intoMacPaw:developfrom
endelwar:feat/rate-limit
Open

Add optional rate limiting support for health/ping endpoints#92
endelwar wants to merge 1 commit intoMacPaw:developfrom
endelwar:feat/rate-limit

Conversation

@endelwar
Copy link

Add support for rate limiting on /health and /ping endpoints using symfony/rate-limiter component. The feature is entirely optional and requires installing symfony/rate-limiter package.

  • Add RateLimiterSubscriber to intercept requests on kernel.request
  • Support separate configuration for health and ping endpoints
  • Support fixed_window, sliding_window, and token_bucket policies
  • Return HTTP 429 with X-RateLimit-* headers when limit exceeded

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.

1 participant