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
docs(keyring): add README for keyring module
Steven Enamakelbe0a143d434d
diff --git a/crates/openhuman-core/src/security/keyring/README.md b/crates/openhuman-core/src/security/keyring/README.mdindex 075efa1147..6ae0386a08 100644--- a/crates/openhuman-core/src/security/keyring/README.md+++ b/crates/openhuman-core/src/security/keyring/README.md@@ -25,9 +25,9 @@ OS-keychain-backed secret storage with pluggable test/debug backends, plus a Cha| `crates/openhuman-core/src/security/keyring/file_store.rs` | Shared secrets-file primitives for both file backends: the cross-process advisory write lock (`lock_for_write`, on a sidecar `<path>.lock`), the `0600` unique-temp-then-rename `write_atomic`, and `quarantine_corrupt`. || `crates/openhuman-core/src/security/keyring/crypto.rs` | Shared ChaCha20-Poly1305 helpers (`chacha20_encrypt`/`chacha20_decrypt`), random-byte generation, hex encode/decode. Used by both `encrypted_store` and `encrypted_file_backend`. || `crates/openhuman-core/src/security/keyring/error.rs` | `KeyringError` (thiserror) with variants `Os`/`InvalidUtf8`/`MigrationReadFailed`/`VerifyFailed`/`MigrationDeleteFailed`/`RandomGeneration`/`Crypto`/`Backend`, plus a log-safe `diagnostic()` that preserves the `keyring::Error` variant + `OSStatus`. |-| `crates/openhuman-core/src/security/keyring/tests.rs` | Module tests (backend isolation via `force_backend_for_test`). |-| `crates/openhuman-core/src/security/keyring/store_tests.rs` | Test-isolation regressions: test builds ignore `OPENHUMAN_WORKSPACE`, production resolution still honours it, scoped workspaces do not share secrets, and a deleted scoped workspace cannot reset the default store. |-| `crates/openhuman-core/src/security/keyring/encrypted_store_tests.rs` | `SecretStore` tests (wired via `#[path]` from `encrypted_store.rs`). |+| `crates/openhuman-core/src/security/keyring/keyring_tests.rs` | Module tests (backend isolation via `force_backend_for_test`). |+| `crates/openhuman-core/src/security/keyring/store_tests.rs`, `store_tests_2_tests.rs`, `store_test_scope_tests.rs` | Test-isolation regressions: test builds ignore `OPENHUMAN_WORKSPACE`, production resolution still honours it, scoped workspaces do not share secrets, and a deleted scoped workspace cannot reset the default store. |+| `crates/openhuman-core/src/security/keyring/encrypted_store_tests.rs`, `encrypted_store_tests_part_01_tests.rs`, `encrypted_store_tests_part_02_tests.rs` | `SecretStore` tests (wired via `#[path]` from `encrypted_store.rs`). |## Public surface@@ -78,7 +78,7 @@ Discovered consumers (`crate::security::keyring::*`):- `src/lib.rs` and `crates/openhuman-core/src/core/jsonrpc.rs` — call `init_master_key()` at startup.- `crates/openhuman-core/src/security/secrets.rs`, `crates/openhuman-core/src/security/mod.rs` — secret handling.-- `crates/openhuman-core/src/config/schema/load.rs` — `SecretStore::new` / `is_encrypted` to encrypt/decrypt config fields on load.+- `crates/openhuman-core/src/config/schema/load/secrets.rs` — `SecretStore::new` / `is_encrypted` to encrypt/decrypt config fields on load.- `crates/openhuman-core/src/security/credentials/profiles.rs`, `credentials/ops.rs` — `SecretStore`, `is_available`, `get`/`set`/`delete` for per-profile credential storage.- `crates/openhuman-core/src/web3/wallet/ops.rs` — `is_available`/`get`/`set` for the wallet mnemonic.- `crates/openhuman-core/src/security/devices/rpc.rs` — device secret handling.