auth: no rate limiting on authentication failures #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BearerMiddlewarereturns 401 immediately on failure with no throttling. An attacker can enumerate static tokens or probe for timing differences between JWT and static-token checks without any friction.File:
internal/auth/bearer.go:22-42Suggestions:
Retry-Afterheader when rate limit is hit