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:
@@ -56,6 +56,8 @@ HERMES_REDACT_SECRETS=true
|
|||||||
EOF
|
EOF
|
||||||
chmod 600 /home/hermes/.hermes/.env
|
chmod 600 /home/hermes/.hermes/.env
|
||||||
chown hermes:hermes /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_ok "Configured API Server"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
Reference in New Issue
Block a user