Skip to main content

CoreError

Enum CoreError 

Source
pub enum CoreError {
Show 15 variants InvalidCoordinate(String), Crypto, Serialization(String), Io(String), Keyring(String), Index(String), NotStorable(String), Policy(String), Audit(String), EnvRefs(String), Keypair(String), Totp(String), Provider(String), Package(String), Format(String),
}
Expand description

Errors produced by the core model, coordinate parsing, and crypto-at-rest.

Crypto failures are deliberately opaque (no inner detail) so they cannot act as an oracle, and no variant ever carries secret material (I12).

Variants§

§

InvalidCoordinate(String)

A secret: coordinate URI was malformed (wrong segment count, illegal interpolation, empty segment, or bad scope authority).

§

Crypto

AEAD sealing/opening failed: wrong key, corrupted record, or bad tag.

§

Serialization(String)

(De)serialization of a record payload failed.

§

Io(String)

A filesystem operation against the vault store failed. Carries an operation/context string only — never a secret value (I12).

§

Keyring(String)

Master-key acquisition via the keyring (or the Argon2 fallback) failed. Carries no key material (I12).

§

Index(String)

The metadata index (redb) could not be opened, written, or rebuilt. The index is a rebuildable cache, so this is recoverable by a rebuild and is never data loss (ADR-0001 §A.6).

§

NotStorable(String)

The requested coordinate cannot be addressed by the store: it carries an unresolved ${ENV} placeholder (placeholders resolve at L4, not here).

§

Policy(String)

A policy operation could not be carried out (e.g. building a decision from malformed inputs). Carries no secret material (I12).

§

Audit(String)

The audit log could not be written. Carries no secret material (I12).

§

EnvRefs(String)

A .env.refs line was malformed, or a value could not be resolved (unresolved placeholder, prod fallback, missing passthrough, …). Carries no secret material (I12).

§

Keypair(String)

An asymmetric-key operation failed: key generation, parsing an OpenSSH key, signing, verifying, encrypting, decrypting, or loading into the ssh-agent. Carries an operation description only — never key material (I12). Sign/verify/decrypt failures are deliberately coarse so they cannot act as an oracle.

§

Totp(String)

A TOTP operation failed: a malformed base32 seed, an otpauth:// URI that could not be parsed, or an out-of-range parameter (digits/period). Carries an operation description only — never the seed bytes (I12).

§

Provider(String)

An external provider failed to materialize a reference: a malformed reference URI, an unsupported scheme, the provider CLI being absent or unauthenticated, the secret not existing, or a timeout (§6). Carries an operation/diagnostic description only — never the materialized value (I12); failures are deliberately specific so a misconfiguration is clear rather than a silent empty value.

§

Package(String)

An encrypted-package or access-token operation failed (L7, §7): a foreign/garbage package frame, an expired package/token, a prod secret refused at packaging (I4a) or under a token (I4b), or a token that does not match its package. Carries a coordinate/diagnostic description only — never a value, and crypto failures are deliberately opaque (I12).

§

Format(String)

A removable-media format operation failed or was refused (KOV-40): the target is not external/ejectable (the hard safety rail), the wipe was denied/timed out at the broker, or the OS formatter errored. Carries a device-node/diagnostic description only — never a secret value (I12).

Trait Implementations§

Source§

impl Debug for CoreError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CoreError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for CoreError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V