The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(storage): update secrets access to use scope
Steven Enamakeld1f7563aee97
diff --git a/crates/openhuman-core/src/storage/secrets.rs b/crates/openhuman-core/src/storage/secrets.rsindex 3540cc8961..64d2d3506d 100644--- a/crates/openhuman-core/src/storage/secrets.rs+++ b/crates/openhuman-core/src/storage/secrets.rs@@ -21,7 +21,7 @@ use std::sync::{Arc, OnceLock};use tinystoragedrivers::secrets::{DerivedKeys, DocumentSecrets, KeyProvider};use zeroize::Zeroizing;-use super::{current_scoped, ScopedStorage, StorageError};+use super::{current_scope, current_scoped, Scope, Storage, StorageError};/// The key provider every scope's secrets use, built once per process.pub(crate) fn keys() -> Result<Arc<dyn KeyProvider>, StorageError> {@@ -49,12 +49,12 @@ pub fn current() -> Result<Option<DocumentSecrets>, StorageError> {let Some(scoped) = current_scoped()? else {return Ok(None);};- Ok(Some(over(&scoped, keys()?)))+ Ok(Some(over(&scoped, current_scope()?, keys()?)))}/// Secrets in `scoped` under `keys` (tests and explicit scopes).-pub fn over(scoped: &ScopedStorage, keys: Arc<dyn KeyProvider>) -> DocumentSecrets {- DocumentSecrets::new(scoped, keys)+pub fn over(scoped: &Storage, scope: Scope, keys: Arc<dyn KeyProvider>) -> DocumentSecrets {+ DocumentSecrets::new(scoped, scope, keys)}/// Reads secret `name` from synchronous code.