Storage Backends
Filesystem, memory, and feature-gated storage backends.
Factory and storage layers
VaultConfig.storage_factory is a Box<dyn StorageFactory>. The factory creates Storage, which supplies per-Strand storage and metadata storage. Keep the metadata backend with the Strand data: it contains the vault master key, namespace, authorized-agent records and policy.
| Backend | Boundary |
|---|---|
FileSystemStorageFactory::new(path) | Uses the chosen filesystem root; default root is ./strand-vault |
MemoryStorage and MemoryStorageFactory | In-memory data/metadata for isolated use; no disk persistence |
| RocksDB module | Requires its Cargo feature and native dependency; use the matching source configuration |
VaultConfig defaults to sparse mode, encryption disabled, public reads disabled and no WAL directory. A configuration flag alone is not evidence that a given storage path encrypts every record. Check the selected Strand and metadata implementations when handling private data.
The storage pool limits open handles; it does not replace filesystem capacity planning, backups or independent restore verification.
Source reference
Exact declarations and source provenance · Package features and manifest.