pub enum MissingIpPolicy {
Deny,
SharedBucket,
Allow,
}Expand description
Policy applied when rate limiting is enabled but no client IP can be resolved for a request.
This guards against a production deployment that enables rate limiting but
fails to inject RequestClientIp or
configure a trusted IP header, which would otherwise silently disable
rate limiting on auth endpoints. The policy is only applied when IP
tracking is enabled; if advanced.ip_address.disable_ip_tracking is set,
per-IP limiting is intentionally skipped.
Variants§
Deny
Reject the request (fail closed). Secure default.
Rate limit every IP-less request together under a shared anonymous bucket instead of a per-IP bucket.
Allow
Skip rate limiting when no client IP can be resolved (legacy fail-open).
Trait Implementations§
Source§impl Clone for MissingIpPolicy
impl Clone for MissingIpPolicy
Source§fn clone(&self) -> MissingIpPolicy
fn clone(&self) -> MissingIpPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MissingIpPolicy
Source§impl Debug for MissingIpPolicy
impl Debug for MissingIpPolicy
Source§impl Default for MissingIpPolicy
impl Default for MissingIpPolicy
Source§fn default() -> MissingIpPolicy
fn default() -> MissingIpPolicy
Returns the “default value” for a type. Read more
impl Eq for MissingIpPolicy
Source§impl PartialEq for MissingIpPolicy
impl PartialEq for MissingIpPolicy
Source§fn eq(&self, other: &MissingIpPolicy) -> bool
fn eq(&self, other: &MissingIpPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MissingIpPolicy
Auto Trait Implementations§
impl Freeze for MissingIpPolicy
impl RefUnwindSafe for MissingIpPolicy
impl Send for MissingIpPolicy
impl Sync for MissingIpPolicy
impl Unpin for MissingIpPolicy
impl UnsafeUnpin for MissingIpPolicy
impl UnwindSafe for MissingIpPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.