Added ssh connection rate limiting feature#1469
Added ssh connection rate limiting feature#1469dbathgate wants to merge 1 commit intocloudfoundry:masterfrom
Conversation
|
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
c1061d7 to
0334d8b
Compare
There was a problem hiding this comment.
I like the idea of this PR, but would it be possible to use the go standard library for the limiter?
From briefly looking at the docs: https://pkg.go.dev/golang.org/x/time/rate
It seems like something like a combination of rate.Every and rate.NewLimiter should achieve the same result.
0334d8b to
952633b
Compare
|
Hi @rkoster, I've been working with Darren on this. An equivalent call with the current args looks like Do you have a suggestion for how bursting could be accounted for on the command line args? Some options are :
|
66838c6 to
c19e57c
Compare
|
Y'all waiting on another review from @rkoster here @dbathgate? |
- allows enabling ssh connection rate limiting - adds configurable amount of max connections per duration window - adds configurable duration window Signed-off-by: Darren Bathgate <darren.bathgate@broadcom.com>
c19e57c to
2c023f4
Compare
We attempted to use the rate limiter library provided by Go, but it was not working as expected for our needs. The rate limiter was still tripping the firewall brute force rule, and was running slower than the original version. We reverted back to the version I have in this pull request, and have been running this successfully for over 3 months. |
|
This has been open for > 1 year, should we go ahead and close this? |
Issue
Implementation
Example Usage:
Impact