mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
coderd: tighten /login rate limiting (#4432)
* coderd: tighten /login rate limit * coderd: add Bypass rate limit header
This commit is contained in:
@@ -24,6 +24,9 @@ const (
|
||||
SessionCustomHeader = "Coder-Session-Token"
|
||||
OAuth2StateKey = "oauth_state"
|
||||
OAuth2RedirectKey = "oauth_redirect"
|
||||
|
||||
// nolint: gosec
|
||||
BypassRatelimitHeader = "X-Coder-Bypass-Ratelimit"
|
||||
)
|
||||
|
||||
// New creates a Coder client for the provided URL.
|
||||
|
||||
Reference in New Issue
Block a user