Skip to content

Conversation

c9s
Copy link
Owner

@c9s c9s commented May 16, 2025

Implement a api key rotator (balancer) with a custom format pattern loader

@c9s c9s force-pushed the c9s/api-key-rotation branch from 2dc9ddd to 8b88b2a Compare May 16, 2025 08:56
@c9s c9s force-pushed the c9s/api-key-rotation branch from 8b88b2a to 53e5956 Compare May 16, 2025 10:13
package apikey

import (
"math/rand"
Copy link
Collaborator

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)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@c9s c9s enabled auto-merge May 18, 2025 16:48
@c9s c9s merged commit 12680ba into main May 18, 2025
3 checks passed
@c9s c9s deleted the c9s/api-key-rotation branch May 18, 2025 16:57
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.

4 participants