pub enum SecretResolverError {
NotFound(String),
NotGranted(String),
Backend(String),
}Expand description
Error returned by a SecretResolver backend implementation.
Variants§
NotFound(String)
No secret of that name is visible to this tenant/scope.
NotGranted(String)
The name is not in this scope’s granted secret allow-list
(CLOACI-I-0133 / T-0860, design D-3). Returned before any decryption —
the holder was never authorized to resolve this secret, regardless of
whether it exists. Distinct from NotFound so a denial
is not confusable with a missing secret in audit/logs.
Backend(String)
The backend failed to resolve (decrypt failure, DB error, misconfigured KEK, …). The message is a redacted, non-plaintext description.
Trait Implementations§
Source§impl Debug for SecretResolverError
impl Debug for SecretResolverError
Source§impl Display for SecretResolverError
impl Display for SecretResolverError
Source§impl Error for SecretResolverError
impl Error for SecretResolverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SecretResolverError
impl RefUnwindSafe for SecretResolverError
impl Send for SecretResolverError
impl Sync for SecretResolverError
impl Unpin for SecretResolverError
impl UnsafeUnpin for SecretResolverError
impl UnwindSafe for SecretResolverError
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