pub enum CredentialGraphError {
BadCredentialPath {
source_name: String,
path: String,
},
UnroutableCredential {
source_name: String,
path: String,
source_error: ResolveError,
},
Cycle {
chain: Vec<String>,
},
Deep {
chain: Vec<String>,
},
}Expand description
Failure modes for validate_source_credentials.
Variants§
BadCredentialPath
A source declared a credential at path, but path is not
under the reserved SOURCE_CREDENTIALS_PREFIX. Per
ADR-021 §5: source credentials must live under __sources/.
Fields
UnroutableCredential
The credential path failed to resolve through the router.
Usually means the user did not configure routing for
__sources/<source>/... and there is no [default].
Fields
§
source_error: ResolveErrorUnderlying resolver error.
Cycle
E_SOURCE_CREDENTIAL_CYCLE — the credential graph contains
a cycle. Reading any secret would loop forever.
Fields
Deep
E_SOURCE_CREDENTIAL_DEEP — the credential chain is longer
than one hop. Per ADR-021 §4, only one level of indirection
is allowed (Vault tokens live in keychain, not in another
Vault).
Trait Implementations§
Source§impl Clone for CredentialGraphError
impl Clone for CredentialGraphError
Source§fn clone(&self) -> CredentialGraphError
fn clone(&self) -> CredentialGraphError
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 moreSource§impl Debug for CredentialGraphError
impl Debug for CredentialGraphError
Source§impl Display for CredentialGraphError
impl Display for CredentialGraphError
impl Eq for CredentialGraphError
Source§impl Error for CredentialGraphError
impl Error for CredentialGraphError
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()
Source§impl PartialEq for CredentialGraphError
impl PartialEq for CredentialGraphError
Source§fn eq(&self, other: &CredentialGraphError) -> bool
fn eq(&self, other: &CredentialGraphError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialGraphError
Auto Trait Implementations§
impl Freeze for CredentialGraphError
impl RefUnwindSafe for CredentialGraphError
impl Send for CredentialGraphError
impl Sync for CredentialGraphError
impl Unpin for CredentialGraphError
impl UnsafeUnpin for CredentialGraphError
impl UnwindSafe for CredentialGraphError
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
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.