Crate merka_vault

Crate merka_vault 

Source
Expand description

merka-vault - Vault provisioning library

This crate provides tools to initialize and configure a HashiCorp Vault server. It includes an Actix actor (VaultActor) for use in async systems and standalone functions for direct use or CLI.

§Architecture

The crate follows a layered architecture with the following dependencies:

  • server module - HTTP API layer (can only access actor module)
  • actor module - Domain layer (can access vault and database modules)
  • cli module - Command-line interface (can access actor module)
  • vault module - Vault implementation (core functionality, private to crate)
  • database module - Persistence layer (accessed through actor module)

This enforces separation of concerns and a clean dependency hierarchy. The vault module is private to the crate, ensuring all external access goes through the actor module, which enforces business rules and manages persistence.

Re-exports§

pub use actor::VaultActor;
pub use database::DatabaseManager;
pub use database::VaultCredentials;

Modules§

actor
Actor module for the Merka Vault library
cli
CLI module for the Merka Vault library
database
Database module for the Merka Vault library
interface
server

Traits§

VaultService