Enum EgressError
pub enum EgressError {
Show 22 variants
Network(NetworkGuardError),
InvalidHostPattern(String),
InvalidNat64Prefix(String),
InvalidConnectionLimit,
PermissionDenied {
transport: EgressTransport,
permission: PluginPermission,
},
DestinationNotGranted {
instance: String,
host: String,
},
InvalidTlsProfileName(String),
InvalidTlsProfile {
profile: String,
reason: String,
},
DuplicateTlsProfile(String),
TlsProfileWithoutHosts(String),
TlsProfileHostNotGranted {
profile: String,
host: String,
},
TlsProfileOnPlaintext(EgressTransport),
UnknownTlsProfile(String),
TlsProfileHostDenied {
profile: String,
host: String,
},
InvalidTlsMaterial {
profile: String,
part: String,
},
AuthorizationScopeMismatch,
TlsSecretUnavailable {
profile: String,
property: String,
},
TlsConfigMismatch,
DnsFailed {
host: String,
port: u16,
reason: String,
},
ConnectionLimitReached {
instance: String,
limit: usize,
},
InvalidStartTlsTransition {
from: StartTlsPhase,
to: StartTlsPhase,
},
PolicyUnavailable(String),
}Expand description
Failure at the shared plugin egress boundary.
Variants§
Network(NetworkGuardError)
Host/address policy rejection from the shared network guard.
InvalidHostPattern(String)
Invalid pattern in the canonical operator allowlist.
InvalidNat64Prefix(String)
Invalid security.nat64_prefixes entry. Fails the policy closed rather
than quietly narrowing the validation boundary.
InvalidConnectionLimit
A policy returned an unsafe zero connection ceiling.
PermissionDenied
The admitted instance lacks the transport’s effective grant.
DestinationNotGranted
The destination is not in this instance’s operator-granted allowlist.
InvalidTlsProfileName(String)
Invalid TLS profile slug.
InvalidTlsProfile
Incoherent TLS profile definition.
DuplicateTlsProfile(String)
Two profiles on one instance share a name.
TlsProfileWithoutHosts(String)
A TLS profile binds no destination.
TlsProfileHostNotGranted
A TLS profile names a host the instance’s grant does not contain.
TlsProfileOnPlaintext(EgressTransport)
A transport that never carries TLS selected a TLS profile.
UnknownTlsProfile(String)
The selected TLS profile is not configured on this instance.
TlsProfileHostDenied
The selected TLS profile does not cover this destination.
InvalidTlsMaterial
A selected TLS profile’s certificate material is missing or invalid.
AuthorizationScopeMismatch
An adapter used an authorization issued to a different instance.
A selected TLS profile names a secret this instance cannot resolve.
TlsConfigMismatch
Frame material and request authorization do not describe one config view.
DnsFailed
DNS resolution failed before policy could pin an address set.
ConnectionLimitReached
The per-instance cross-transport connection ceiling is full.
InvalidStartTlsTransition
STARTTLS attempted a transition that could enable downgrade/fallback.
Canonical host policy could not be resolved.
Trait Implementations§
Source§impl Debug for EgressError
impl Debug for EgressError
Source§impl Display for EgressError
impl Display for EgressError
Source§impl Error for EgressError
impl Error for EgressError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · §fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()