[11.x] Allow list of rate limiters without requiring unique keys #53177
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.

This PR ensures that rate limiters specifying multiple limits will always have unique keys.
The issue.
This rate limiter will always fail. No request would ever get through. Zero. Nada.
This is because both limits share the same key. The docs specify that If you're assigning multiple rate limits segmented by identical by values, you should ensure that each by value is unique
This is fine, but also can be something easily forgotten; bit of a footgun.
The improvement
This PR attempts to improve the situation by ensuring that when a list of limits has duplicate keys they are modified to be unique.
In this above example, the first and the last limits would have their key modified to be unique.
Although this is a breaking change, it only breaks in already broken situations, so I see this as an overall improvement.
I don't feel like we need to update the docs. This is just a fallback fix for those rare times it is held wrong.
fixes #53157