[GH-ISSUE #671] .env files are created with default permissions #18574

Open
opened 2026-06-05 02:31:27 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @satwell on GitHub (Jul 21, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/671

When Komodo creates .env files for a stack, it creates them with default permissions, which usually means 0644. But since these files often contain sensitive data, they should not be world readable.

Komodo should create .env files with mode 0400 or 0440.

Originally created by @satwell on GitHub (Jul 21, 2025). Original GitHub issue: https://github.com/moghtech/komodo/issues/671 When Komodo creates `.env` files for a stack, it creates them with default permissions, which usually means `0644`. But since these files often contain sensitive data, they should not be world readable. Komodo should create `.env` files with mode `0400` or `0440`.
GiteaMirror added the enhancementsecurity labels 2026-06-05 02:31:27 -05:00
Author
Owner

@stephanrenggli commented on GitHub (Oct 5, 2025):

This might have changed with newer versions?

On v1.19.5 the .env file is created with 0600 and additional env files such as secrets.env are created with 0644.

Image

Edit: disregard the above, 1Password was recreating the file while injecting credentials.

<!-- gh-comment-id:3369423672 --> @stephanrenggli commented on GitHub (Oct 5, 2025): ~~This might have changed with newer versions?~~ ~~On v1.19.5 the `.env` file is created with `0600` and additional env files such as `secrets.env` are created with `0644`.~~ <img width="438" height="53" alt="Image" src="https://github.com/user-attachments/assets/f2fc54f4-c38e-4365-b0fc-3110c850cb06" /> **Edit: disregard the above, 1Password was recreating the file while injecting credentials.**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#18574