Skip to main content

Crate hasp_core

Crate hasp_core 

Source
Expand description

Core contracts for the hasp secrets library.

This crate defines the Backend trait, the error taxonomy, and the Entry type shared by every backend implementation. It intentionally has no profile, TTY, or config dependencies — those live in hasp-cli.

Re-exports§

pub use audit::SyslogSink;
pub use audit::AuditEvent;
pub use audit::AuditSink;
pub use audit::CacheEvent;
pub use audit::FileSink;
pub use audit::NoopSink;
pub use audit::StderrSink;
pub use audit::Verb;
pub use cache::CacheKey;
pub use cache::CachePolicy;
pub use cache::ProcessCache;
pub use error::BackendFailureKind;
pub use error::Error;
pub use field::extract_field;
pub use field::extract_field_from_str;
pub use hardening::apply_mitigations;
pub use hardening::check_refusal_conditions;
pub use hardening::harden_process;
pub use hardening::install;
pub use hardening::HardenRefusal;
pub use hardening::HardeningToken;
pub use hardening::MitigationOutcome;
pub use proxy::is_no_proxy;
pub use proxy::resolve_proxy_from_env;
pub use proxy::ProxyConfig;
pub use retry::RetryBackend;
pub use subtle;

Modules§

audit
Structured audit events emitted by every Store verb.
cache
Per-invocation in-process secret cache.
error
field
?field= extraction from JSON-encoded secrets.
hardening
Process-hardening primitives invoked at the secret-handling boundary.
proxy
HTTP CONNECT proxy configuration.
retry
secret_mem
Helper for wrapping secret bytes in a SecretString with optional memory-locking when the memory-lock feature is enabled.

Structs§

Entry
A named entry returned by Backend::list.

Traits§

Backend
Unified backend trait for secret stores.
ExposeSecret
Expose a reference to an inner secret

Functions§

scheme_from_url
Extract the scheme prefix from a URL string.

Type Aliases§

SecretString
Secret string type.