Skip to content

Fix .env file permissions to enable group read access #43

@krisoye

Description

@krisoye

Problem

The .env file has mode 600 (owner-only read/write) but is owned by deploy:prod-readers. This prevents group members from reading the file.

-rw------- 1 deploy prod-readers 2058 Feb  3 16:16 .env

While the systemd service runs as deploy user (can read), this violates the principle of least surprise since the group is set to prod-readers but can't actually read.

Impact

  • Group members cannot read configuration
  • Inconsistent with file ownership model
  • May cause issues if other processes need access

Solution

Change permissions to 640 to enable group read:

sudo chmod 640 /home/deploy/prod/audio-analysis-mcp/.env

Result:

-rw-r----- 1 deploy prod-readers 2058 Feb  3 16:16 .env

Labels

  • P2-medium - Should fix but not blocking
  • type:bug - Incorrect file permissions
  • area:deployment - Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions