pub enum CompressedPolicy {
Reject,
Passthrough,
}Expand description
What to do with a gRPC message whose payload is COMPRESSED (per-message flag set or a
non-identity grpc-encoding): its bytes are opaque to the WAF, so it cannot be
inspected. Reject (default) is fail-closed — a gzip payload you let through is a
trivial bypass (compress the attack, skip the WAF). Passthrough forwards it
UNINSPECTED — a deliberate, on-record choice for a backend that requires compression.
Variants§
Trait Implementations§
Source§impl Clone for CompressedPolicy
impl Clone for CompressedPolicy
Source§fn clone(&self) -> CompressedPolicy
fn clone(&self) -> CompressedPolicy
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 CompressedPolicy
Source§impl Debug for CompressedPolicy
impl Debug for CompressedPolicy
Source§impl<'de> Deserialize<'de> for CompressedPolicy
impl<'de> Deserialize<'de> for CompressedPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompressedPolicy
Source§impl PartialEq for CompressedPolicy
impl PartialEq for CompressedPolicy
Source§fn eq(&self, other: &CompressedPolicy) -> bool
fn eq(&self, other: &CompressedPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressedPolicy
Auto Trait Implementations§
impl Freeze for CompressedPolicy
impl RefUnwindSafe for CompressedPolicy
impl Send for CompressedPolicy
impl Sync for CompressedPolicy
impl Unpin for CompressedPolicy
impl UnsafeUnpin for CompressedPolicy
impl UnwindSafe for CompressedPolicy
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