-
-
Notifications
You must be signed in to change notification settings - Fork 345
FEATURE: implement apikey rotator #2035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pkg/util/apikey/balancer.go
Outdated
package apikey | ||
|
||
import ( | ||
"math/rand" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using math/rand/v2 is suggested. GOSEC identifies the use of math/rand as a potential risk because its output is predictable if the seed is known. (G404)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Implement a api key rotator (balancer) with a custom format pattern loader