Skip to content

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

docs(keyring): document read-only secret mount permissions

Steven Enamakel45ecc61bcd71
diff --git a/crates/openhuman-core/src/security/keyring/README.md b/crates/openhuman-core/src/security/keyring/README.md
index 512dd9b0e4..ccecf48f03 100644
--- a/crates/openhuman-core/src/security/keyring/README.md
+++ b/crates/openhuman-core/src/security/keyring/README.md
@@ -36,7 +36,7 @@ Re-exported from `mod.rs`:
- `KeyringBackend`: backend trait (`get`/`set`/`delete`/`name`).
- `SecretStore`: config-field encrypt/decrypt; `encrypt`/`decrypt`/`decrypt_and_migrate`/`needs_migration`/`is_encrypted`/`new`.
- `KeyringError`: error enum with `diagnostic()`.
-- `init_master_key`: load the app master key at startup (staging/prod only) — from the environment (`OPENHUMAN_KEYRING_MASTER_KEY` inline, or `OPENHUMAN_KEYRING_MASTER_KEY_FILE` naming a file; 64 hex characters, exactly one of the two) when set, otherwise from the OS keychain. A set-but-malformed variable is a boot error, not a fall-through; the source is logged at `info`, the value never. Key files must be owner-readable only (`0400` or `0600`); group/other permissions are rejected.
+- `init_master_key`: load the app master key at startup (staging/prod only) — from the environment (`OPENHUMAN_KEYRING_MASTER_KEY` inline, or `OPENHUMAN_KEYRING_MASTER_KEY_FILE` naming a file; 64 hex characters, exactly one of the two) when set, otherwise from the OS keychain. A set-but-malformed variable is a boot error, not a fall-through; the source is logged at `info`, the value never. Key files must not be group- or world-writable; read-only group/world access is supported for secret mounts, but any principal able to read the file can decrypt the keyring.
- `init_workspace`: register the workspace dir for file and encrypted-file backends.
- `get`, `set`, `delete`, `get_or_create_random`, `is_available`, `migrate_from_file`, `MigrationOutcome`.
- `force_backend_for_test`: `pub(crate)`, test-only.
diff --git a/gitbooks/features/cloud-deploy.md b/gitbooks/features/cloud-deploy.md
index 59c5277c6d..f3cc5d334e 100644
--- a/gitbooks/features/cloud-deploy.md
+++ b/gitbooks/features/cloud-deploy.md
@@ -488,9 +488,10 @@ need before you start" (#6926). On a release that predates those variables, set
`$OPENHUMAN_WORKSPACE/dev-keychain.json` (plaintext, `0600`); put the workspace
volume on encrypted storage and treat the host as the secret boundary.
-Mount the key file owner-only. The core rejects group- or world-readable files
-because any process able to read the file can decrypt the entire keyring.
-Restrict the mode where the mount is declared:
+Mount the key file without group- or world-write permissions. The core rejects
+group- or world-writable files, while read-only group/world access may be
+accepted for container secret mounts; any process able to read the file can
+decrypt the entire keyring. Restrict the mode where the mount is declared:
- Kubernetes: Secret volumes are root-owned, and `runAsUser` does not change
the owner of a projected Secret. For a non-root core, use an init container