Expand description
Pluggable authentication backends for vault unlock.
Provides a trait-based dispatch system for vault authentication methods.
The AuthDispatcher tries non-interactive backends (SSH-agent, future TPM)
first, falling back to password entry when no automatic method is available.
The SSH-agent backend is currently a stub — actual agent communication is future work. The trait and types are defined to establish the contract.
Re-exports§
pub use password_wrap::PASSWORD_WRAP_VERSION;pub use password_wrap::PasswordWrapBlob;pub use vault_meta::EnrolledFactor;pub use vault_meta::VAULT_META_VERSION;pub use vault_meta::VaultInitMode;pub use vault_meta::VaultMetadata;
Modules§
- password_
wrap - Password-wrap blob: AES-256-GCM wrapped master key under Argon2id-derived KEK.
- vault_
meta - Vault metadata: tracks enrolled factors, auth policy, and init mode.
Structs§
- Auth
Dispatcher - Dispatches vault unlock across registered authentication backends.
- Enrollment
Blob - Parsed enrollment blob.
- Password
Backend - Password-based vault authentication.
- SshAgent
Backend - SSH-agent backed vault authentication.
- Unlock
Outcome - Result of a successful backend unlock.
Enums§
- Auth
Error - Errors from authentication backends.
- Auth
Interaction - What kind of user interaction a backend requires.
- Factor
Contribution - Which piece of the unlock this backend is providing.
- IpcUnlock
Strategy - How the master key should be sent to daemon-secrets.
- SshKey
Type - Supported SSH key types for vault unlock.
Constants§
- ENROLLMENT_
VERSION - Version of the enrollment blob format.
Traits§
- Vault
Auth Backend - A pluggable authentication backend for vault unlock.