fix(hermes-agent): harden .hermes directory permissions

The response_store.db and session JSON files under ~/.hermes/ are stored
in plaintext and readable by any process with filesystem access. Set
~/.hermes to 0700 (owner-only) and ~/home/hermes to 0750 to restrict
access to conversation history, credentials, and session data.

Ref: https://github.com/NousResearch/hermes-agent/issues/7486
This commit is contained in:
Stephen Chin
2026-05-02 08:09:21 -07:00
parent e0aaacdb96
commit edf1a9604a

View File

@@ -56,6 +56,8 @@ HERMES_REDACT_SECRETS=true
EOF
chmod 600 /home/hermes/.hermes/.env
chown hermes:hermes /home/hermes/.hermes/.env
chmod 750 /home/hermes
chmod 700 /home/hermes/.hermes
msg_ok "Configured API Server"
msg_info "Creating Service"