fix(hermes-agent): set UMask=0077 on systemd services
The Anthropic OAuth helper writes credential files with the process default umask, resulting in 0644 permissions on sensitive files. Set UMask=0077 on both hermes-gateway and hermes-dashboard services so all files created at runtime are owner-only (0600/0700). Ref: https://github.com/NousResearch/hermes-agent/issues/11003
This commit is contained in:
@@ -69,6 +69,7 @@ Wants=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=hermes
|
User=hermes
|
||||||
Group=hermes
|
Group=hermes
|
||||||
|
UMask=0077
|
||||||
WorkingDirectory=/home/hermes
|
WorkingDirectory=/home/hermes
|
||||||
ExecStart=/home/hermes/.local/bin/hermes gateway run --replace
|
ExecStart=/home/hermes/.local/bin/hermes gateway run --replace
|
||||||
Environment="HERMES_HOME=/home/hermes/.hermes"
|
Environment="HERMES_HOME=/home/hermes/.hermes"
|
||||||
@@ -93,6 +94,7 @@ Wants=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=hermes
|
User=hermes
|
||||||
Group=hermes
|
Group=hermes
|
||||||
|
UMask=0077
|
||||||
WorkingDirectory=/home/hermes
|
WorkingDirectory=/home/hermes
|
||||||
ExecStart=/home/hermes/.local/bin/hermes dashboard --host 127.0.0.1 --port 9119 --no-open
|
ExecStart=/home/hermes/.local/bin/hermes dashboard --host 127.0.0.1 --port 9119 --no-open
|
||||||
Environment="HERMES_HOME=/home/hermes/.hermes"
|
Environment="HERMES_HOME=/home/hermes/.hermes"
|
||||||
|
|||||||
Reference in New Issue
Block a user