basecamp / basecamp/kamal

Wrong permissions on volumes

Open
#897 9 comments 3 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
14.6k
Forks
752
Avg merge
4d 23h
Merged PRs (30d)
8

Description

Hey!
There are problem with permissions in kamal. I've added volume

```yaml
ssh:
user: alec

####################

volumes:
- ./storage:/rails/public/uploads:rw
```

in my `deploy.yml` file and got a problem with permissions:

SCR-20240730-bilf

As you see - I've configured kamal to use user `alec`, but volume was created by/for `root`. It cause problems like this:

SCR-20240730-bjkb

Contributor guide

Open the contributing guide

Research direction

Start with the volume configuration shown in deploy.yml and trace how Kamal creates and mounts that volume when ssh.user is set to alec. Reproduce the deployment and verify that the mounted path is usable by alec rather than owned only by root.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ruby
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.