tsafe-cli 1.0.20

tsafe CLI — local secret and credential manager (replaces .env files)
Documentation
use thiserror::Error;

/// Errors produced by the HashiCorp Vault provider.
#[derive(Debug, Error)]
pub enum VaultError {
    /// A required configuration value is missing or invalid.
    #[error("Vault configuration error: {0}")]
    Config(String),

    /// AppRole authentication failed (bad role_id/secret_id or 403 from Vault).
    #[error("Vault AppRole authentication failed: {0}")]
    AppRoleAuthFailed(String),

    /// Static token authentication failed.
    #[error("Vault token authentication failed: {0}")]
    TokenAuthFailed(String),

    /// The requested secret path does not exist.
    #[error("Vault secret not found: {0}")]
    NotFound(String),

    /// Unexpected HTTP status returned by Vault.
    #[error("Vault HTTP {status}: {message}")]
    Http { status: u16, message: String },

    /// Network or ureq transport error.
    #[error("Vault transport error: {0}")]
    Transport(String),
}