aws / amazon-ecs-agent

Amazon Elastic Container Service Agent
http://aws.amazon.com/ecs/
Apache License 2.0
2.08k stars 613 forks source link

Add ratelimiter for fault injection handlers #4340

Closed harishxr closed 1 month ago

harishxr commented 2 months ago

Summary

This PR adds a tollbooth ratelimiter to the Fault Injection handlers, enforcing a request limit to control how frequently fault injection operations can be triggered.

Implementation details

New tests cover the changes: yes

Description for the changelog

Add ratelimiter for fault injection handlers

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

**Does this PR include the addition of new environment variables in the README?**

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.