mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00: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