Restrict .env file permissions to owner-only 0600

NousResearch/hermes-agent · cluster 25477

Data as of

Nothing open on GitHub. Fix merged in #25779. Check it covers your case.

The short answer

0open issues
0open PRs
6items grouped
Known?
Yes. 6 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #25779. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #25779. That is separate from the fix event.
Still open
Nothing open on GitHub.

A reported bug and several related fixes addressing that the ~/.hermes/.env file was created with overly permissive mode 0664, exposing secrets to group and world readers. The fixes tighten permissions to 0600 across all creation sites.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #25779 fix: restrict .env file permissions to 0600 (#25562)

    merged to main

    files: hermes_cli/memory_setup.py, scripts/install.sh

4 PRs closed without merging

From the close comments: superseded by another PR 2 · duplicate 1 · merged via another change 1

  • #25533 fix(install): restrict ~/.hermes/.env to owner-only permissions (0600) (#25477) · superseded by another PR → #25779
  • #25560 fix(install): restrict ~/.hermes/.env to owner-only permissions (0600) · superseded by another PR → #25562, #25477
  • #25562 fix: restrict .env file permissions to 0600 · merged via another change → #25779
  • #25726 fix(security): tighten .env file permissions to 0600 at all creation sites · duplicate → #25497, #25477, #25533, #25560, #25562
Closed issues · 1
  • Closed#25477[Bug]: Installer leaves ~/.hermes/.env at file mode 0664 — group/world readable, secrets exposed
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.33: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#25779
Closed issues
1
Attempts
4 PRs closed without merging
Fix link checked
14 May 2026

For your agent

The same facts, typed.