Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(storage): document credential file migration into local scope secrets

Steven Enamakeleda12286d2b1
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index b0d0957bc7..560b3a5c94 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -288,6 +288,15 @@ without fencing).
(`OPENHUMAN_KEYRING_MASTER_KEY` / `_FILE`, else the OS keychain); with no
master key they fail closed. The config encryption key stays on the
process keyring, because `config.toml` is loaded before any agent acts.
+ The layout migration (`storage/layout/credentials.rs`) imports the profile's
+ `auth-profiles.json` and `http-credentials.json` into the `local` scope's
+ secrets, verifies the read-back, archives them (`profile/` in the archive,
+ restored beside `config.toml`) and deletes them. It skips them (files stay,
+ adopted lazily) when no master key is resolvable without minting one, or
+ the file is not JSON; a stored record that does not decrypt with the current
+ key fails the migration. The shared `secrets.enc`, `keyring/master.key` and
+ `dev-keychain.json` are process-level, outside every profile's plan, and are
+ never written into `storage.db`.
## Background work and agent scopes